|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Provide a mechanism to customize the request processing.
Field Summary | |
static int |
OK
|
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)
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 request,
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. |
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. |
int |
preService(Request request,
Response response)
Called before service method is invoked. |
int |
requestMap(Request request)
Handle mappings inside a context. |
Field Detail |
public static final int OK
Method Detail |
public int contextMap(Request request)
public int requestMap(Request request)
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 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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |