final class RequestHandler2Adaptor extends RequestHandler2
RequestHandler
interface to the deprecating
RequestHandler2
interface.Modifier and Type | Field and Description |
---|---|
private RequestHandler |
old |
Constructor and Description |
---|
RequestHandler2Adaptor(RequestHandler old) |
Modifier and Type | Method and Description |
---|---|
void |
afterError(Request<?> request,
Response<?> response,
java.lang.Exception e)
Runs any additional processing logic on a request after it has failed.
|
void |
afterResponse(Request<?> request,
Response<?> response)
Runs any additional processing logic on the specified request (after is has been executed by
the client runtime).
|
void |
beforeRequest(Request<?> request)
Runs any additional processing logic on the specified request (before it is executed by the
client runtime).
|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
adapt, beforeMarshalling, beforeUnmarshalling
private final RequestHandler old
RequestHandler2Adaptor(RequestHandler old)
public void beforeRequest(Request<?> request)
IRequestHandler2
beforeRequest
in interface IRequestHandler2
beforeRequest
in class RequestHandler2
request
- The low level request being processed.public void afterResponse(Request<?> request, Response<?> response)
IRequestHandler2
afterResponse
in interface IRequestHandler2
afterResponse
in class RequestHandler2
request
- The low level request being processed.response
- The response generated from the specified request.public void afterError(Request<?> request, Response<?> response, java.lang.Exception e)
IRequestHandler2
afterError
in interface IRequestHandler2
afterError
in class RequestHandler2
request
- The request that generated an error.response
- the response or null if the failure occurred before the response is made availablee
- The error that resulted from executing the request.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object