Class VendorInstallerFactory
java.lang.Object
io.wcm.tooling.commons.packmgr.install.VendorInstallerFactory
This factory provides Package Manager specific handling
provided by different vendors like CRX Package Manager and Composum.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumPagckage manager services -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetBaseUrl(String url) Returns the Base Url of a given URL with based on its Vendors from the URLstatic VendorPackageDownloaderProvides the Installer of the Service Vendorstatic VendorPackageInstallerProvides the Installer of the Service VendorIdentifies the Service Vendor based on the given URL
-
Field Details
-
CRX_URL
Base URL for CRX package manager.- See Also:
-
COMPOSUM_URL
Base URL for componsum package manager.- See Also:
-
-
Method Details
-
identify
Identifies the Service Vendor based on the given URL- Parameters:
url- Base URL to check- Returns:
- Service Enum found or unsupported
-
getBaseUrl
Returns the Base Url of a given URL with based on its Vendors from the URL- Parameters:
url- Service URL- Returns:
- Base URL if service vendor was found otherwise the given URL
-
getPackageInstaller
Provides the Installer of the Service Vendor- Parameters:
url- Base URL of the service- Returns:
- Installer if URL is supported otherwise null
- Throws:
PackageManagerException- Package manager exception
-
getPackageDownloader
public static VendorPackageDownloader getPackageDownloader(String url) throws PackageManagerException Provides the Installer of the Service Vendor- Parameters:
url- Base URL of the service- Returns:
- Installer if URL is supported otherwise null
- Throws:
PackageManagerException- Package manager exception
-