org.refcodes.component.Closable, org.refcodes.component.ConnectionComponent<B>, org.refcodes.component.ConnectionOpenable<B>, org.refcodes.component.ConnectionStatusAccessor, org.refcodes.component.LinkComponent, org.refcodes.component.Openable, org.refcodes.net.BaseUrlAccessor, org.refcodes.net.BaseUrlAccessor.BaseUrlBuilder<B>, org.refcodes.net.BaseUrlAccessor.BaseUrlMutator, org.refcodes.net.BaseUrlAccessor.BaseUrlProperty, org.refcodes.net.MediaTypeFactoryLookup, org.refcodes.net.MediaTypeFactoryLookup.MutableMediaTypeFactoryLookup, org.refcodes.net.UserAgentAccessor, org.refcodes.net.UserAgentAccessor.UserAgentBuilder<B>, org.refcodes.net.UserAgentAccessor.UserAgentMutator, org.refcodes.net.UserAgentAccessor.UserAgentProperty, HttpRestClient, RestClient, RestDeleteClient, RestGetClient, RestPostClient, RestPutClient, RestRequestClient, org.refcodes.runtime.RequestCorrelation<B>, org.refcodes.runtime.SessionCorrelation<B>, org.refcodes.security.TrustStoreDescriptorAccessor, org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorBuilder<B>, org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorMutator, org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorPropertyAbstractHttpDiscoveryRestClientDecoratorpublic abstract class AbstractHttpRestClientDecorator<B extends HttpRestClient> extends Object implements HttpRestClient
HttpRestClient.org.refcodes.net.BaseUrlAccessor.BaseUrlBuilder<B extends org.refcodes.net.BaseUrlAccessor.BaseUrlBuilder<B>>, org.refcodes.net.BaseUrlAccessor.BaseUrlMutator, org.refcodes.net.BaseUrlAccessor.BaseUrlPropertyorg.refcodes.component.Closable.CloseAutomaton, org.refcodes.component.Closable.CloseBuilder<B extends org.refcodes.component.Closable.CloseBuilder<B>>org.refcodes.component.ConnectionComponent.ConnectionAutomaton<CON extends Object>, org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<CON extends Object,B extends org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<CON,B>>org.refcodes.component.ConnectionOpenable.ConnectionOpenAutomaton<CON extends Object>, org.refcodes.component.ConnectionOpenable.ConnectionOpenBuilder<CON extends Object,B extends org.refcodes.component.ConnectionOpenable.ConnectionOpenBuilder<CON,B>>org.refcodes.component.ConnectionStatusAccessor.ConnectionStatusMutator, org.refcodes.component.ConnectionStatusAccessor.ConnectionStatusPropertyorg.refcodes.component.LinkComponent.LinkAutomaton, org.refcodes.component.LinkComponent.LinkComponentBuilder<B extends org.refcodes.component.LinkComponent.LinkComponentBuilder<B>>org.refcodes.net.MediaTypeFactoryLookup.MutableMediaTypeFactoryLookuporg.refcodes.component.Openable.OpenAutomaton, org.refcodes.component.Openable.OpenBuilder<B extends org.refcodes.component.Openable.OpenBuilder<B>>org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorBuilder<B extends org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorBuilder<B>>, org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorMutator, org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorPropertyorg.refcodes.net.UserAgentAccessor.UserAgentBuilder<B extends org.refcodes.net.UserAgentAccessor.UserAgentBuilder<B>>, org.refcodes.net.UserAgentAccessor.UserAgentMutator, org.refcodes.net.UserAgentAccessor.UserAgentPropertyDEFAULT_KEYSTORE_TYPE, DEFAULT_SSL_PROTOCOL| Constructor | Description |
|---|---|
AbstractHttpRestClientDecorator(HttpRestClient aClient) |
Decorates the given
HttpRestClient. |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
addMediaTypeFactory(org.refcodes.net.MediaTypeFactory aMediaTypeFactory) |
|
RestRequestBuilder |
buildRequest(org.refcodes.net.HttpMethod aHttpMethod,
org.refcodes.net.Url aUrl,
org.refcodes.net.RequestHeaderFields aHeaderFields,
Object aRequest) |
Prepares a request builder with the possible attributes and returns the
according request's
RestRequestBuilder instance. |
void |
close() |
|
void |
closeIn(int aCloseInMillis) |
|
void |
closeQuietly() |
|
void |
closeUnchecked() |
|
void |
disableRequestCorrelation() |
|
void |
disableSessionCorrelation() |
|
RestResponse |
doRequest(org.refcodes.net.HttpMethod aHttpMethod,
org.refcodes.net.Url aUrl,
org.refcodes.net.RequestHeaderFields aHeaderFields,
Object aRequest) |
Sends a request with the possible attributes and returns the according
request's
RestResponse instance synchronously. |
RestCallerBuilder |
doRequest(org.refcodes.net.HttpMethod aHttpMethod,
org.refcodes.net.Url aUrl,
org.refcodes.net.RequestHeaderFields aHeaderFields,
Object aRequest,
RestResponseObserver aResponseObserver) |
Creates a request with the possible attributes and returns the according
RestCallerBuilder instance used for the request. |
void |
enableRequestCorrelation() |
|
void |
enableSessionCorrelation() |
|
org.refcodes.net.Url |
getBaseUrl() |
|
org.refcodes.component.ConnectionStatus |
getConnectionStatus() |
|
org.refcodes.net.MediaType[] |
getFactoryMediaTypes() |
|
org.refcodes.security.TrustStoreDescriptor |
getTrustStoreDescriptor() |
|
String |
getUserAgent() |
|
boolean |
hasMediaTypeFactory(org.refcodes.net.MediaType aMediaType) |
|
boolean |
hasRequestCorrelation() |
|
boolean |
hasSessionCorrelation() |
|
void |
open() |
|
void |
open(org.refcodes.net.Url aBaseUrl,
org.refcodes.security.TrustStoreDescriptor aStoreDescriptor) |
Configures the HTTPS client connection with the provided configuration
parameters.
|
void |
openUnchecked() |
|
void |
setBaseUrl(String aBaseUrl) |
|
void |
setBaseUrl(String aProtocol,
String aHost) |
|
void |
setBaseUrl(String aProtocol,
String aHost,
int aPort) |
|
void |
setBaseUrl(String aProtocol,
String aHost,
int aPort,
String aPath) |
|
void |
setBaseUrl(String aProtocol,
String aHost,
String aPath) |
|
void |
setBaseUrl(URL aBaseUrl) |
|
void |
setBaseUrl(org.refcodes.data.Scheme aProtocol,
String aHost) |
|
void |
setBaseUrl(org.refcodes.data.Scheme aProtocol,
String aHost,
int aPort) |
|
void |
setBaseUrl(org.refcodes.data.Scheme aProtocol,
String aHost,
int aPort,
String aPath) |
|
void |
setBaseUrl(org.refcodes.data.Scheme aProtocol,
String aHost,
String aPath) |
|
void |
setBaseUrl(org.refcodes.net.Url aBaseUrl) |
|
void |
setRequestCorrelation(boolean hasRequestCorrelation) |
|
void |
setSessionCorrelation(boolean hasSessionCorrelation) |
|
void |
setTrustStoreDescriptor(org.refcodes.security.TrustStoreDescriptor aStoreDescriptor) |
|
void |
setUserAgent(String aUserAgent) |
|
org.refcodes.net.MediaTypeFactory |
toMediaTypeFactory(org.refcodes.net.MediaType aMediaType) |
|
protected org.refcodes.net.Url |
toUrl(org.refcodes.net.Url aUrl) |
Hook for sub-classes to modify the request URL.
|
B |
withBaseUrl(String aBaseUrl) |
|
B |
withBaseUrl(String aProtocol,
String aHost) |
|
B |
withBaseUrl(String aProtocol,
String aHost,
int aPort) |
|
B |
withBaseUrl(String aProtocol,
String aHost,
int aPort,
String aPath) |
|
B |
withBaseUrl(String aProtocol,
String aHost,
String aPath) |
|
B |
withBaseUrl(URL aBaseURL) |
|
B |
withBaseUrl(org.refcodes.data.Scheme aProtocol,
String aHost) |
|
B |
withBaseUrl(org.refcodes.data.Scheme aProtocol,
String aHost,
int aPort) |
|
B |
withBaseUrl(org.refcodes.data.Scheme aProtocol,
String aHost,
int aPort,
String aPath) |
|
B |
withBaseUrl(org.refcodes.data.Scheme aProtocol,
String aHost,
String aPath) |
|
B |
withBaseUrl(org.refcodes.net.Url aBaseUrl) |
|
B |
withDisableRequestCorrelation() |
|
B |
withDisableSessionCorrelation() |
|
B |
withEnableRequestCorrelation() |
|
B |
withEnableSessionCorrelation() |
|
B |
withRequestCorrelation(boolean hasRequestCorrelation) |
|
B |
withSessionCorrelation(boolean hasSessionCorrelation) |
|
B |
withUserAgent(String aUserAgent) |
open, open, open, withTrustStoreDescriptorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDeletebuildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGetbuildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPostbuildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPutbuildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequestpublic AbstractHttpRestClientDecorator(HttpRestClient aClient)
HttpRestClient.aClient - The HttpRestClient to be decorated.public org.refcodes.component.ConnectionStatus getConnectionStatus()
getConnectionStatus in interface org.refcodes.component.ConnectionStatusAccessorpublic boolean addMediaTypeFactory(org.refcodes.net.MediaTypeFactory aMediaTypeFactory)
addMediaTypeFactory in interface org.refcodes.net.MediaTypeFactoryLookup.MutableMediaTypeFactoryLookuppublic void close()
throws org.refcodes.component.CloseException
close in interface org.refcodes.component.Closableorg.refcodes.component.CloseExceptionpublic void closeIn(int aCloseInMillis)
closeIn in interface org.refcodes.component.Closablepublic void closeQuietly()
closeQuietly in interface org.refcodes.component.Closablepublic void closeUnchecked()
closeUnchecked in interface org.refcodes.component.Closablepublic void disableRequestCorrelation()
disableRequestCorrelation in interface org.refcodes.runtime.RequestCorrelation<B extends HttpRestClient>public void disableSessionCorrelation()
disableSessionCorrelation in interface org.refcodes.runtime.SessionCorrelation<B extends HttpRestClient>public void enableRequestCorrelation()
enableRequestCorrelation in interface org.refcodes.runtime.RequestCorrelation<B extends HttpRestClient>public void enableSessionCorrelation()
enableSessionCorrelation in interface org.refcodes.runtime.SessionCorrelation<B extends HttpRestClient>public org.refcodes.net.Url getBaseUrl()
getBaseUrl in interface org.refcodes.net.BaseUrlAccessorpublic org.refcodes.net.MediaType[] getFactoryMediaTypes()
getFactoryMediaTypes in interface org.refcodes.net.MediaTypeFactoryLookuppublic org.refcodes.security.TrustStoreDescriptor getTrustStoreDescriptor()
getTrustStoreDescriptor in interface org.refcodes.security.TrustStoreDescriptorAccessorpublic String getUserAgent()
getUserAgent in interface org.refcodes.net.UserAgentAccessorpublic boolean hasMediaTypeFactory(org.refcodes.net.MediaType aMediaType)
hasMediaTypeFactory in interface org.refcodes.net.MediaTypeFactoryLookuppublic boolean hasRequestCorrelation()
hasRequestCorrelation in interface org.refcodes.runtime.RequestCorrelation<B extends HttpRestClient>public boolean hasSessionCorrelation()
hasSessionCorrelation in interface org.refcodes.runtime.SessionCorrelation<B extends HttpRestClient>public void open()
throws org.refcodes.component.OpenException
open in interface HttpRestClientopen in interface org.refcodes.component.Openableorg.refcodes.component.OpenExceptionpublic void open(org.refcodes.net.Url aBaseUrl,
org.refcodes.security.TrustStoreDescriptor aStoreDescriptor)
throws org.refcodes.component.OpenException
open in interface HttpRestClientaBaseUrl - The base Url to be used.aStoreDescriptor - The TrustStoreDescriptor pointing to your
KeyStore.org.refcodes.component.OpenException - thrown in case something went wrong.public void openUnchecked()
openUnchecked in interface org.refcodes.component.Openablepublic void setBaseUrl(org.refcodes.data.Scheme aProtocol,
String aHost)
throws MalformedURLException
setBaseUrl in interface org.refcodes.net.BaseUrlAccessor.BaseUrlMutatorMalformedURLExceptionpublic void setBaseUrl(org.refcodes.data.Scheme aProtocol,
String aHost,
int aPort)
throws MalformedURLException
setBaseUrl in interface org.refcodes.net.BaseUrlAccessor.BaseUrlMutatorMalformedURLExceptionpublic void setBaseUrl(org.refcodes.data.Scheme aProtocol,
String aHost,
int aPort,
String aPath)
throws MalformedURLException
setBaseUrl in interface org.refcodes.net.BaseUrlAccessor.BaseUrlMutatorMalformedURLExceptionpublic void setBaseUrl(org.refcodes.data.Scheme aProtocol,
String aHost,
String aPath)
throws MalformedURLException
setBaseUrl in interface org.refcodes.net.BaseUrlAccessor.BaseUrlMutatorMalformedURLExceptionpublic void setBaseUrl(String aBaseUrl) throws MalformedURLException
setBaseUrl in interface org.refcodes.net.BaseUrlAccessor.BaseUrlMutatorMalformedURLExceptionpublic void setBaseUrl(String aProtocol, String aHost) throws MalformedURLException
setBaseUrl in interface org.refcodes.net.BaseUrlAccessor.BaseUrlMutatorMalformedURLExceptionpublic void setBaseUrl(String aProtocol, String aHost, int aPort) throws MalformedURLException
setBaseUrl in interface org.refcodes.net.BaseUrlAccessor.BaseUrlMutatorMalformedURLExceptionpublic void setBaseUrl(String aProtocol, String aHost, int aPort, String aPath) throws MalformedURLException
setBaseUrl in interface org.refcodes.net.BaseUrlAccessor.BaseUrlMutatorMalformedURLExceptionpublic void setBaseUrl(String aProtocol, String aHost, String aPath) throws MalformedURLException
setBaseUrl in interface org.refcodes.net.BaseUrlAccessor.BaseUrlMutatorMalformedURLExceptionpublic void setBaseUrl(org.refcodes.net.Url aBaseUrl)
setBaseUrl in interface org.refcodes.net.BaseUrlAccessor.BaseUrlMutatorpublic void setBaseUrl(URL aBaseUrl)
setBaseUrl in interface org.refcodes.net.BaseUrlAccessor.BaseUrlMutatorpublic void setRequestCorrelation(boolean hasRequestCorrelation)
setRequestCorrelation in interface org.refcodes.runtime.RequestCorrelation<B extends HttpRestClient>public void setSessionCorrelation(boolean hasSessionCorrelation)
setSessionCorrelation in interface org.refcodes.runtime.SessionCorrelation<B extends HttpRestClient>public void setTrustStoreDescriptor(org.refcodes.security.TrustStoreDescriptor aStoreDescriptor)
setTrustStoreDescriptor in interface org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorMutatorpublic void setUserAgent(String aUserAgent)
setUserAgent in interface org.refcodes.net.UserAgentAccessor.UserAgentMutatorpublic org.refcodes.net.MediaTypeFactory toMediaTypeFactory(org.refcodes.net.MediaType aMediaType)
toMediaTypeFactory in interface org.refcodes.net.MediaTypeFactoryLookuppublic B withBaseUrl(org.refcodes.data.Scheme aProtocol, String aHost) throws MalformedURLException
withBaseUrl in interface org.refcodes.net.BaseUrlAccessor.BaseUrlBuilder<B extends HttpRestClient>MalformedURLExceptionpublic B withBaseUrl(org.refcodes.data.Scheme aProtocol, String aHost, int aPort) throws MalformedURLException
withBaseUrl in interface org.refcodes.net.BaseUrlAccessor.BaseUrlBuilder<B extends HttpRestClient>MalformedURLExceptionpublic B withBaseUrl(org.refcodes.data.Scheme aProtocol, String aHost, int aPort, String aPath) throws MalformedURLException
withBaseUrl in interface org.refcodes.net.BaseUrlAccessor.BaseUrlBuilder<B extends HttpRestClient>MalformedURLExceptionpublic B withBaseUrl(org.refcodes.data.Scheme aProtocol, String aHost, String aPath) throws MalformedURLException
withBaseUrl in interface org.refcodes.net.BaseUrlAccessor.BaseUrlBuilder<B extends HttpRestClient>MalformedURLExceptionpublic B withBaseUrl(String aBaseUrl) throws MalformedURLException
withBaseUrl in interface org.refcodes.net.BaseUrlAccessor.BaseUrlBuilder<B extends HttpRestClient>MalformedURLExceptionpublic B withBaseUrl(String aProtocol, String aHost) throws MalformedURLException
withBaseUrl in interface org.refcodes.net.BaseUrlAccessor.BaseUrlBuilder<B extends HttpRestClient>MalformedURLExceptionpublic B withBaseUrl(String aProtocol, String aHost, int aPort) throws MalformedURLException
withBaseUrl in interface org.refcodes.net.BaseUrlAccessor.BaseUrlBuilder<B extends HttpRestClient>MalformedURLExceptionpublic B withBaseUrl(String aProtocol, String aHost, int aPort, String aPath) throws MalformedURLException
withBaseUrl in interface org.refcodes.net.BaseUrlAccessor.BaseUrlBuilder<B extends HttpRestClient>MalformedURLExceptionpublic B withBaseUrl(String aProtocol, String aHost, String aPath) throws MalformedURLException
withBaseUrl in interface org.refcodes.net.BaseUrlAccessor.BaseUrlBuilder<B extends HttpRestClient>MalformedURLExceptionpublic B withBaseUrl(org.refcodes.net.Url aBaseUrl)
withBaseUrl in interface org.refcodes.net.BaseUrlAccessor.BaseUrlBuilder<B extends HttpRestClient>public B withBaseUrl(URL aBaseURL)
withBaseUrl in interface org.refcodes.net.BaseUrlAccessor.BaseUrlBuilder<B extends HttpRestClient>public B withDisableRequestCorrelation()
withDisableRequestCorrelation in interface HttpRestClientwithDisableRequestCorrelation in interface org.refcodes.runtime.RequestCorrelation<B extends HttpRestClient>withDisableRequestCorrelation in interface RestClientpublic B withDisableSessionCorrelation()
withDisableSessionCorrelation in interface HttpRestClientwithDisableSessionCorrelation in interface RestClientwithDisableSessionCorrelation in interface org.refcodes.runtime.SessionCorrelation<B extends HttpRestClient>public B withEnableRequestCorrelation()
withEnableRequestCorrelation in interface HttpRestClientwithEnableRequestCorrelation in interface org.refcodes.runtime.RequestCorrelation<B extends HttpRestClient>withEnableRequestCorrelation in interface RestClientpublic B withEnableSessionCorrelation()
withEnableSessionCorrelation in interface HttpRestClientwithEnableSessionCorrelation in interface RestClientwithEnableSessionCorrelation in interface org.refcodes.runtime.SessionCorrelation<B extends HttpRestClient>public B withRequestCorrelation(boolean hasRequestCorrelation)
withRequestCorrelation in interface HttpRestClientwithRequestCorrelation in interface org.refcodes.runtime.RequestCorrelation<B extends HttpRestClient>withRequestCorrelation in interface RestClientpublic B withSessionCorrelation(boolean hasSessionCorrelation)
withSessionCorrelation in interface HttpRestClientwithSessionCorrelation in interface RestClientwithSessionCorrelation in interface org.refcodes.runtime.SessionCorrelation<B extends HttpRestClient>public B withUserAgent(String aUserAgent)
withUserAgent in interface HttpRestClientwithUserAgent in interface RestClientwithUserAgent in interface org.refcodes.net.UserAgentAccessor.UserAgentBuilder<B extends HttpRestClient>public RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.net.Url aUrl, org.refcodes.net.RequestHeaderFields aHeaderFields, Object aRequest)
RestRequestClientRestRequestBuilder instance. Invoking
RestRequestBuilder.toRestResponse() starts the request and
synchronously returns the response.buildRequest in interface RestRequestClientaHttpMethod - The HTTP-Method for the request.aUrl - The Url from which to take the URL specific data.aHeaderFields - The HTTP-Header's fields to be used for the request.aRequest - The body to be sent with the request (e.g. when doing a
HttpMethod.POST request.RestRequestBuilder at this request.public RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.net.Url aUrl, org.refcodes.net.RequestHeaderFields aHeaderFields, Object aRequest) throws org.refcodes.net.HttpResponseException
RestRequestClientRestResponse instance synchronously.doRequest in interface RestRequestClientaHttpMethod - The HTTP-Method for the request.aUrl - The Url from which to take the URL specific data.aHeaderFields - The HTTP-Header's fields to be used for the request.aRequest - The body to be sent with the request (e.g. when doing a
HttpMethod.POST request.RestResponse for this request.org.refcodes.net.HttpResponseException - thrown in case of some unexpected response.public RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.net.Url aUrl, org.refcodes.net.RequestHeaderFields aHeaderFields, Object aRequest, RestResponseObserver aResponseObserver)
RestRequestClientRestCallerBuilder instance used for the request.
The HTTP-Request is actually sent not earlier than you calling
Openable.open() on the returned
RestCallerBuilder as the RestCallerBuilder still may be
modified after invoking this method!doRequest in interface RestRequestClientaHttpMethod - The HTTP-Method for the request.aUrl - The Url from which to take the URL specific data.aHeaderFields - The HTTP-Header's fields to be used for the request.aRequest - The body to be sent with the request (e.g. when doing a
HttpMethod.POST request.aResponseObserver - The listener processing a response targeted at
this RestCallerBuilder.RestCallerBuilder which is used by the request.protected org.refcodes.net.Url toUrl(org.refcodes.net.Url aUrl)
aUrl - The Url for the request.Url, by default it returns the provided
Url unmodified.Copyright © 2018. All rights reserved.