Class AbstractFileResourceSet
java.lang.Object
org.apache.catalina.util.LifecycleBase
org.apache.catalina.webresources.AbstractResourceSet
org.apache.catalina.webresources.AbstractFileResourceSet
- All Implemented Interfaces:
- Lifecycle,- WebResourceSet
- Direct Known Subclasses:
- DirResourceSet,- FileResourceSet
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.apache.catalina.LifecycleLifecycle.SingleUse
- 
Field SummaryFieldsFields inherited from class org.apache.catalina.webresources.AbstractResourceSetsmFields inherited from interface org.apache.catalina.LifecycleAFTER_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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected abstract voidprotected final Filevoidgc()Implementations may cache some information to improve performance.booleanDetermine if thisResourceSetallows the use of symbolic links.Obtain the base URL for this set of resources.protected final Fileprotected voidSubclasses implement this method to perform any instance initialisation required.booleanObtains the current value of the read-only setting for this set of resources.protected voidlogIgnoredSymlink(String contextPath, String absPath, String canPath) voidsetAllowLinking(boolean allowLinking) Configure if thisResourceSetallows the use of symbolic links.voidsetReadOnly(boolean readOnly) Configures whether or not this set of resources is read-only.Methods inherited from class org.apache.catalina.webresources.AbstractResourceSetcheckPath, destroyInternal, getBase, getClassLoaderOnly, getInternalPath, getManifest, getRoot, getStaticOnly, getWebAppMount, isPathMounted, setBase, setClassLoaderOnly, setInternalPath, setManifest, setRoot, setStaticOnly, setWebAppMount, startInternal, stopInternalMethods inherited from class org.apache.catalina.util.LifecycleBaseaddLifecycleListener, destroy, findLifecycleListeners, fireLifecycleEvent, getState, getStateName, getThrowOnFailure, init, removeLifecycleListener, setState, setState, setThrowOnFailure, start, stopMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.catalina.LifecycleaddLifecycleListener, destroy, findLifecycleListeners, getState, getStateName, init, removeLifecycleListener, start, stopMethods inherited from interface org.apache.catalina.WebResourceSetgetResource, list, listWebAppPaths, mkdir, write
- 
Field Details- 
EMPTY_STRING_ARRAY
 
- 
- 
Constructor Details- 
AbstractFileResourceSet
 
- 
- 
Method Details- 
getFileBase
- 
setReadOnlypublic void setReadOnly(boolean readOnly) Description copied from interface:WebResourceSetConfigures whether or not this set of resources is read-only.- Parameters:
- readOnly-- trueif this set of resources should be configured to be read-only
 
- 
isReadOnlypublic boolean isReadOnly()Description copied from interface:WebResourceSetObtains the current value of the read-only setting for this set of resources.- Returns:
- trueif this set of resources is configured to be read-only, otherwise- false
 
- 
setAllowLinkingpublic void setAllowLinking(boolean allowLinking) Description copied from interface:WebResourceSetConfigure if thisResourceSetallows the use of symbolic links.- Parameters:
- allowLinking-- trueif symbolic links are allowed.
 
- 
getAllowLinkingpublic boolean getAllowLinking()Description copied from interface:WebResourceSetDetermine if thisResourceSetallows the use of symbolic links. IfWebResourceSet.setAllowLinking(boolean)has not been called for this instance, the value ofWebResourceRoot.getAllowLinking()is returned.- Returns:
- trueif symbolic links are allowed
 
- 
file
- 
logIgnoredSymlink
- 
getBaseUrlDescription copied from interface:WebResourceSetObtain the base URL for this set of resources. One of the uses of this is to grant read permissions to the resources when running under a security manager.- Returns:
- The base URL for this set of resources
 
- 
gcpublic void gc()Implementations may cache some information to improve performance. This method triggers the clean-up of those resources.This is a NO-OP by default for File based resource sets. 
- 
initInternalDescription copied from class:LifecycleBaseSubclasses implement this method to perform any instance initialisation required.- Specified by:
- initInternalin class- LifecycleBase
- Throws:
- LifecycleException- If the initialisation fails
 
- 
checkType
 
-