public interface RequestListener
RequestIntegration| Modifier and Type | Method and Description |
|---|---|
void |
beforeRequest()
Called before the server handles an HTTP request.
|
int |
priority()
Returns the priority of the listener that defines the order of listener invocation.
|
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) throws Exception
If true is returned neither the server itself nor
any other request listener have a chance 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.Exceptionvoid beforeRequest()
throws Exception
Only called if no listener managed this request.
Any exceptions will be caught and logged to the standard output.
Exceptionvoid requestFinally()
throws Exception
Only called if no listener managed this request.
Any exceptions will be caught and logged to the standard output.
Exceptionint priority()
Copyright © 2018. All rights reserved.