public class StandardContextSF extends StoreFactoryBase
sm| Constructor and Description |
|---|
StandardContextSF() |
| Modifier and Type | Method and Description |
|---|---|
protected File |
configBase(Context context)
Return a File object representing the "configuration root" directory for
our associated Host.
|
protected String[] |
filterWatchedResources(StandardContext context,
String[] wresources)
filter out the default watched resources
|
protected StoreFileMover |
getConfigFileWriter(Context context)
Get explicit writer for context (context.getConfigFile()).
|
void |
store(PrintWriter aWriter,
int indent,
Object aContext) |
void |
storeChildren(PrintWriter aWriter,
int indent,
Object aContext,
StoreDescription parentDesc)
Store the specified Host properties.
|
protected void |
storeContextSeparate(PrintWriter aWriter,
int indent,
StandardContext aContext)
Store a Context without backup add separate file or when configFile =
null a aWriter.
|
protected void |
storeWithBackup(StandardContext aContext)
Store the Context with a Backup
|
getInfo, getRegistry, getStoreAppender, setRegistry, setStoreAppender, storeElement, storeElementArray, storeXMLHeadpublic void store(PrintWriter aWriter, int indent, Object aContext) throws Exception
store in interface IStoreFactorystore in class StoreFactoryBaseExceptionprotected void storeContextSeparate(PrintWriter aWriter, int indent, StandardContext aContext) throws Exception
aWriter - indent - aContext - Exceptionprotected void storeWithBackup(StandardContext aContext) throws Exception
aContext - Exceptionprotected StoreFileMover getConfigFileWriter(Context context) throws Exception
context - IOExceptionExceptionpublic void storeChildren(PrintWriter aWriter, int indent, Object aContext, StoreDescription parentDesc) throws Exception
storeChildren in class StoreFactoryBaseaWriter - PrintWriter to which we are storingindent - Number of spaces to indent this elementaContext - Context whose properties are being storedException - if an exception occurs while storingprotected File configBase(Context context)
protected String[] filterWatchedResources(StandardContext context, String[] wresources) throws Exception
context - wresources - IOException - TODO relative watchedresource
TODO absolute handling configFile
TODO Filename case handling for Windows?
TODO digester variable subsitution $catalina.base, $catalina.homeExceptionCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.