|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.tomcat.core.BaseInterceptor
Field Summary | |
protected ContextManager |
cm
|
protected int |
debug
|
protected java.lang.String[] |
methods
|
protected java.lang.String |
name
|
Fields inherited from interface org.apache.tomcat.core.RequestInterceptor |
OK |
Constructor Summary | |
BaseInterceptor()
|
Method Summary | |
void |
addContainer(Container container)
A new location was added to the server. |
void |
addContext(ContextManager cm,
Context ctx)
Called when a context is added to a CM |
void |
addSecurityConstraint(Context ctx,
java.lang.String path,
Container ct)
|
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,
java.lang.String[] reqRoles)
Will check if the current ( authenticated ) user is authorized to access a resource, by checking if it have one of the required roles. |
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. |
void |
contextInit(Context ctx)
Notify when a context is initialized. |
int |
contextMap(Request rrequest)
Will detect the context path for a request. |
void |
contextShutdown(Context ctx)
Called when a context is stoped, before removeContext. |
void |
engineInit(ContextManager cm)
Called when the ContextManger is started |
void |
engineShutdown(ContextManager cm)
Called before the ContextManager is stoped. |
java.lang.String[] |
getMethods()
Will return the methods fow which this interceptor is interested in notification. |
protected void |
log(java.lang.String s)
|
int |
newSessionRequest(Request request,
Response response)
New Session notification - called when the servlet asks for a new session. |
int |
postService(Request request,
Response response)
Called after service method ends. |
void |
postServletDestroy(Context ctx,
ServletWrapper sw)
|
void |
postServletInit(Context ctx,
ServletWrapper sw)
|
int |
preService(Request request,
Response response)
Called before service method is invoked. |
void |
preServletDestroy(Context ctx,
ServletWrapper sw)
Servlet Destroy notification |
void |
preServletInit(Context ctx,
ServletWrapper sw)
Servlet Init notification |
void |
reload(Request req,
Context ctx)
Reload notification - called whenever a reload is done. |
void |
removeContainer(Container container)
A rule was removed, update the internal strucures. |
void |
removeContext(ContextManager cm,
Context ctx)
Called when a context is removed from a CM |
int |
requestMap(Request request)
Handle mappings inside a context. |
void |
setContextManager(ContextManager cm)
|
void |
setDebug(int d)
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected ContextManager cm
protected java.lang.String[] methods
protected int debug
protected java.lang.String name
Constructor Detail |
public BaseInterceptor()
Method Detail |
public void setDebug(int d)
public void setContextManager(ContextManager cm)
protected void log(java.lang.String s)
public int requestMap(Request request)
public int contextMap(Request rrequest)
public int authenticate(Request request, Response response)
public int authorize(Request request, Response response, java.lang.String[] reqRoles)
public int preService(Request request, Response response)
public int beforeBody(Request rrequest, Response response)
public int newSessionRequest(Request request, Response response)
public int beforeCommit(Request request, Response response)
public int afterBody(Request request, Response response)
public int postService(Request request, Response response)
public java.lang.String[] getMethods()
public void contextInit(Context ctx) throws TomcatException
public void contextShutdown(Context ctx) throws TomcatException
public void addContainer(Container container) throws TomcatException
public void removeContainer(Container container) throws TomcatException
public void addSecurityConstraint(Context ctx, java.lang.String path, Container ct) throws TomcatException
public void engineInit(ContextManager cm) throws TomcatException
public void engineShutdown(ContextManager cm) throws TomcatException
public void addContext(ContextManager cm, Context ctx) throws TomcatException
public void removeContext(ContextManager cm, Context ctx) throws TomcatException
public void reload(Request req, Context ctx) throws TomcatException
public void preServletInit(Context ctx, ServletWrapper sw) throws TomcatException
public void postServletInit(Context ctx, ServletWrapper sw) throws TomcatException
public void preServletDestroy(Context ctx, ServletWrapper sw) throws TomcatException
public void postServletDestroy(Context ctx, ServletWrapper sw) throws TomcatException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |