@FunctionalInterface public interface RestRequestHandler
RestRequestHandler
handles a REST request on the RestClient
instance's side to do the actual technical implementation of sending that
request (or mocking the send-out of a request).Modifier and Type | Method and Description |
---|---|
RestResponse |
onRestRequest(org.refcodes.net.HttpClientRequest aHttpClientRequest)
Hook receiving a prepared
RestCallerBuilder instance to be used
to do the technical request with the technology chosen by the
implementing sub-class. |
RestResponse onRestRequest(org.refcodes.net.HttpClientRequest aHttpClientRequest) throws org.refcodes.net.HttpResponseException
RestCallerBuilder
instance to be used
to do the technical request with the technology chosen by the
implementing sub-class.aHttpClientRequest
- The prepared HttpClientRequest
.RestResponse
.org.refcodes.net.HttpResponseException
- thrown by a HTTP response handling system
in case of some unexpected response.Copyright © 2017. All rights reserved.