|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.catalina.storeconfig.StoreFactoryBase org.apache.catalina.storeconfig.StandardContextSF
Store server.xml Context element with all childs
Field Summary |
Fields inherited from class org.apache.catalina.storeconfig.StoreFactoryBase |
sm |
Constructor Summary | |
StandardContextSF()
|
Method Summary | |
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 |
storeChilds(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 |
Methods inherited from class org.apache.catalina.storeconfig.StoreFactoryBase |
getInfo, getRegistry, getStoreAppender, setRegistry, setStoreAppender, storeElement, storeElementArray, storeXMLHead |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StandardContextSF()
Method Detail |
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.io.IOException
context
-
java.io.IOException
public void storeChilds(java.io.PrintWriter aWriter, int indent, java.lang.Object aContext, StoreDescription parentDesc) throws java.lang.Exception
storeChilds
in class StoreFactoryBase
aWriter
- PrintWriter to which we are storingindent
- Number of spaces to indent this elementaContext
- Context whose properties are being storedparentDesc
-
java.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.io.IOException
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.home
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |