Class AbstractResourceSet
java.lang.Object
org.apache.catalina.util.LifecycleBase
org.apache.catalina.webresources.AbstractResourceSet
- All Implemented Interfaces:
Lifecycle, WebResourceSet
- Direct Known Subclasses:
AbstractArchiveResourceSet, AbstractFileResourceSet
Abstract
WebResourceSet implementation that provides common functionality for all web resource set
implementations.-
Nested Class Summary
Nested classes/interfaces inherited from interface Lifecycle
Lifecycle.SingleUse -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final StringManagerThe string manager for this class.Fields inherited from interface Lifecycle
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 Summary
ConstructorsModifierConstructorDescriptionprotectedConstructs a new AbstractResourceSet. -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidChecks that the given path is valid.protected final voidDestroys this resource set.protected final StringgetBase()Gets the base.booleanChecks if this resource set is class loader only.protected final StringGets the internal path.protected final ManifestGets the manifest.protected final WebResourceRootgetRoot()Gets the root.booleanChecks if this resource set is static only.protected final StringGets the web app mount.protected booleanisPathMounted(String path, String webAppMount) Checks if the given path is mounted at the given web app mount.final voidSets the base.voidsetClassLoaderOnly(boolean classLoaderOnly) Sets whether this resource set is class loader only.final voidsetInternalPath(String internalPath) Sets the internal path.protected final voidsetManifest(Manifest manifest) Sets the manifest.final voidsetRoot(WebResourceRoot root) Sets the root.voidsetStaticOnly(boolean staticOnly) Sets whether this resource set is static only.final voidsetWebAppMount(String webAppMount) Sets the web app mount.protected final voidStarts this resource set.protected final voidStops this resource set.Methods inherited from class LifecycleBase
addLifecycleListener, destroy, findLifecycleListeners, fireLifecycleEvent, getState, getStateName, getThrowOnFailure, init, initInternal, removeLifecycleListener, setState, setState, setThrowOnFailure, start, stopMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Lifecycle
addLifecycleListener, destroy, findLifecycleListeners, getState, getStateName, init, removeLifecycleListener, start, stopMethods inherited from interface WebResourceSet
gc, getAllowLinking, getBaseUrl, getResource, isReadOnly, list, listWebAppPaths, mkdir, setAllowLinking, setReadOnly, write
-
Field Details
-
sm
The string manager for this class.
-
-
Constructor Details
-
AbstractResourceSet
protected AbstractResourceSet()Constructs a new AbstractResourceSet.
-
-
Method Details
-
checkPath
Checks that the given path is valid.- Parameters:
path- The path to check- Throws:
IllegalArgumentException- if the path is invalid
-
setRoot
Sets the root.- Specified by:
setRootin interfaceWebResourceSet- Parameters:
root- The root
-
getRoot
-
getInternalPath
-
setInternalPath
Sets the internal path.- Parameters:
internalPath- The internal path
-
setWebAppMount
Sets the web app mount.- Parameters:
webAppMount- The web app mount
-
getWebAppMount
-
isPathMounted
-
setBase
-
getBase
-
getClassLoaderOnly
public boolean getClassLoaderOnly()Checks if this resource set is class loader only.- Specified by:
getClassLoaderOnlyin interfaceWebResourceSet- Returns:
trueif this resource set is class loader only
-
setClassLoaderOnly
public void setClassLoaderOnly(boolean classLoaderOnly) Sets whether this resource set is class loader only.- Specified by:
setClassLoaderOnlyin interfaceWebResourceSet- Parameters:
classLoaderOnly-trueif this resource set is class loader only
-
getStaticOnly
public boolean getStaticOnly()Checks if this resource set is static only.- Specified by:
getStaticOnlyin interfaceWebResourceSet- Returns:
trueif this resource set is static only
-
setStaticOnly
public void setStaticOnly(boolean staticOnly) Sets whether this resource set is static only.- Specified by:
setStaticOnlyin interfaceWebResourceSet- Parameters:
staticOnly-trueif this resource set is static only
-
setManifest
Sets the manifest.- Parameters:
manifest- The manifest
-
getManifest
-
startInternal
Starts this resource set.- Specified by:
startInternalin classLifecycleBase- Throws:
LifecycleException- if a startup error occurs
-
stopInternal
Stops this resource set.- Specified by:
stopInternalin classLifecycleBase- Throws:
LifecycleException- if a shutdown error occurs
-
destroyInternal
Destroys this resource set.- Specified by:
destroyInternalin classLifecycleBase- Throws:
LifecycleException- if a destroy error occurs
-