|
|||||||||
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 java.lang.String[] |
methods
|
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)
Will extract the user ID from the request, and check the password. |
int |
authorize(Request request,
Response response)
Will check if the user is authorized, by checking if it is in one of the roles defined in security constraints. |
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. |
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 |
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)
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected java.lang.String[] methods
Constructor Detail |
public BaseInterceptor()
Method Detail |
public void setContextManager(ContextManager cm)
public int requestMap(Request request)
public int contextMap(Request rrequest)
public int authenticate(Request request, Response response)
public int authorize(Request request, Response response)
public int preService(Request request, Response response)
public int beforeBody(Request rrequest, 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 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 |