public abstract class AbstractSingleArchiveResourceSet extends AbstractArchiveResourceSet
WebResourceSet based on a
single, rather than nested, archive.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 |
|---|
AbstractSingleArchiveResourceSet()
A no argument constructor is required for this to work with the digester.
|
AbstractSingleArchiveResourceSet(WebResourceRoot root,
String webAppMount,
String base,
String internalPath) |
| Modifier and Type | Method and Description |
|---|---|
protected HashMap<String,JarEntry> |
getArchiveEntries(boolean single)
Obtain the map of entries in the archive.
|
protected JarEntry |
getArchiveEntry(String pathInArchive)
Obtain a single entry from the archive.
|
protected void |
initInternal()
Sub-classes implement this method to perform any instance initialisation
required.
|
protected boolean |
isMultiRelease() |
closeJarFile, createArchiveResource, 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 AbstractSingleArchiveResourceSet()
public AbstractSingleArchiveResourceSet(WebResourceRoot root, String webAppMount, String base, String internalPath) throws IllegalArgumentException
IllegalArgumentExceptionprotected HashMap<String,JarEntry> getArchiveEntries(boolean single)
AbstractArchiveResourceSetAbstractArchiveResourceSet.getArchiveEntry(String) should be used.getArchiveEntries in class AbstractArchiveResourceSetsingle - Is this request being make to support a single lookup? If
false, a map will always be returned. If true,
implementations may use this as a hint in determining the
optimum way to respond.AbstractArchiveResourceSet.getArchiveEntry(String) should be used.protected JarEntry getArchiveEntry(String pathInArchive)
AbstractArchiveResourceSetAbstractArchiveResourceSet.getArchiveEntries(boolean) should always be called first and the
archive entry looked up in the map if one is returned. Only if that call
returns null should this method be used.getArchiveEntry in class AbstractArchiveResourceSetpathInArchive - The path in the archive of the entry requiredprotected boolean isMultiRelease()
isMultiRelease in class AbstractArchiveResourceSetprotected void initInternal()
throws LifecycleException
LifecycleBaseinitInternal in class LifecycleBaseLifecycleException - If the initialisation failsCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.