|
|||||||||||
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.PathSetter
Set ( and guess ) the paths to absolute ( and canonical ) directories. This module must be added first ( before even ServerXmlReader ). If tomcat is embeded _and_ you are sure that all paths you set are OK - you may not need this ( but better to be safe and add it ). You don't have to insert this in server.xml - it's better to add it manually, to be sure it is first. Will set: tomcat.home, CM.home, CM.installDir, CM.workDir, Ctx.absolutePath ( based on DefaultCMSetter )
Field Summary | |
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 | |
PathSetter()
|
Method Summary | |
void |
addContext(ContextManager cm,
Context ctx)
Adjust paths for a context - make the base and all loggers point to canonical paths. |
void |
addInterceptor(ContextManager cm,
Context ctx,
BaseInterceptor module)
Adjust context manager paths. |
void |
engineInit(ContextManager cm)
After server.xml is read - make sure the workDir is absolute, and all global loggers are set to absolute paths and open. |
void |
engineState(ContextManager cm,
int state)
Notifies the module that the server changed it's state. |
Methods inherited from class org.apache.tomcat.core.BaseInterceptor |
addContainer, addHandler, addSecurityConstraint, afterBody, authenticate, authorize, beforeBody, beforeCommit, contextInit, contextMap, contextShutdown, contextState, copyContext, engineShutdown, engineStart, engineStop, findSession, getContext, getContextManager, getDebug, getInfo, getLog, getNote, getNote, handleError, log, log, log, log, postInitCheck, postReadRequest, postRequest, postService, postServletDestroy, postServletInit, preInitCheck, 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
Constructor Detail |
public PathSetter()
Method Detail |
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 engineInit(ContextManager cm) throws TomcatException
engineInit
in class BaseInterceptor
TomcatException
- The module will not be added if any
exception is thrown by engineInit.public void engineState(ContextManager cm, int state) throws TomcatException
BaseInterceptor
engineState
in class BaseInterceptor
TomcatException
public void addContext(ContextManager cm, Context ctx) throws TomcatException
addContext
in class BaseInterceptor
TomcatException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |