Package org.apache.catalina.webresources
Class JarResourceSet
- All Implemented Interfaces:
- Lifecycle,- WebResourceSet
Represents a 
WebResourceSet based on a JAR file.- 
Nested Class SummaryNested classes/interfaces inherited from interface org.apache.catalina.LifecycleLifecycle.SingleUse
- 
Field SummaryFields inherited from class org.apache.catalina.webresources.AbstractArchiveResourceSetarchiveEntries, archiveLockFields inherited from class org.apache.catalina.webresources.AbstractResourceSetsmFields inherited from interface org.apache.catalina.LifecycleAFTER_DESTROY_EVENT, AFTER_INIT_EVENT, AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_DESTROY_EVENT, BEFORE_INIT_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, CONFIGURE_START_EVENT, CONFIGURE_STOP_EVENT, PERIODIC_EVENT, START_EVENT, STOP_EVENT
- 
Constructor SummaryConstructorsConstructorDescriptionA no argument constructor is required for this to work with the digester.JarResourceSet(WebResourceRoot root, String webAppMount, String base, String internalPath) Creates a newWebResourceSetbased on a JAR file.
- 
Method SummaryModifier and TypeMethodDescriptionprotected WebResourcecreateArchiveResource(JarEntry jarEntry, String webAppPath, Manifest manifest) Methods inherited from class org.apache.catalina.webresources.AbstractSingleArchiveResourceSetgetArchiveEntries, getArchiveEntry, initInternal, isMultiReleaseMethods inherited from class org.apache.catalina.webresources.AbstractArchiveResourceSetcloseJarFile, gc, getBaseUrl, getBaseUrlString, getResource, isReadOnly, list, listWebAppPaths, mkdir, openJarFile, setBaseUrl, setReadOnly, writeMethods inherited from class org.apache.catalina.webresources.AbstractResourceSetcheckPath, destroyInternal, getBase, getClassLoaderOnly, getInternalPath, getManifest, getRoot, getStaticOnly, getWebAppMount, setBase, setClassLoaderOnly, setInternalPath, setManifest, setRoot, setStaticOnly, setWebAppMount, startInternal, stopInternalMethods inherited from class org.apache.catalina.util.LifecycleBaseaddLifecycleListener, destroy, findLifecycleListeners, fireLifecycleEvent, getState, getStateName, getThrowOnFailure, init, removeLifecycleListener, setState, setState, setThrowOnFailure, start, stopMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.catalina.LifecycleaddLifecycleListener, destroy, findLifecycleListeners, getState, getStateName, init, removeLifecycleListener, start, stop
- 
Constructor Details- 
JarResourceSetpublic JarResourceSet()A no argument constructor is required for this to work with the digester.
- 
JarResourceSetpublic JarResourceSet(WebResourceRoot root, String webAppMount, String base, String internalPath) throws IllegalArgumentException Creates a newWebResourceSetbased on a JAR file.- Parameters:
- root- The- WebResourceRootthis new- WebResourceSetwill be added to.
- webAppMount- The path within the web application at which this- WebResourceSetwill be mounted.
- base- The absolute path to the JAR file on the file system from which the resources will be served.
- internalPath- The path within this new- WebResourceSetwhere resources will be served from. E.g. for a resource JAR, this would be "META-INF/resources"
- Throws:
- IllegalArgumentException- if the webAppMount or internalPath is not valid (valid paths must start with '/')
 
 
- 
- 
Method Details- 
createArchiveResourceprotected WebResource createArchiveResource(JarEntry jarEntry, String webAppPath, Manifest manifest) - Specified by:
- createArchiveResourcein class- AbstractArchiveResourceSet
 
 
-