|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The request filter interface. Filters allow application wide request enhancement before they are being actually emited on the wire.
Once registered to the HttpManager, a request filter will be invoked before the request is actualy sent to the wire, and right after the reply headers are available, only if its current scope matches the request URL.
Method Summary | |
boolean |
exceptionFilter(Request request,
HttpException ex)
An exception occured while talking to target server. |
Reply |
ingoingFilter(Request request)
The request pre-processing hook. |
Reply |
outgoingFilter(Request request,
Reply reply)
The request post-processing hook. |
void |
sync()
Synchronized any pending state into stable storage. |
Method Detail |
public Reply ingoingFilter(Request request) throws HttpException
request
- The request that is about to be launched.public Reply outgoingFilter(Request request, Reply reply) throws HttpException
It gets the original request, and the actual reply as a parameter, and should return whatever reply it wants the caller to get.
request
- The original (handled) request.reply
- The reply, as emited by the target server, or constructed
by some other filter.public boolean exceptionFilter(Request request, HttpException ex)
request
- The request whose processing triggered the exception.ex
- The exception that was triggered.public void sync()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |