Modifier and Type | Interface | Description |
---|---|---|
interface |
HttpDiscoveryRestClient<B extends HttpDiscoveryRestClient<B>> |
The
HttpDiscoveryRestClient 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 |
HttpRestClient |
Extends a
RestClient to be capable of providing a User-Agent with
UserAgentAccessor.UserAgentMutator.setUserAgent(String) (HttpRestClient.withUserAgent(String) ) and to be
capable of using base URLs to be set with BaseUrlAccessor.BaseUrlMutator.setBaseUrl(String) (
HttpRestClient.withBaseUrl(String) ). |
interface |
LoopbackRestClient |
Extends a
RestClient to be used as loopback device e.g. for testing
purposes such as testing your RestResponseConsumer implementations. |
interface |
RestClient |
A client to send requests for communicating with a RESTful server such as the
HttpRestServer . |
interface |
RestDeleteClient |
Helper interface to keep the huge amount of convenience methods under
control.
|
interface |
RestGetClient |
Helper interface to keep the huge amount of convenience methods under
control.
|
interface |
RestPostClient |
Helper interface to keep the huge amount of convenience methods under
control.
|
interface |
RestPutClient |
Helper interface to keep the huge amount of convenience methods under
control.
|
interface |
RestRequestClient |
Helper interface to keep the huge amount of convenience methods under
control.
|
Modifier and Type | Class | Description |
---|---|---|
class |
AbstractHttpDiscoveryRestClientDecorator<B extends HttpDiscoveryRestClient<B>> |
Abstract class for easily decorating a
HttpDiscoveryRestClient . |
class |
AbstractHttpRestClientDecorator<B extends HttpRestClient> |
Abstract class for easily decorating a
HttpRestClient . |
class |
AbstractRestClient |
Abstract base implementation of the
RestClient interface being the
foundation for various RestClient implementations such as
HttpRestClientImpl or LoopbackRestClientImpl . |
class |
HttpRestClientImpl |
The
HttpRestClientImpl implements the HttpRestClient
interface. |
class |
HttpRestClientSingleton |
The singleton of the
HttpRestClientImpl for easy
HttpRestClient access. |
class |
LoopbackRestClientImpl |
Implementation if the
LoopbackRestClient for easy testing of your
requests being issued with a RestClient
(LoopbackRestClientImpl ) and the according response
lambda expressions. |
class |
LoopbackRestClientSingleton |
The singleton of the
LoopbackRestClientImpl for easy
LoopbackRestClientImpl access. |
Modifier and Type | Method | Description |
---|---|---|
protected void |
AbstractRestClient.onRestRequest(RestRequestHandler aHandler) |
Sets the hook receiving a prepared
RestResponseHandler instance
to be used to do the technical request with the technology chosen by the
implementing sub-class. |
void |
LoopbackRestClient.onRestRequest(RestRequestHandler aHandler) |
Registers a
RestRequestHandler to simulate a REST response: The
doRequest(org.refcodes.web.HttpClientRequest)
method is invoked with a prepared RestResponseHandler instance
representing the request being sent and produces an according
RestResponseEvent to be passed back to the issuer of the request. |
void |
LoopbackRestClientImpl.onRestRequest(RestRequestHandler aHandler) |
Sets the hook receiving a prepared
RestResponseHandler instance
to be used to do the technical request with the technology chosen by the
implementing sub-class. |
Copyright © 2021. All rights reserved.