|
|||||||||||
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.loggers.AccountingInterceptor
Time counting.
Field Summary | |
static int |
ACC_IN_OUT
|
static int |
ACC_OUT_COUNT
|
static int |
ACC_POST_MAP
|
static int |
ACC_POST_SERVICE
|
static int |
ACC_PRE_CMAP
|
static int |
ACC_PRE_RMAP
|
static int |
ACC_PRE_SERVICE
|
static int |
COUNTERS_COUNT
|
Fields inherited from class org.apache.tomcat.core.BaseInterceptor |
ct, ctx, DECLINED, loghelper, OK |
Constructor Summary | |
AccountingInterceptor()
|
Method Summary | |
int |
afterBody(Request request,
Response response)
Called after the output stream is closed ( either by servlet or automatically at end of service ). |
int |
authenticate(Request request,
Response response)
This callback is used to extract and verify the user identity and credentials. |
int |
authorize(Request request,
Response response)
|
int |
beforeBody(Request rrequest,
Response response)
Called before the first body write, and before sending the headers. |
int |
beforeCommit(Request request,
Response response)
Called before the output buffer is commited. |
int |
contextMap(Request request)
Will detect the context path for a request. |
void |
engineInit(ContextManager cm)
Called when the ContextManger is started |
int |
postService(Request request,
Response response)
Called after service method ends. |
int |
preService(Request request,
Response response)
Called before service method is invoked. |
int |
requestMap(Request request)
Handle mappings inside a context. |
void |
setTrace(java.lang.String file)
|
Methods inherited from class org.apache.tomcat.core.BaseInterceptor |
addContainer, addContext, addHandler, addInterceptor, addSecurityConstraint, authorize, contextInit, contextShutdown, contextState, engineShutdown, engineStart, engineState, engineStop, findSession, getContext, getContextManager, getDebug, getInfo, getLog, getNote, getNote, handleError, log, log, log, log, postReadRequest, postRequest, postServletDestroy, postServletInit, preServletDestroy, preServletInit, registerHooks, reload, removeContainer, removeContext, removeHandler, removeInterceptor, 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 int ACC_PRE_CMAP
public static final int ACC_PRE_RMAP
public static final int ACC_POST_MAP
public static final int ACC_PRE_SERVICE
public static final int ACC_POST_SERVICE
public static final int ACC_IN_OUT
public static final int ACC_OUT_COUNT
public static final int COUNTERS_COUNT
Constructor Detail |
public AccountingInterceptor()
Method Detail |
public void setTrace(java.lang.String file)
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 int requestMap(Request request)
BaseInterceptor
requestMap
in class BaseInterceptor
public int contextMap(Request request)
BaseInterceptor
contextMap
in class BaseInterceptor
public int authenticate(Request request, Response response)
BaseInterceptor
authenticate
in class BaseInterceptor
public int authorize(Request request, Response response)
public int preService(Request request, Response response)
BaseInterceptor
preService
in class BaseInterceptor
public int beforeBody(Request rrequest, Response response)
BaseInterceptor
beforeBody
in class BaseInterceptor
public int beforeCommit(Request request, Response response)
BaseInterceptor
beforeCommit
in class BaseInterceptor
public int afterBody(Request request, Response response)
BaseInterceptor
afterBody
in class BaseInterceptor
public int postService(Request request, Response response)
BaseInterceptor
postService
in class BaseInterceptor
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |