public interface JobRepositoryRemoteServiceInterceptor
BaseObject
and BaseResponseObject
.Modifier and Type | Method and Description |
---|---|
BaseResponseObject |
handleRequest(BaseObject baseObject)
Handles request if at least one interceptor returned
null
from a preRequest(BaseObject) method. |
BaseResponseObject |
postRequest(BaseResponseObject baseResponseObject)
Invoked after request is made using
BaseObject
and before BaseResponseObject is sent to further
processing. |
BaseObject |
preRequest(BaseObject baseObject)
Invoked after request is made using
BaseObject . |
BaseObject preRequest(BaseObject baseObject)
BaseObject
.
This allows modification of a request. If this method
returns null
, the interceptor chain will
break indicating that one of the interceptor should handle
the request in handleRequest(BaseObject)
method.baseObject
- the request base objectBaseResponseObject handleRequest(BaseObject baseObject)
null
from a preRequest(BaseObject)
method.baseObject
- the base objectBaseResponseObject postRequest(BaseResponseObject baseResponseObject)
BaseObject
and before BaseResponseObject
is sent to further
processing. This allows modification of a response.baseResponseObject
- the response object