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, to remove standard ones.
|
protected StoreFileMover |
getConfigFileWriter(Context context)
Get explicit writer for context (context.getConfigFile()).
|
void |
store(java.io.PrintWriter aWriter,
int indent,
java.lang.Object aContext)
Store a Context as Separate file as configFile value from context exists.
|
void |
storeChildren(java.io.PrintWriter aWriter,
int indent,
java.lang.Object aContext,
StoreDescription parentDesc)
Store the specified context element children.
|
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.ExceptionIStoreFactory.store(java.io.PrintWriter,
int, java.lang.Object)protected void storeContextSeparate(java.io.PrintWriter aWriter,
int indent,
StandardContext aContext)
throws java.lang.Exception
aWriter - Current output writerindent - Indentation levelaContext - The context which will be storedjava.lang.Exception - Configuration storing errorprotected void storeWithBackup(StandardContext aContext) throws java.lang.Exception
aContext - The context which will be storedjava.lang.Exception - Configuration storing errorprotected StoreFileMover getConfigFileWriter(Context context) throws java.lang.Exception
context - The context which will be storedjava.lang.Exception - Error getting a writer for the configuration filepublic void storeChildren(java.io.PrintWriter aWriter,
int indent,
java.lang.Object aContext,
StoreDescription parentDesc)
throws java.lang.Exception
storeChildren in class StoreFactoryBaseaWriter - Current output writerindent - Indentation levelaContext - Context to storeparentDesc - The element descriptionjava.lang.Exception - Configuration storing errorprotected java.io.File configBase(Context context)
context - The context instanceprotected java.lang.String[] filterWatchedResources(StandardContext context, java.lang.String[] wresources) throws java.lang.Exception
context - The context instancewresources - The raw watched resources listjava.lang.Exception - Configuration storing error
TODO relative watched resources
TODO absolute handling configFile
TODO Filename case handling for Windows?
TODO digester variable substitution $catalina.base, $catalina.homeCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.