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, storeXMLHead
public void store(java.io.PrintWriter aWriter, int indent, java.lang.Object aContext) throws java.lang.Exception
store
in interface IStoreFactory
store
in class StoreFactoryBase
java.lang.Exception
protected void storeContextSeparate(java.io.PrintWriter aWriter, int indent, StandardContext aContext) throws java.lang.Exception
aWriter
- indent
- aContext
- java.lang.Exception
protected void storeWithBackup(StandardContext aContext) throws java.lang.Exception
aContext
- java.lang.Exception
protected StoreFileMover getConfigFileWriter(Context context) throws java.lang.Exception
context
- java.io.IOException
java.lang.Exception
public void storeChildren(java.io.PrintWriter aWriter, int indent, java.lang.Object aContext, StoreDescription parentDesc) throws java.lang.Exception
storeChildren
in class StoreFactoryBase
aWriter
- 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.Exception
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.