Class WarResourceSet

    • Constructor Detail

      • WarResourceSet

        public WarResourceSet()
        A no argument constructor is required for this to work with the digester.
      • WarResourceSet

        public WarResourceSet​(WebResourceRoot root,
                              java.lang.String webAppMount,
                              java.lang.String base)
                       throws java.lang.IllegalArgumentException
        Creates a new WebResourceSet based on a WAR file.
        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 from which the resources will be served.
        Throws:
        java.lang.IllegalArgumentException - if the webAppMount is not valid (valid paths must start with '/')
    • Method Detail

      • createArchiveResource

        protected WebResource createArchiveResource​(java.util.jar.JarEntry jarEntry,
                                                    java.lang.String webAppPath,
                                                    java.util.jar.Manifest manifest)
        Description copied from class: AbstractArchiveResourceSet
        Creates an archive resource.
        Specified by:
        createArchiveResource in class AbstractArchiveResourceSet
        Parameters:
        jarEntry - The JAR entry
        webAppPath - The web application path
        manifest - The manifest
        Returns:
        the archive resource