Package org.apache.catalina.webresources
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
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.catalina.Lifecycle
Lifecycle.SingleUse
-
Field Summary
Fields inherited from interface org.apache.catalina.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
-
Method Summary
Modifier and TypeMethodDescriptionprotected final void
protected final void
Sub-classes implement this method to perform any instance destruction required.protected final String
getBase()
boolean
Should resources returned by this resource set only be included in any results when the lookup is explicitly looking for class loader resources. i.e. should these resources be excluded from look ups that are explicitly looking for static (non-class loader) resources.protected final String
protected final Manifest
protected final WebResourceRoot
getRoot()
boolean
Should resources returned by this resource set only be included in any results when the lookup is explicitly looking for static (non-class loader) resources. i.e. should these resources be excluded from look ups that are explicitly looking for class loader resources.protected final String
final void
void
setClassLoaderOnly
(boolean classLoaderOnly) final void
setInternalPath
(String internalPath) protected final void
setManifest
(Manifest manifest) final void
setRoot
(WebResourceRoot root) void
setStaticOnly
(boolean staticOnly) final void
setWebAppMount
(String webAppMount) protected final void
Sub-classes must ensure that the state is changed toLifecycleState.STARTING
during the execution of this method.protected final void
Sub-classes must ensure that the state is changed toLifecycleState.STOPPING
during the execution of this method.Methods inherited from class org.apache.catalina.util.LifecycleBase
addLifecycleListener, destroy, findLifecycleListeners, fireLifecycleEvent, getState, getStateName, getThrowOnFailure, init, initInternal, removeLifecycleListener, setState, setState, setThrowOnFailure, start, stop
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.catalina.Lifecycle
addLifecycleListener, destroy, findLifecycleListeners, getState, getStateName, init, removeLifecycleListener, start, stop
Methods inherited from interface org.apache.catalina.WebResourceSet
gc, getBaseUrl, getResource, isReadOnly, list, listWebAppPaths, mkdir, setReadOnly, write
-
Field Details
-
sm
-
-
Constructor Details
-
AbstractResourceSet
public AbstractResourceSet()
-
-
Method Details
-
checkPath
-
setRoot
- Specified by:
setRoot
in interfaceWebResourceSet
-
getRoot
-
getInternalPath
-
setInternalPath
-
setWebAppMount
-
getWebAppMount
-
setBase
-
getBase
-
getClassLoaderOnly
public boolean getClassLoaderOnly()Description copied from interface:WebResourceSet
Should resources returned by this resource set only be included in any results when the lookup is explicitly looking for class loader resources. i.e. should these resources be excluded from look ups that are explicitly looking for static (non-class loader) resources.- Specified by:
getClassLoaderOnly
in interfaceWebResourceSet
- Returns:
true
if these resources should only be used for class loader resource lookups, otherwisefalse
-
setClassLoaderOnly
public void setClassLoaderOnly(boolean classLoaderOnly) - Specified by:
setClassLoaderOnly
in interfaceWebResourceSet
-
getStaticOnly
public boolean getStaticOnly()Description copied from interface:WebResourceSet
Should resources returned by this resource set only be included in any results when the lookup is explicitly looking for static (non-class loader) resources. i.e. should these resources be excluded from look ups that are explicitly looking for class loader resources.- Specified by:
getStaticOnly
in interfaceWebResourceSet
- Returns:
true
if these resources should only be used for static (non-class loader) resource lookups, otherwisefalse
-
setStaticOnly
public void setStaticOnly(boolean staticOnly) - Specified by:
setStaticOnly
in interfaceWebResourceSet
-
setManifest
-
getManifest
-
startInternal
Description copied from class:LifecycleBase
Sub-classes must ensure that the state is changed toLifecycleState.STARTING
during the execution of this method. Changing state will trigger theLifecycle.START_EVENT
event. If a component fails to start it may either throw aLifecycleException
which will cause it's parent to fail to start or it can place itself in the error state in which caseLifecycleBase.stop()
will be called on the failed component but the parent component will continue to start normally.- Specified by:
startInternal
in classLifecycleBase
- Throws:
LifecycleException
- Start error occurred
-
stopInternal
Description copied from class:LifecycleBase
Sub-classes must ensure that the state is changed toLifecycleState.STOPPING
during the execution of this method. Changing state will trigger theLifecycle.STOP_EVENT
event.- Specified by:
stopInternal
in classLifecycleBase
- Throws:
LifecycleException
- Stop error occurred
-
destroyInternal
Description copied from class:LifecycleBase
Sub-classes implement this method to perform any instance destruction required.- Specified by:
destroyInternal
in classLifecycleBase
- Throws:
LifecycleException
- If the destruction fails
-