public class JarWarResourceSet extends AbstractArchiveResourceSet
WebResourceSet
based on a JAR file
that is nested inside a packed WAR file. This is only intended for internal
use within Tomcat and therefore cannot be created via configuration.sm
AFTER_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 and Description |
---|
JarWarResourceSet(WebResourceRoot root,
String webAppMount,
String base,
String archivePath,
String internalPath)
Creates a new
WebResourceSet based on a JAR
file that is nested inside a WAR. |
Modifier and Type | Method and Description |
---|---|
protected WebResource |
createArchiveResource(JarEntry jarEntry,
String webAppPath,
Manifest manifest) |
protected void |
initInternal() |
getBaseUrl, getBaseUrlString, getJarFileEntries, getResource, isReadOnly, list, listWebAppPaths, mkdir, setBaseUrl, setManifest, setReadOnly, write
checkPath, destroyInternal, getBase, getClassLoaderOnly, getInternalPath, getRoot, getWebAppMount, setBase, setClassLoaderOnly, setInternalPath, setRoot, setWebAppMount, startInternal, stopInternal
addLifecycleListener, destroy, findLifecycleListeners, fireLifecycleEvent, getState, getStateName, init, removeLifecycleListener, setState, setState, start, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addLifecycleListener, destroy, findLifecycleListeners, getState, getStateName, init, removeLifecycleListener, start, stop
public JarWarResourceSet(WebResourceRoot root, String webAppMount, String base, String archivePath, String internalPath) throws IllegalArgumentException
WebResourceSet
based on a JAR
file that is nested inside a WAR.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"IllegalArgumentException
- if the webAppMount or internalPath is
not valid (valid paths must start with '/')protected WebResource createArchiveResource(JarEntry jarEntry, String webAppPath, Manifest manifest)
createArchiveResource
in class AbstractArchiveResourceSet
protected void initInternal() throws LifecycleException
initInternal
in class LifecycleBase
LifecycleException
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.