Class VendorInstallerFactory

java.lang.Object
io.wcm.tooling.commons.packmgr.install.VendorInstallerFactory

public final class VendorInstallerFactory extends Object
This factory provides Package Manager specific handling provided by different vendors like CRX Package Manager and Composum.
  • Field Details

  • Method Details

    • identify

      public static VendorInstallerFactory.Service identify(String url)
      Identifies the Service Vendor based on the given URL
      Parameters:
      url - Base URL to check
      Returns:
      Service Enum found or unsupported
    • getBaseUrl

      public static String getBaseUrl(String url)
      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

      public static VendorPackageInstaller getPackageInstaller(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
    • 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