Class AbstractArchiveResource

    • Method Detail

      • getBase

        protected final String getBase()
      • getBaseUrl

        protected final String getBaseUrl()
      • getResource

        protected final JarEntry getResource()
      • isVirtual

        public boolean isVirtual()
        Description copied from interface: WebResource
        Indicates if this resource is required for applications to correctly scan the file structure but that does not exist in either the main or any additional WebResourceSet. For example, if an external directory is mapped to /WEB-INF/lib in an otherwise empty web application, /WEB-INF will be represented as a virtual resource.
        Returns:
        true for a virtual resource
      • getContentLength

        public long getContentLength()
        Returns:
        File.length().
      • getCreation

        public long getCreation()
        Returns:
        The time the file was created. If not available, the result of WebResource.getLastModified() will be returned.
      • getURL

        public URL getURL()
        Returns:
        a URL to access the resource or null if no such URL is available or if the resource does not exist.
      • getCodeBase

        public URL getCodeBase()
        Returns:
        the code base for this resource that will be used when looking up the assigned permissions for the code base in the security policy file when running under a security manager.
      • getContent

        public final byte[] getContent()
        Returns:
        the binary content of this resource or null if it is not available in a byte[] because, for example, it is too big.
      • getCertificates

        public Certificate[] getCertificates()
        Returns:
        the certificates that were used to sign this resource to verify it or @null if none.
        See Also:
        JarEntry.getCertificates()
      • getManifest

        public Manifest getManifest()
        Returns:
        the manifest associated with this resource or @null if none.
        See Also:
        JarFile.getManifest()