public class LoopbackRestClientImpl extends AbstractRestClient implements LoopbackRestClient
LoopbackRestClient
for easy testing of your
requests being issued with a RestClient
(HttpRestClient
) and
the according response lambda
expressions.org.refcodes.net.MediaTypeFactoryLookup.MutableMediaTypeFactoryLookup
org.refcodes.net.UserAgentAccessor.UserAgentBuilder<B extends org.refcodes.net.UserAgentAccessor.UserAgentBuilder<B>>, org.refcodes.net.UserAgentAccessor.UserAgentMutator, org.refcodes.net.UserAgentAccessor.UserAgentProperty
Constructor and Description |
---|
LoopbackRestClientImpl() |
Modifier and Type | Method and Description |
---|---|
void |
onRestRequest(RestRequestHandler aHandler)
Sets the hook receiving a prepared
RestCallerBuilder instance to
be used to do the technical request with the technology chosen by the
implementing sub-class. |
addMediaTypeFactory, doRequest, getFactoryMediaTypes, getUserAgent, initMedaTypeFactories, setUserAgent, toMediaTypeFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
withUserAgent
doDelete, doDelete, doDelete, doDelete, doGet, doGet, doPost, doPost, doPost, doPost, doPut, doPut, doPut, doPut, doRequest, doRequest, doRequest, doRequest
addMediaTypeFactory
public void onRestRequest(RestRequestHandler aHandler)
AbstractRestClient
RestCallerBuilder
instance to
be used to do the technical request with the technology chosen by the
implementing sub-class.onRestRequest
in interface LoopbackRestClient
onRestRequest
in class AbstractRestClient
aHandler
- The RestRequestHandler
for handling the HTTP
request.Copyright © 2017. All rights reserved.