public class WarResourceSet extends AbstractSingleArchiveResourceSet
WebResourceSet based on a WAR file.Lifecycle.SingleUsearchiveEntries, archiveLocksmAFTER_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 |
|---|
WarResourceSet()
A no argument constructor is required for this to work with the digester.
|
WarResourceSet(WebResourceRoot root,
String webAppMount,
String base)
Creates a new
WebResourceSet based on a WAR
file. |
| Modifier and Type | Method and Description |
|---|---|
protected WebResource |
createArchiveResource(JarEntry jarEntry,
String webAppPath,
Manifest manifest) |
getArchiveEntries, getArchiveEntry, initInternal, isMultiReleasecloseJarFile, gc, getBaseUrl, getBaseUrlString, getResource, isReadOnly, list, listWebAppPaths, mkdir, openJarFile, setBaseUrl, setReadOnly, writecheckPath, destroyInternal, getBase, getClassLoaderOnly, getInternalPath, getManifest, getRoot, getStaticOnly, getWebAppMount, setBase, setClassLoaderOnly, setInternalPath, setManifest, setRoot, setStaticOnly, setWebAppMount, startInternal, stopInternaladdLifecycleListener, destroy, findLifecycleListeners, fireLifecycleEvent, getState, getStateName, getThrowOnFailure, init, removeLifecycleListener, setState, setState, setThrowOnFailure, start, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddLifecycleListener, destroy, findLifecycleListeners, getState, getStateName, init, removeLifecycleListener, start, stoppublic WarResourceSet()
public WarResourceSet(WebResourceRoot root, String webAppMount, String base) throws IllegalArgumentException
WebResourceSet based on a WAR
file.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.IllegalArgumentException - if the webAppMount is not valid (valid
paths must start with '/')protected WebResource createArchiveResource(JarEntry jarEntry, String webAppPath, Manifest manifest)
createArchiveResource in class AbstractArchiveResourceSetCopyright © 2000-2022 Apache Software Foundation. All Rights Reserved.