Class JarWarResourceSet

    • Constructor Detail

      • JarWarResourceSet

        public JarWarResourceSet​(WebResourceRoot root,
                                 java.lang.String webAppMount,
                                 java.lang.String base,
                                 java.lang.String archivePath,
                                 java.lang.String internalPath)
                          throws java.lang.IllegalArgumentException
        Creates a new WebResourceSet based on a JAR file that is nested inside a WAR.
        Parameters:
        root - The WebResourceRoot this new WebResourceSet will be added to.
        webAppMount - The path within the web application at which this WebResourceSet will be mounted.
        base - The absolute path to the WAR file on the file system in which the JAR is located.
        archivePath - The path within the WAR file where the JAR file is located.
        internalPath - The path within this new WebResourceSet where resources will be served from. E.g. for a resource JAR, this would be "META-INF/resources"
        Throws:
        java.lang.IllegalArgumentException - if the webAppMount or internalPath is not valid (valid paths must start with '/')