|
|||||||||||
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.WorkDirSetup
Handles work dir setup/removal.
Field Summary | |
static java.lang.String |
ATTRIB_WORKDIR
Workdir - a place where the servlets are allowed to write |
static java.lang.String |
DEFAULT_WORK_DIR
Default work dir, relative to home |
Fields inherited from class org.apache.tomcat.core.BaseInterceptor |
cm, ct, ctx, debug, DECLINED, loghelper, OK |
Constructor Summary | |
WorkDirSetup()
|
Method Summary | |
void |
addContext(ContextManager cm,
Context ctx)
Called when a context is added to a CM. |
void |
contextShutdown(Context ctx)
Called when a context is stoped, before removeContext. |
void |
engineInit(ContextManager cm)
Initialize the module. |
java.lang.Object |
getInfo(Context ctx,
Request req,
int info,
java.lang.String k)
Hook for lazy evaluation of request info. |
void |
setCleanWorkDir(boolean b)
Auto-remove the work dir when tomcat is (grecefully) stoped and when tomcat starts. |
void |
setOldStyle(boolean b)
|
void |
setUseWebInf(boolean useWebInf)
|
void |
setWorkDirBase(java.lang.String s)
Allow the user to customize the base directory for workdirs ( /var/tomcat/workdir for example ) |
Methods inherited from class org.apache.tomcat.core.BaseInterceptor |
addContainer, addHandler, addInterceptor, addSecurityConstraint, afterBody, authenticate, authorize, beforeBody, beforeCommit, contextInit, contextMap, contextState, engineShutdown, engineStart, engineState, engineStop, findSession, getContext, getContextManager, getDebug, getLog, getNote, getNote, handleError, log, log, log, log, postReadRequest, postRequest, postService, postServletDestroy, postServletInit, preService, preServletDestroy, preServletInit, registerHooks, reload, 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 |
Field Detail |
public static final java.lang.String DEFAULT_WORK_DIR
public static final java.lang.String ATTRIB_WORKDIR
Constructor Detail |
public WorkDirSetup()
Method Detail |
public void setCleanWorkDir(boolean b)
public void setWorkDirBase(java.lang.String s)
public void setUseWebInf(boolean useWebInf)
public void setOldStyle(boolean b)
public void engineInit(ContextManager cm) throws TomcatException
BaseInterceptor
engineInit
in class BaseInterceptor
TomcatException
- The module will not be added if any
exception is thrown by engineInit.public void addContext(ContextManager cm, Context ctx)
BaseInterceptor
addContext
in class BaseInterceptor
public void contextShutdown(Context ctx)
BaseInterceptor
contextShutdown
in class BaseInterceptor
public final java.lang.Object getInfo(Context ctx, Request req, int info, java.lang.String k)
BaseInterceptor
getInfo
in class BaseInterceptor
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |