Class LoopbackRestClient

java.lang.Object
org.refcodes.rest.AbstractRestClient
org.refcodes.rest.LoopbackRestClient
All Implemented Interfaces:
DeleteRestClient, GetRestClient, PostRestClient, PutRestClient, RestClient, RestRequestClient, RestRequestHandler, BasicAuthCredentialsAccessor, BasicAuthCredentialsAccessor.BasicAuthCredentialsBuilder<RestClient>, BasicAuthCredentialsAccessor.BasicAuthCredentialsMutator, BasicAuthCredentialsAccessor.BasicAuthCredentialsProperty, MediaTypeFactoryLookup, MediaTypeFactoryLookup.MutableMediaTypeFactoryLookup, OauthTokenAccessor, OauthTokenAccessor.OauthTokenBuilder<RestClient>, OauthTokenAccessor.OauthTokenMutator, OauthTokenAccessor.OauthTokenProperty, UserAgentAccessor, UserAgentAccessor.UserAgentBuilder<RestClient>, UserAgentAccessor.UserAgentMutator, UserAgentAccessor.UserAgentProperty
Direct Known Subclasses:
LoopbackRestClientSingleton

public class LoopbackRestClient extends AbstractRestClient
Implements the RestClient interface to be used as loopback device e.g. for testing purposes such as testing your RestResponseConsumer implementations. Register your custom RestRequestHandler with onRestRequest(RestRequestHandler) to simulate REST responses on the LoopbackRestClient.