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, to remove standard ones.
|
protected StoreFileMover |
getConfigFileWriter(Context context)
Get explicit writer for context (context.getConfigFile()).
|
void |
store(PrintWriter aWriter,
int indent,
Object aContext)
Store a Context as Separate file as configFile value from context exists.
|
void |
storeChildren(PrintWriter aWriter,
int indent,
Object aContext,
StoreDescription parentDesc)
Store the specified context element children.
|
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 StoreFactoryBaseExceptionIStoreFactory.store(java.io.PrintWriter,
int, java.lang.Object)protected void storeContextSeparate(PrintWriter aWriter, int indent, StandardContext aContext) throws Exception
aWriter - Current output writerindent - Indentation levelaContext - The context which will be storedException - Configuration storing errorprotected void storeWithBackup(StandardContext aContext) throws Exception
aContext - The context which will be storedException - Configuration storing errorprotected StoreFileMover getConfigFileWriter(Context context) throws Exception
context - The context which will be storedException - Error getting a writer for the configuration filepublic void storeChildren(PrintWriter aWriter, int indent, Object aContext, StoreDescription parentDesc) throws Exception
storeChildren in class StoreFactoryBaseaWriter - Current output writerindent - Indentation levelaContext - Context to storeparentDesc - The element descriptionException - Configuration storing errorprotected File configBase(Context context)
context - The context instanceprotected String[] filterWatchedResources(StandardContext context, String[] wresources) throws Exception
context - The context instancewresources - The raw watched resources listException - 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-2022 Apache Software Foundation. All Rights Reserved.