-
- All Known Subinterfaces:
HttpDiscoveryRestClient<B>
,HttpRestClient
,LoopbackRestClient
,RestClient
,RestDeleteClient
,RestGetClient
,RestPostClient
,RestPutClient
,RestRequestClient
- All Known Implementing Classes:
AbstractHttpDiscoveryRestClientDecorator
,AbstractHttpRestClientDecorator
,AbstractRestClient
,HttpRestClientImpl
,HttpRestClientSingleton
,LoopbackRestClientImpl
,LoopbackRestClientSingleton
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface RestRequestHandler
ARestRequestHandler
handles a REST request on theRestClient
instance's side to do the actual technical implementation of sending that request (or mocking the send-out of a request).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RestResponse
doRequest(org.refcodes.web.HttpClientRequest aHttpClientRequest)
Hook receiving a preparedRestResponseHandler
instance to be used to do the technical request with the technology chosen by the implementing sub-class.
-
-
-
Method Detail
-
doRequest
RestResponse doRequest(org.refcodes.web.HttpClientRequest aHttpClientRequest) throws org.refcodes.web.HttpResponseException
Hook receiving a preparedRestResponseHandler
instance to be used to do the technical request with the technology chosen by the implementing sub-class.- Parameters:
aHttpClientRequest
- The preparedHttpClientRequest
.- Returns:
- The resulting
RestResponse
. - Throws:
org.refcodes.web.HttpResponseException
- thrown by a HTTP response handling system in case of some unexpected response.
-
-