|
|||||||||||
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.mappers.DecodeInterceptor
Default actions after receiving the request: get charset, unescape, pre-process. This intercept can optionally normalize the request and check for certain unsafe escapes. Both of these options are on by default.
Field Summary |
Fields inherited from class org.apache.tomcat.core.BaseInterceptor |
cm, ct, ctx, debug, DECLINED, loghelper, OK |
Constructor Summary | |
DecodeInterceptor()
|
Method Summary | |
int |
beforeBody(Request req,
Response res)
Hook - before the response is sent, get the response encoding and save it per session ( if we are in a session ). |
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. |
int |
postReadRequest(Request req)
Called immediately after the request has been received, before any mapping. |
void |
setCharsetAttribute(java.lang.String s)
|
void |
setDefaultEncoding(java.lang.String s)
Set server-wide default encoding. |
int |
setInfo(Context ctx,
Request req,
int info,
java.lang.String k,
java.lang.Object v)
|
void |
setNormalize(boolean b)
Decode interceptor can normalize urls, per RFC 1630 |
void |
setSafe(boolean b)
Decode interceptor can reject unsafe urls. |
void |
setSaveOriginal(boolean b)
Save the original uri before decoding. |
void |
setUseSessionEncoding(boolean b)
|
Methods inherited from class org.apache.tomcat.core.BaseInterceptor |
addContainer, addContext, addHandler, addInterceptor, addSecurityConstraint, afterBody, authenticate, authorize, beforeCommit, contextInit, contextMap, contextShutdown, contextState, copyContext, engineShutdown, engineStart, engineState, engineStop, findSession, getContext, getContextManager, getDebug, getLog, getNote, getNote, handleError, log, log, log, log, postInitCheck, postRequest, postService, postServletDestroy, postServletInit, preInitCheck, preService, preServletDestroy, preServletInit, registerHooks, reload, removeContainer, removeContext, removeHandler, removeInterceptor, requestMap, sessionState, setContext, setContextManager, setDebug, setNote, setNote |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DecodeInterceptor()
Method Detail |
public void setDefaultEncoding(java.lang.String s)
public void setUseSessionEncoding(boolean b)
public void setCharsetAttribute(java.lang.String s)
public void setNormalize(boolean b)
public void setSaveOriginal(boolean b)
public void setSafe(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 int postReadRequest(Request req)
BaseInterceptor
postReadRequest
in class BaseInterceptor
public int beforeBody(Request req, Response res)
beforeBody
in class BaseInterceptor
public java.lang.Object getInfo(Context ctx, Request req, int info, java.lang.String k)
BaseInterceptor
getInfo
in class BaseInterceptor
public int setInfo(Context ctx, Request req, int info, java.lang.String k, java.lang.Object v)
setInfo
in class BaseInterceptor
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |