public abstract class AbstractFileResourceSet extends AbstractResourceSet
Modifier and Type | Field and Description |
---|---|
protected String |
absoluteBase |
protected String |
canonicalBase |
protected static String[] |
EMPTY_STRING_ARRAY |
protected File |
fileBase |
protected String |
internalPath |
sm
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
Modifier | Constructor and Description |
---|---|
protected |
AbstractFileResourceSet(String internalPath) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
checkType(File file) |
protected File |
file(String name,
boolean mustExist) |
protected void |
initInternal() |
protected String |
normalize(String path)
Return a context-relative path, beginning with a "/", that represents
the canonical version of the specified path after ".." and "." elements
are resolved out.
|
checkInternalPath, checkPath, destroyInternal, getBase, getRoot, getWebAppMount, setBase, setRoot, setWebAppMount, startInternal, stopInternal
addLifecycleListener, destroy, findLifecycleListeners, fireLifecycleEvent, getState, getStateName, init, removeLifecycleListener, setState, setState, start, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getResource, list, listWebAppPaths, mkdir, write
addLifecycleListener, destroy, findLifecycleListeners, getState, getStateName, init, removeLifecycleListener, start, stop
protected static final String[] EMPTY_STRING_ARRAY
protected final String internalPath
protected File fileBase
protected String absoluteBase
protected String canonicalBase
protected AbstractFileResourceSet(String internalPath)
protected String normalize(String path)
null
instead.path
- Path to be normalizedprotected void initInternal() throws LifecycleException
initInternal
in class LifecycleBase
LifecycleException
protected abstract void checkType(File file)
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.