|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tomcat.core.BaseInterceptor
org.apache.tomcat.modules.config.AutoDeploy
Will manage a repository of .war files, expanding them automatically and eventually re-deploying them. Based on the original AutoSetup.
Field Summary |
Fields inherited from class org.apache.tomcat.core.BaseInterceptor |
cm, ct, ctx, debug, DECLINED, loghelper, OK |
Constructor Summary | |
AutoDeploy()
|
Method Summary | |
void |
addContext(ContextManager cm,
Context ctx)
Called when a context is added to a CM. |
void |
addInterceptor(ContextManager cm,
Context ctx,
BaseInterceptor module)
Find all wars and expand them. |
void |
contextInit(Context context)
Notify when a context is initialized. |
void |
reload(Request req,
Context context)
Reload notification - called whenever a reload is done. |
void |
setFlat(boolean b)
"Flat" directory support - no virtual host support. |
void |
setRedeploy(boolean b)
Re-deploy the context if the war file is modified. |
void |
setSource(java.lang.String d)
Directory where war files are deployed Defaults to TOMCAT_HOME/webapps. |
void |
setTarget(java.lang.String d)
Directory where war files are deployed Defaults to TOMCAT_HOME/webapps. |
Methods inherited from class org.apache.tomcat.core.BaseInterceptor |
addContainer, addHandler, addSecurityConstraint, afterBody, authenticate, authorize, beforeBody, beforeCommit, contextMap, contextShutdown, contextState, engineInit, engineShutdown, engineStart, engineState, engineStop, findSession, getContext, getContextManager, getDebug, getInfo, getLog, getNote, getNote, handleError, log, log, log, log, postReadRequest, postRequest, postService, postServletDestroy, postServletInit, preService, preServletDestroy, preServletInit, registerHooks, removeContainer, removeContext, removeHandler, removeInterceptor, requestMap, sessionState, setContext, setContextManager, setDebug, setInfo, setNote, setNote |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AutoDeploy()
Method Detail |
public void setSource(java.lang.String d)
public void setTarget(java.lang.String d)
public void setFlat(boolean b)
public void setRedeploy(boolean b)
public void addInterceptor(ContextManager cm, Context ctx, BaseInterceptor module) throws TomcatException
addInterceptor
in class BaseInterceptor
cm
- the serverctx
- not null if this is a local interceptormodule
- the new added interceptor
TomcatException
- The module will not be added if any
module throws an exception.public void addContext(ContextManager cm, Context ctx) throws TomcatException
BaseInterceptor
addContext
in class BaseInterceptor
TomcatException
public void contextInit(Context context) throws TomcatException
BaseInterceptor
contextInit
in class BaseInterceptor
TomcatException
public void reload(Request req, Context context) throws TomcatException
BaseInterceptor
reload
in class BaseInterceptor
TomcatException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |