Uses of Interface
org.refcodes.rest.RestRequestHandler
-
Uses of RestRequestHandler in org.refcodes.rest
Modifier and TypeInterfaceDescriptioninterface
HttpDiscoveryRestClient<B extends HttpDiscoveryRestClient<B>>
TheHttpDiscoveryRestClient
provides additional functionality for registering at and signing off from a service discovery service in order to resolve URLs to or from other services.interface
Extends aRestClient
to be capable of providing a User-Agent withUserAgentAccessor.UserAgentMutator.setUserAgent(String)
(HttpRestClient.withUserAgent(String)
) and to be capable of using base URLs to be set withBaseUrlAccessor.BaseUrlMutator.setBaseUrl(String)
(HttpRestClient.withBaseUrl(String)
).interface
Extends aRestClient
to be used as loopback device e.g. for testing purposes such as testing yourRestResponseConsumer
implementations.interface
A client to send requests for communicating with a RESTful server such as theHttpRestServer
.interface
Helper interface to keep the huge amount of convenience methods under control.interface
Helper interface to keep the huge amount of convenience methods under control.interface
Helper interface to keep the huge amount of convenience methods under control.interface
Helper interface to keep the huge amount of convenience methods under control.interface
Helper interface to keep the huge amount of convenience methods under control.Modifier and TypeClassDescriptionclass
Abstract class for easily decorating aHttpDiscoveryRestClient
.class
AbstractHttpRestClientDecorator<B extends HttpRestClient>
Abstract class for easily decorating aHttpRestClient
.class
Abstract base implementation of theRestClient
interface being the foundation for variousRestClient
implementations such asHttpRestClientImpl
orLoopbackRestClientImpl
.class
TheHttpRestClientImpl
implements theHttpRestClient
interface.class
The singleton of theHttpRestClientImpl
for easyHttpRestClient
access.class
Implementation if theLoopbackRestClient
for easy testing of your requests being issued with aRestClient
(LoopbackRestClientImpl
) and the according responselambda
expressions.class
The singleton of theLoopbackRestClientImpl
for easyLoopbackRestClientImpl
access.Modifier and TypeMethodDescriptionprotected void
AbstractRestClient.onRestRequest
(RestRequestHandler aHandler) Sets the hook receiving a preparedRestResponseHandler
instance to be used to do the technical request with the technology chosen by the implementing sub-class.void
LoopbackRestClient.onRestRequest
(RestRequestHandler aHandler) Registers aRestRequestHandler
to simulate a REST response: ThedoRequest(org.refcodes.web.HttpClientRequest)
method is invoked with a preparedRestResponseHandler
instance representing the request being sent and produces an accordingRestResponseEvent
to be passed back to the issuer of the request.void
LoopbackRestClientImpl.onRestRequest
(RestRequestHandler aHandler) Sets the hook receiving a preparedRestResponseHandler
instance to be used to do the technical request with the technology chosen by the implementing sub-class.