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