public class StandardContextSF extends StoreFactoryBase
sm| Constructor and Description |
|---|
StandardContextSF() |
| Modifier and Type | Method and Description |
|---|---|
protected java.io.File |
configBase(Context context)
Return a File object representing the "configuration root" directory for
our associated Host.
|
protected java.lang.String[] |
filterWatchedResources(StandardContext context,
java.lang.String[] wresources)
filter out the default watched resources
|
protected StoreFileMover |
getConfigFileWriter(Context context)
Get explicit writer for context (context.getConfigFile()).
|
void |
store(java.io.PrintWriter aWriter,
int indent,
java.lang.Object aContext) |
void |
storeChildren(java.io.PrintWriter aWriter,
int indent,
java.lang.Object aContext,
StoreDescription parentDesc)
Store the specified Host properties.
|
protected void |
storeContextSeparate(java.io.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(java.io.PrintWriter aWriter,
int indent,
java.lang.Object aContext)
throws java.lang.Exception
store in interface IStoreFactorystore in class StoreFactoryBasejava.lang.Exceptionprotected void storeContextSeparate(java.io.PrintWriter aWriter,
int indent,
StandardContext aContext)
throws java.lang.Exception
aWriter - indent - aContext - java.lang.Exceptionprotected void storeWithBackup(StandardContext aContext) throws java.lang.Exception
aContext - java.lang.Exceptionprotected StoreFileMover getConfigFileWriter(Context context) throws java.lang.Exception
context - java.io.IOExceptionjava.lang.Exceptionpublic void storeChildren(java.io.PrintWriter aWriter,
int indent,
java.lang.Object aContext,
StoreDescription parentDesc)
throws java.lang.Exception
storeChildren in class StoreFactoryBaseaWriter - PrintWriter to which we are storingindent - Number of spaces to indent this elementaContext - Context whose properties are being storedjava.lang.Exception - if an exception occurs while storingprotected java.io.File configBase(Context context)
protected java.lang.String[] filterWatchedResources(StandardContext context, java.lang.String[] wresources) throws java.lang.Exception
context - wresources - java.io.IOException - TODO relative watchedresource
TODO absolute handling configFile
TODO Filename case handling for Windows?
TODO digester variable subsitution $catalina.base, $catalina.homejava.lang.ExceptionCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.