Class SlingInitialContentMounter


  • public final class SlingInitialContentMounter
    extends Object
    Manages OSGi configurations for File System Resource Provider for Sling-Initial-Content.
    • Constructor Summary

      Constructors 
      Constructor Description
      SlingInitialContentMounter​(org.apache.maven.plugin.logging.Log log, org.apache.hc.client5.http.impl.classic.CloseableHttpClient httpClient, org.apache.hc.client5.http.config.RequestConfig.Builder requestConfigBuilder, org.apache.maven.project.MavenProject project)  
    • Constructor Detail

      • SlingInitialContentMounter

        public SlingInitialContentMounter​(org.apache.maven.plugin.logging.Log log,
                                          org.apache.hc.client5.http.impl.classic.CloseableHttpClient httpClient,
                                          org.apache.hc.client5.http.config.RequestConfig.Builder requestConfigBuilder,
                                          org.apache.maven.project.MavenProject project)
    • Method Detail

      • mount

        public void mount​(URI consoleTargetUrl,
                          File bundleFile)
                   throws org.apache.maven.plugin.MojoExecutionException
        Add configurations to a running OSGi instance for initial content.
        Parameters:
        consoleTargetUrl - The web console base url
        bundleFile - The artifact (bundle)
        Throws:
        org.apache.maven.plugin.MojoExecutionException - Exception
      • unmount

        public void unmount​(URI consoleTargetUrl)
                     throws org.apache.maven.plugin.MojoExecutionException
        Remove configurations from a running OSGi instance for initial content.
        Parameters:
        consoleTargetUrl - The web console base url
        Throws:
        org.apache.maven.plugin.MojoExecutionException - Exception