Package org.apache.juneau.rest.client
Class BasicRestCallInterceptor
java.lang.Object
org.apache.juneau.rest.client.BasicRestCallInterceptor
- All Implemented Interfaces:
- RestCallInterceptor
A default implementation of a 
RestCallInterceptor.
 All default methods are no-ops.
 See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidonClose(RestRequest req, RestResponse res) Called when the response body is consumed.voidonConnect(RestRequest req, RestResponse res) Called immediately after an HTTP response has been received.voidonInit(RestRequest req) Called immediately afterRestRequestobject is created and all headers/query/form-data has been copied from the client to the request object.
- 
Constructor Details- 
BasicRestCallInterceptorpublic BasicRestCallInterceptor()
 
- 
- 
Method Details- 
onInitDescription copied from interface:RestCallInterceptorCalled immediately afterRestRequestobject is created and all headers/query/form-data has been copied from the client to the request object.- Specified by:
- onInitin interface- RestCallInterceptor
- Parameters:
- req- The HTTP request object.
- Throws:
- Exception- Any exception can be thrown.
 If not a- RestCallExceptionor- RuntimeException, will be wrapped in a- RestCallException.
 
- 
onConnectDescription copied from interface:RestCallInterceptorCalled immediately after an HTTP response has been received.- Specified by:
- onConnectin interface- RestCallInterceptor
- Parameters:
- req- The HTTP request object.
- res- The HTTP response object.
- Throws:
- Exception- Any exception can be thrown.
 If not a- RestCallExceptionor- RuntimeException, will be wrapped in a- RestCallException.
 
- 
onCloseDescription copied from interface:RestCallInterceptorCalled when the response body is consumed.- Specified by:
- onClosein interface- RestCallInterceptor
- Parameters:
- req- The request object.
- res- The response object.
- Throws:
- RestCallException- Error occurred during call.
- Exception- Any exception can be thrown.
 If not a- RestCallExceptionor- RuntimeException, will be wrapped in a- RestCallException.
 
 
-