public interface RequestListener
RequestIntegration| Modifier and Type | Method and Description |
|---|---|
void |
beforeRequest()
Called before the server handles an HTTP request.
|
boolean |
rawRequest(Object context,
Object request,
Object response)
Give a chance to this listener to fully manage this request.
|
void |
requestFinally()
Called at the end of the request (even if an exception occurred).
|
boolean rawRequest(Object context, Object request, Object response)
If true is returned neither the server itself nor
any other request listener have a change to manage this request.
Any exceptions will be caught and logged to the standard output.
context - an instance of org.zeroturnaround.javarebel.RebelServletContext.request - an instance of javax.servlet.http.HttpServletRequest.response - an instance of javax.servlet.http.HttpServletResponse.void beforeRequest()
Only called if no listener managed this request.
Any exceptions will be caught and logged to the standard output.
void requestFinally()
Only called if no listener managed this request.
Any exceptions will be caught and logged to the standard output.
Copyright © 2015. All rights reserved.