- All Superinterfaces:
RestRequestHandler
- All Known Subinterfaces:
RestDeleteClient
,RestfulClient
,RestfulHttpClient
,RestfulHttpDiscoveryClient<B>
,RestGetClient
,RestPostClient
,RestPutClient
- All Known Implementing Classes:
AbstractRestfulClient
,AbstractRestfulHttpClientDecorator
,AbstractRestfulHttpDiscoveryClientDecorator
,HttpRestClient
,HttpRestClientSingleton
,LoopbackRestClient
,LoopbackRestClientSingleton
Helper interface to keep the huge amount of convenience methods under
control.
-
Method Summary
Modifier and TypeMethodDescriptiondefault RestRequestBuilder
buildRequest
(org.refcodes.web.HttpMethod aHttpMethod, String aUrl) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance.default RestRequestBuilder
buildRequest
(org.refcodes.web.HttpMethod aHttpMethod, String aUrl, Object aRequest) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance.default RestRequestBuilder
buildRequest
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance.default RestRequestBuilder
buildRequest
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, Object aRequest) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance.default RestRequestBuilder
buildRequest
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance.default RestRequestBuilder
buildRequest
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields, Object aRequest) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance.default RestRequestBuilder
buildRequest
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance.default RestRequestBuilder
buildRequest
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance.default RestRequestBuilder
buildRequest
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance.default RestRequestBuilder
buildRequest
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, Object aRequest) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance.default RestRequestBuilder
buildRequest
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance.default RestRequestBuilder
buildRequest
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, Object aRequest) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance.default RestRequestBuilder
buildRequest
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance.default RestRequestBuilder
buildRequest
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance.default RestRequestBuilder
buildRequest
(org.refcodes.web.HttpMethod aHttpMethod, String aLocator, org.refcodes.web.FormFields aQueryFields) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance.default RestRequestBuilder
buildRequest
(org.refcodes.web.HttpMethod aHttpMethod, String aLocator, org.refcodes.web.FormFields aQueryFields, Object aRequest) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance.default RestRequestBuilder
buildRequest
(org.refcodes.web.HttpMethod aHttpMethod, String aLocator, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance.default RestRequestBuilder
buildRequest
(org.refcodes.web.HttpMethod aHttpMethod, String aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance.default RestRequestBuilder
buildRequest
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance.default RestRequestBuilder
buildRequest
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, Object aRequest) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance.default RestRequestBuilder
buildRequest
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance.default RestRequestBuilder
buildRequest
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields, Object aRequest) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance.default RestRequestBuilder
buildRequest
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance.default RestRequestBuilder
buildRequest
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance.default RestRequestBuilder
buildRequest
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance.default RestRequestBuilder
buildRequest
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, Object aRequest) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance.default RestRequestBuilder
buildRequest
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance.default RestRequestBuilder
buildRequest
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, Object aRequest) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance.default RestRequestBuilder
buildRequest
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance.default RestRequestBuilder
buildRequest
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance.default RestRequestBuilder
buildRequest
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.web.Url aUrl) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance.default RestRequestBuilder
buildRequest
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.web.Url aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance.default RestRequestBuilder
buildRequest
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.web.Url aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance.buildRequest
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.web.Url aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest, int aRedirectCount) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance.default RestResponse
doRequest
(RestRequest aRequest) Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.default RestResponse
doRequest
(org.refcodes.web.HttpClientRequest aHttpClientRequest) Hook receiving a preparedRestResponseHandler
instance to be used to do the technical request with the technology chosen by the implementing sub-class.default RestResponse
Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.default RestResponse
Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.default RestResponse
doRequest
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath) Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.default RestResponse
doRequest
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, Object aRequest) Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.default RestResponse
doRequest
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields) Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.default RestResponse
doRequest
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields, Object aRequest) Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.default RestResponse
doRequest
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields) Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.default RestResponse
doRequest
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.default RestResponse
doRequest
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields) Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.default RestResponse
doRequest
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.default RestResponse
Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.default RestResponse
doRequest
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, Object aRequest) Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.default RestResponse
doRequest
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields) Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.default RestResponse
doRequest
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, Object aRequest) Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.default RestResponse
doRequest
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields) Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.default RestResponse
doRequest
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.default RestResponse
doRequest
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields) Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.default RestResponse
doRequest
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.default RestResponse
doRequest
(org.refcodes.web.HttpMethod aHttpMethod, String aLocator, org.refcodes.web.FormFields aQueryFields) Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.default RestResponse
doRequest
(org.refcodes.web.HttpMethod aHttpMethod, String aLocator, org.refcodes.web.FormFields aQueryFields, Object aRequest) Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.default RestResponse
doRequest
(org.refcodes.web.HttpMethod aHttpMethod, String aLocator, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields) Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.default RestResponse
doRequest
(org.refcodes.web.HttpMethod aHttpMethod, String aLocator, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.default RestResponse
doRequest
(org.refcodes.web.HttpMethod aHttpMethod, String aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields) Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.default RestResponse
doRequest
(org.refcodes.web.HttpMethod aHttpMethod, String aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.default RestResponse
doRequest
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath) Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.default RestResponse
doRequest
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, Object aRequest) Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.default RestResponse
doRequest
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields) Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.default RestResponse
doRequest
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields, Object aRequest) Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.default RestResponse
doRequest
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields) Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.default RestResponse
doRequest
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.default RestResponse
doRequest
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields) Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.default RestResponse
doRequest
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.default RestResponse
doRequest
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath) Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.default RestResponse
doRequest
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, Object aRequest) Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.default RestResponse
doRequest
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields) Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.default RestResponse
doRequest
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, Object aRequest) Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.default RestResponse
doRequest
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields) Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.default RestResponse
doRequest
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.default RestResponse
doRequest
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields) Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.default RestResponse
doRequest
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.default RestResponse
doRequest
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.web.Url aUrl) Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.default RestResponse
Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.default RestResponse
doRequest
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.web.Url aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields) Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.default RestResponse
doRequest
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.web.Url aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.doRequest
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.web.Url aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest, int aRedirectDepth) Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.default RestResponseResult
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, String aUrl) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request.default RestResponseResult
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, String aUrl, Object aRequest) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request.default RestResponseHandler
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, String aUrl, Object aRequest, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request.default RestResponseResult
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request.default RestResponseResult
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, Object aRequest) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request.default RestResponseHandler
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, Object aRequest, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request.default RestResponseHandler
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request.default RestResponseResult
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request.default RestResponseResult
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields, Object aRequest) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request.default RestResponseHandler
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields, Object aRequest, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request.default RestResponseHandler
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request.default RestResponseResult
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request.default RestResponseResult
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request.default RestResponseHandler
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request.default RestResponseHandler
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request.default RestResponseResult
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request.default RestResponseResult
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request.default RestResponseHandler
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request.default RestResponseHandler
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request.default RestResponseResult
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request.default RestResponseResult
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, Object aRequest) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request.default RestResponseHandler
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, Object aRequest, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request.default RestResponseHandler
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request.default RestResponseResult
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request.default RestResponseResult
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, Object aRequest) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request.default RestResponseHandler
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, Object aRequest, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request.default RestResponseHandler
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request.default RestResponseResult
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request.default RestResponseResult
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request.default RestResponseHandler
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request.default RestResponseHandler
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request.default RestResponseResult
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request.default RestResponseResult
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request.default RestResponseHandler
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request.default RestResponseHandler
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request.default RestResponseHandler
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, String aUrl, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request.default RestResponseResult
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, String aLocator, org.refcodes.web.FormFields aQueryFields) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request.default RestResponseResult
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, String aLocator, org.refcodes.web.FormFields aQueryFields, Object aRequest) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request.default RestResponseHandler
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, String aLocator, org.refcodes.web.FormFields aQueryFields, Object aRequest, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request.default RestResponseHandler
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, String aLocator, org.refcodes.web.FormFields aQueryFields, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request.default RestResponseResult
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, String aLocator, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request.default RestResponseResult
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, String aLocator, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request.default RestResponseHandler
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, String aLocator, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request.default RestResponseHandler
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, String aLocator, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request.default RestResponseResult
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, String aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request.default RestResponseResult
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, String aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request.default RestResponseHandler
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, String aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request.default RestResponseHandler
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, String aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request.default RestResponseResult
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request.default RestResponseResult
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, Object aRequest) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request.default RestResponseHandler
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, Object aRequest, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request.default RestResponseHandler
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request.default RestResponseResult
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request.default RestResponseResult
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields, Object aRequest) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request.default RestResponseHandler
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields, Object aRequest, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request.default RestResponseHandler
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request.default RestResponseResult
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request.default RestResponseResult
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request.default RestResponseHandler
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request.default RestResponseHandler
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request.default RestResponseResult
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request.default RestResponseResult
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request.default RestResponseHandler
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request.default RestResponseHandler
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request.default RestResponseResult
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request.default RestResponseResult
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, Object aRequest) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request.default RestResponseHandler
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, Object aRequest, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request.default RestResponseHandler
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request.default RestResponseResult
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request.default RestResponseResult
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, Object aRequest) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request.default RestResponseHandler
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, Object aRequest, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request.default RestResponseHandler
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request.default RestResponseResult
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request.default RestResponseResult
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request.default RestResponseHandler
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request.default RestResponseHandler
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request.default RestResponseResult
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request.default RestResponseResult
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request.default RestResponseHandler
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request.default RestResponseHandler
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request.default RestResponseResult
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.web.Url aUrl, Object aRequest) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request.default RestResponseHandler
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.web.Url aUrl, Object aRequest, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request.default RestResponseResult
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.web.Url aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request.default RestResponseResult
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.web.Url aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request.onResponse
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.web.Url aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest, int aRedirectDepth) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request.onResponse
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.web.Url aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest, int aRedirectDepth, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request.default RestResponseHandler
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.web.Url aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request.default RestResponseHandler
onResponse
(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.web.Url aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request.
-
Method Details
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance. InvokingRestRequestBuilder.toRestResponse()
starts the request and synchronously returns the response.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.- Returns:
- The
RestRequestBuilder
which is used to prepare and synchronously issue the request.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance. InvokingRestRequestBuilder.toRestResponse()
starts the request and synchronously returns the response.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.- Returns:
- The
RestRequestBuilder
which is used to prepare and synchronously issue the request.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields, Object aRequest) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance. InvokingRestRequestBuilder.toRestResponse()
starts the request and synchronously returns the response.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.aRequest
- The body to be sent with the request (e.g. when doing aHttpMethod.POST
request.- Returns:
- The
RestRequestBuilder
which is used to prepare and synchronously issue the request.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance. InvokingRestRequestBuilder.toRestResponse()
starts the request and synchronously returns the response.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.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 aHttpMethod.POST
request.- Returns:
- The
RestRequestBuilder
at this request.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, Object aRequest) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance. InvokingRestRequestBuilder.toRestResponse()
starts the request and synchronously returns the response.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.aRequest
- The body to be sent with the request (e.g. when doing aHttpMethod.POST
request.- Returns:
- The
RestRequestBuilder
which is used to prepare and synchronously issue the request.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance. InvokingRestRequestBuilder.toRestResponse()
starts the request and synchronously returns the response.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.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 aHttpMethod.POST
request.- Returns:
- The
RestRequestBuilder
which is used to prepare and synchronously issue the request.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance. InvokingRestRequestBuilder.toRestResponse()
starts the request and synchronously returns the response.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.- Returns:
- The
RestRequestBuilder
which is used to prepare and synchronously issue the request.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance. InvokingRestRequestBuilder.toRestResponse()
starts the request and synchronously returns the response.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.- Returns:
- The
RestRequestBuilder
which is used to prepare and synchronously issue the request.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, Object aRequest) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance. InvokingRestRequestBuilder.toRestResponse()
starts the request and synchronously returns the response.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.aRequest
- The body to be sent with the request (e.g. when doing aHttpMethod.POST
request.- Returns:
- The
RestRequestBuilder
which is used to prepare and synchronously issue the request.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance. InvokingRestRequestBuilder.toRestResponse()
starts the request and synchronously returns the response.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.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 aHttpMethod.POST
request.- Returns:
- The
RestRequestBuilder
at this request.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, Object aRequest) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance. InvokingRestRequestBuilder.toRestResponse()
starts the request and synchronously returns the response.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.aRequest
- The body to be sent with the request (e.g. when doing aHttpMethod.POST
request.- Returns:
- The
RestRequestBuilder
which is used to prepare and synchronously issue the request.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance. InvokingRestRequestBuilder.toRestResponse()
starts the request and synchronously returns the response.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.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 aHttpMethod.POST
request.- Returns:
- The
RestRequestBuilder
which is used to prepare and synchronously issue the request.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.web.HttpMethod aHttpMethod, String aUrl) throws MalformedURLException Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance. InvokingRestRequestBuilder.toRestResponse()
starts the request and synchronously returns the response.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aUrl
- The targeted URL locating the addressed resource.- Returns:
- The
RestRequestBuilder
which is used to prepare and synchronously issue the request. - Throws:
MalformedURLException
- in case the provided URL is considered being malformed.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.web.HttpMethod aHttpMethod, String aLocator, org.refcodes.web.FormFields aQueryFields) throws MalformedURLException Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance. InvokingRestRequestBuilder.toRestResponse()
starts the request and synchronously returns the response.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aLocator
- The targeted locator, usually the part of the URL till (excluding) the query fields and the fragment.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.- Returns:
- The
RestRequestBuilder
which is used to prepare and synchronously issue the request. - Throws:
MalformedURLException
- in case the provided URL is considered being malformed.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.web.HttpMethod aHttpMethod, String aLocator, org.refcodes.web.FormFields aQueryFields, Object aRequest) throws MalformedURLException Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance. InvokingRestRequestBuilder.toRestResponse()
starts the request and synchronously returns the response.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aLocator
- The local targetd locator.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.aRequest
- The body to be sent with the request (e.g. when doing aHttpMethod.POST
request.- Returns:
- The
RestRequestBuilder
which is used to prepare and synchronously issue the request. - Throws:
MalformedURLException
- in case the provided URL is considered being malformed.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.web.HttpMethod aHttpMethod, String aLocator, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) throws MalformedURLException Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance. InvokingRestRequestBuilder.toRestResponse()
starts the request and synchronously returns the response.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aLocator
- The targeted locator, usually the part of the URL till (excluding) the query fields and the fragment.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.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 aHttpMethod.POST
request.- Returns:
- The
RestRequestBuilder
at this request. - Throws:
MalformedURLException
- in case the provided URL is considered being malformed.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.web.HttpMethod aHttpMethod, String aUrl, Object aRequest) throws MalformedURLException Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance. InvokingRestRequestBuilder.toRestResponse()
starts the request and synchronously returns the response.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aUrl
- The targeted locator.aRequest
- The body to be sent with the request (e.g. when doing aHttpMethod.POST
request.- Returns:
- The
RestRequestBuilder
which is used to prepare and synchronously issue the request. - Throws:
MalformedURLException
- in case the provided URL is considered being malformed.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.web.HttpMethod aHttpMethod, String aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) throws MalformedURLException Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance. InvokingRestRequestBuilder.toRestResponse()
starts the request and synchronously returns the response.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aUrl
- The targeted URL locating the addressed resource.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 aHttpMethod.POST
request.- Returns:
- The
RestRequestBuilder
which is used to prepare and synchronously issue the request. - Throws:
MalformedURLException
- in case the provided URL is considered being malformed.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance. InvokingRestRequestBuilder.toRestResponse()
starts the request and synchronously returns the response.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.- Returns:
- The
RestRequestBuilder
which is used to prepare and synchronously issue the request.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance. InvokingRestRequestBuilder.toRestResponse()
starts the request and synchronously returns the response.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.- Returns:
- The
RestRequestBuilder
which is used to prepare and synchronously issue the request.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields, Object aRequest) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance. InvokingRestRequestBuilder.toRestResponse()
starts the request and synchronously returns the response.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.aRequest
- The body to be sent with the request (e.g. when doing aHttpMethod.POST
request.- Returns:
- The
RestRequestBuilder
which is used to prepare and synchronously issue the request.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance. InvokingRestRequestBuilder.toRestResponse()
starts the request and synchronously returns the response.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.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 aHttpMethod.POST
request.- Returns:
- The
RestRequestBuilder
at this request.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, Object aRequest) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance. InvokingRestRequestBuilder.toRestResponse()
starts the request and synchronously returns the response.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.aRequest
- The body to be sent with the request (e.g. when doing aHttpMethod.POST
request.- Returns:
- The
RestRequestBuilder
which is used to prepare and synchronously issue the request.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance. InvokingRestRequestBuilder.toRestResponse()
starts the request and synchronously returns the response.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.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 aHttpMethod.POST
request.- Returns:
- The
RestRequestBuilder
which is used to prepare and synchronously issue the request.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance. InvokingRestRequestBuilder.toRestResponse()
starts the request and synchronously returns the response.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.- Returns:
- The
RestRequestBuilder
which is used to prepare and synchronously issue the request.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance. InvokingRestRequestBuilder.toRestResponse()
starts the request and synchronously returns the response.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.- Returns:
- The
RestRequestBuilder
which is used to prepare and synchronously issue the request.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, Object aRequest) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance. InvokingRestRequestBuilder.toRestResponse()
starts the request and synchronously returns the response.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.aRequest
- The body to be sent with the request (e.g. when doing aHttpMethod.POST
request.- Returns:
- The
RestRequestBuilder
which is used to prepare and synchronously issue the request.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance. InvokingRestRequestBuilder.toRestResponse()
starts the request and synchronously returns the response.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.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 aHttpMethod.POST
request.- Returns:
- The
RestRequestBuilder
at this request.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, Object aRequest) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance. InvokingRestRequestBuilder.toRestResponse()
starts the request and synchronously returns the response.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.aRequest
- The body to be sent with the request (e.g. when doing aHttpMethod.POST
request.- Returns:
- The
RestRequestBuilder
which is used to prepare and synchronously issue the request.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance. InvokingRestRequestBuilder.toRestResponse()
starts the request and synchronously returns the response.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.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 aHttpMethod.POST
request.- Returns:
- The
RestRequestBuilder
which is used to prepare and synchronously issue the request.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.web.Url aUrl) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance. InvokingRestRequestBuilder.toRestResponse()
starts the request and synchronously returns the response.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aUrl
- TheUrl
from which to take the URL specific data.- Returns:
- The
RestRequestBuilder
which is used to prepare and synchronously issue the request.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.web.Url aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance. InvokingRestRequestBuilder.toRestResponse()
starts the request and synchronously returns the response.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aUrl
- TheUrl
from which to take the URL specific data.aHeaderFields
- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestRequestBuilder
at this request.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.web.Url aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance. InvokingRestRequestBuilder.toRestResponse()
starts the request and synchronously returns the response.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aUrl
- TheUrl
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 aHttpMethod.POST
request.- Returns:
- The
RestRequestBuilder
at this request.
-
buildRequest
RestRequestBuilder buildRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.web.Url aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest, int aRedirectCount) Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilder
instance. InvokingRestRequestBuilder.toRestResponse()
starts the request and synchronously returns the response.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aUrl
- TheUrl
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 aHttpMethod.POST
request.aRedirectCount
- The number of redirect ping-pong cycles to follow before when issuing the HTTP-Request.- Returns:
- The
RestRequestBuilder
at this request.
-
doRequest
default RestResponse doRequest(org.refcodes.web.HttpClientRequest aHttpClientRequest) throws org.refcodes.web.HttpResponseException Hook receiving a preparedRestResponseHandler
instance to be used to do the technical request with the technology chosen by the implementing sub-class.- Specified by:
doRequest
in interfaceRestRequestHandler
- Parameters:
aHttpClientRequest
- The preparedHttpClientRequest
.- Returns:
- The resulting
RestResponse
. - Throws:
org.refcodes.web.HttpResponseException
- thrown by a HTTP response handling system in case of some unexpected response.
-
doRequest
default RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath) throws org.refcodes.web.HttpResponseException Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.- Returns:
- The
RestResponse
as of your request. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
default RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields) throws org.refcodes.web.HttpResponseException Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.- Returns:
- The
RestResponse
as of your request. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
default RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields, Object aRequest) throws org.refcodes.web.HttpResponseException Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.aRequest
- The body to be sent with the request (e.g. when doing aHttpMethod.POST
request.- Returns:
- The
RestResponse
as of your request. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
default RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields) throws org.refcodes.web.HttpResponseException Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.aHeaderFields
- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestResponse
as of your request. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
default RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) throws org.refcodes.web.HttpResponseException Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.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 aHttpMethod.POST
request.- Returns:
- The
RestResponse
for this request. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
default RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, Object aRequest) throws org.refcodes.web.HttpResponseException Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.aRequest
- The body to be sent with the request (e.g. when doing aHttpMethod.POST
request.- Returns:
- The
RestResponse
as of your request. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
default RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields) throws org.refcodes.web.HttpResponseException Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.aHeaderFields
- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestResponse
as of your request. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
default RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) throws org.refcodes.web.HttpResponseException Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.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 aHttpMethod.POST
request.- Returns:
- The
RestResponse
as of your request. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
default RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath) throws org.refcodes.web.HttpResponseException Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.- Returns:
- The
RestResponse
as of your request. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
default RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields) throws org.refcodes.web.HttpResponseException Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.- Returns:
- The
RestResponse
as of your request. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
default RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, Object aRequest) throws org.refcodes.web.HttpResponseException Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.aRequest
- The body to be sent with the request (e.g. when doing aHttpMethod.POST
request.- Returns:
- The
RestResponse
as of your request. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
default RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields) throws org.refcodes.web.HttpResponseException Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.aHeaderFields
- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestResponse
as of your request. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
default RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) throws org.refcodes.web.HttpResponseException Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.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 aHttpMethod.POST
request.- Returns:
- The
RestResponse
for this request. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
default RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, Object aRequest) throws org.refcodes.web.HttpResponseException Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.aRequest
- The body to be sent with the request (e.g. when doing aHttpMethod.POST
request.- Returns:
- The
RestResponse
as of your request. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
default RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields) throws org.refcodes.web.HttpResponseException Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.aHeaderFields
- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestResponse
as of your request. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
default RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) throws org.refcodes.web.HttpResponseException Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.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 aHttpMethod.POST
request.- Returns:
- The
RestResponse
as of your request. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
default RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, String aUrl) throws org.refcodes.web.HttpResponseException, MalformedURLException Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aUrl
- The targeted URL locating the addressed resource.- Returns:
- The
RestResponse
as of your request. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.MalformedURLException
- in case the provided URL is considered being malformed.
-
doRequest
default RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, String aLocator, org.refcodes.web.FormFields aQueryFields) throws org.refcodes.web.HttpResponseException, MalformedURLException Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aLocator
- The targeted locator, usually the part of the URL till (excluding) the query fields and the fragment.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.- Returns:
- The
RestResponse
as of your request. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.MalformedURLException
- in case the provided URL is considered being malformed.
-
doRequest
default RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, String aLocator, org.refcodes.web.FormFields aQueryFields, Object aRequest) throws org.refcodes.web.HttpResponseException, MalformedURLException Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aLocator
- The targeted locator, usually the part of the URL till (excluding) the query fields and the fragment.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.aRequest
- The body to be sent with the request (e.g. when doing aHttpMethod.POST
request.- Returns:
- The
RestResponse
as of your request. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.MalformedURLException
- in case the provided URL is considered being malformed.
-
doRequest
default RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, String aLocator, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields) throws org.refcodes.web.HttpResponseException, MalformedURLException Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aLocator
- The targeted locator, usually the part of the URL till (excluding) the query fields and the fragment.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.aHeaderFields
- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestResponse
as of your request. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.MalformedURLException
- in case the provided URL is considered being malformed.
-
doRequest
default RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, String aLocator, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) throws org.refcodes.web.HttpResponseException, MalformedURLException Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aLocator
- The targeted locator, usually the part of the URL till (excluding) the query fields and the fragment.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.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 aHttpMethod.POST
request.- Returns:
- The
RestResponse
for this request. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.MalformedURLException
- in case the provided URL is considered being malformed.
-
doRequest
default RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, String aUrl, Object aRequest) throws org.refcodes.web.HttpResponseException, MalformedURLException Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aUrl
- The targeted URL locating the addressed resource.aRequest
- The body to be sent with the request (e.g. when doing aHttpMethod.POST
request.- Returns:
- The
RestResponse
as of your request. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.MalformedURLException
- in case the provided URL is considered being malformed.
-
doRequest
default RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, String aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields) throws org.refcodes.web.HttpResponseException, MalformedURLException Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aUrl
- The targeted URL locating the addressed resource.aHeaderFields
- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestResponse
as of your request. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.MalformedURLException
- in case the provided URL is considered being malformed.
-
doRequest
default RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, String aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) throws org.refcodes.web.HttpResponseException, MalformedURLException Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aUrl
- The targeted URL locating the addressed resource.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 aHttpMethod.POST
request.- Returns:
- The
RestResponse
as of your request. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.MalformedURLException
- in case the provided URL is considered being malformed.
-
doRequest
default RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath) throws org.refcodes.web.HttpResponseException Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.- Returns:
- The
RestResponse
as of your request. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
default RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields) throws org.refcodes.web.HttpResponseException Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.- Returns:
- The
RestResponse
as of your request. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
default RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields, Object aRequest) throws org.refcodes.web.HttpResponseException Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.aRequest
- The body to be sent with the request (e.g. when doing aHttpMethod.POST
request.- Returns:
- The
RestResponse
as of your request. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
default RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields) throws org.refcodes.web.HttpResponseException Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.aHeaderFields
- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestResponse
as of your request. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
default RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) throws org.refcodes.web.HttpResponseException Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.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 aHttpMethod.POST
request.- Returns:
- The
RestResponse
for this request. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
default RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, Object aRequest) throws org.refcodes.web.HttpResponseException Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.aRequest
- The body to be sent with the request (e.g. when doing aHttpMethod.POST
request.- Returns:
- The
RestResponse
as of your request. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
default RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields) throws org.refcodes.web.HttpResponseException Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.aHeaderFields
- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestResponse
as of your request. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
default RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) throws org.refcodes.web.HttpResponseException Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.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 aHttpMethod.POST
request.- Returns:
- The
RestResponse
as of your request. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
default RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath) throws org.refcodes.web.HttpResponseException Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.- Returns:
- The
RestResponse
as of your request. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
default RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields) throws org.refcodes.web.HttpResponseException Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.- Returns:
- The
RestResponse
as of your request. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
default RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, Object aRequest) throws org.refcodes.web.HttpResponseException Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.aRequest
- The body to be sent with the request (e.g. when doing aHttpMethod.POST
request.- Returns:
- The
RestResponse
as of your request. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
default RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields) throws org.refcodes.web.HttpResponseException Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.aHeaderFields
- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestResponse
as of your request. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
default RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) throws org.refcodes.web.HttpResponseException Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.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 aHttpMethod.POST
request.- Returns:
- The
RestResponse
for this request. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
default RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, Object aRequest) throws org.refcodes.web.HttpResponseException Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.aRequest
- The body to be sent with the request (e.g. when doing aHttpMethod.POST
request.- Returns:
- The
RestResponse
as of your request. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
default RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields) throws org.refcodes.web.HttpResponseException Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.aHeaderFields
- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestResponse
as of your request. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
default RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) throws org.refcodes.web.HttpResponseException Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.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 aHttpMethod.POST
request.- Returns:
- The
RestResponse
as of your request. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
default RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.web.Url aUrl) throws org.refcodes.web.HttpResponseException Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aUrl
- TheUrl
from which to take the URL specific data.- Returns:
- The
RestResponse
for this request. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
default RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.web.Url aUrl, Object aRequest) throws org.refcodes.web.HttpResponseException Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aUrl
- TheUrl
from which to take the URL specific data.aRequest
- The body to be sent with the request (e.g. when doing aHttpMethod.POST
request.- Returns:
- The
RestResponse
for this request. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
default RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.web.Url aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields) throws org.refcodes.web.HttpResponseException Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aUrl
- TheUrl
from which to take the URL specific data.aHeaderFields
- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestResponse
for this request. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
default RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.web.Url aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) throws org.refcodes.web.HttpResponseException Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aUrl
- TheUrl
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 aHttpMethod.POST
request.- Returns:
- The
RestResponse
for this request. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.web.Url aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest, int aRedirectDepth) throws org.refcodes.web.HttpResponseException Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.- Parameters:
aHttpMethod
- The HTTP-Method for the request.aUrl
- TheUrl
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 aHttpMethod.POST
request.aRedirectDepth
- The redirect depth provides the count of HTTP-Request and HTTP-Response cycles where the response represents a redirect as ofHttpStatusCode.isRedirectStatus()
. A value of -1 represents the default behavior, e.g. usingHttpURLConnection
's redirection means.- Returns:
- The
RestResponse
for this request. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
default RestResponse doRequest(RestRequest aRequest) throws org.refcodes.web.HttpResponseException, MalformedURLException Sends a request with the possible attributes and returns the according request'sRestResponse
instance synchronously.- Parameters:
aRequest
- TheRestRequest
encapsulating all necessary attributes to issue the request.- Returns:
- The
RestResponse
for this request. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.MalformedURLException
- in case the provided URL is considered being malformed.
-
onResponse
default RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields, Object aRequest, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseHandler.open()
on the returnedRestResponseHandler
as theRestResponseHandler
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.aRequest
- The body to be sent with the request (e.g. when doing aHttpMethod.POST
request.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by the request.
-
onResponse
default RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseHandler.open()
on the returnedRestResponseHandler
as theRestResponseHandler
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.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 aHttpMethod.POST
request.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by the request.
-
onResponse
default RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseHandler.open()
on the returnedRestResponseHandler
as theRestResponseHandler
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.aHeaderFields
- The HTTP-Header's fields to be used for the request.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by the request.
-
onResponse
default RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseHandler.open()
on the returnedRestResponseHandler
as theRestResponseHandler
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by the request.
-
onResponse
default RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, Object aRequest, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseHandler.open()
on the returnedRestResponseHandler
as theRestResponseHandler
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.aRequest
- The body to be sent with the request (e.g. when doing aHttpMethod.POST
request.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by the request.
-
onResponse
default RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseHandler.open()
on the returnedRestResponseHandler
as theRestResponseHandler
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.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 aHttpMethod.POST
request.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by the request.
-
onResponse
default RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseHandler.open()
on the returnedRestResponseHandler
as theRestResponseHandler
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.aHeaderFields
- The HTTP-Header's fields to be used for the request.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by the request.
-
onResponse
default RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseHandler.open()
on the returnedRestResponseHandler
as theRestResponseHandler
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by the request.
-
onResponse
default RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, Object aRequest, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseHandler.open()
on the returnedRestResponseHandler
as theRestResponseHandler
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.aRequest
- The body to be sent with the request (e.g. when doing aHttpMethod.POST
request.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by the request.
-
onResponse
default RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseHandler.open()
on the returnedRestResponseHandler
as theRestResponseHandler
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.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 aHttpMethod.POST
request.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by the request.
-
onResponse
default RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseHandler.open()
on the returnedRestResponseHandler
as theRestResponseHandler
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.aHeaderFields
- The HTTP-Header's fields to be used for the request.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by the request.
-
onResponse
default RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseHandler.open()
on the returnedRestResponseHandler
as theRestResponseHandler
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by the request.
-
onResponse
default RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, Object aRequest, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseHandler.open()
on the returnedRestResponseHandler
as theRestResponseHandler
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.aRequest
- The body to be sent with the request (e.g. when doing aHttpMethod.POST
request.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by the request.
-
onResponse
default RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseHandler.open()
on the returnedRestResponseHandler
as theRestResponseHandler
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.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 aHttpMethod.POST
request.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by the request.
-
onResponse
default RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseHandler.open()
on the returnedRestResponseHandler
as theRestResponseHandler
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.aHeaderFields
- The HTTP-Header's fields to be used for the request.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by the request.
-
onResponse
default RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseHandler.open()
on the returnedRestResponseHandler
as theRestResponseHandler
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by the request.
-
onResponse
default RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aLocator, org.refcodes.web.FormFields aQueryFields, Object aRequest, RestResponseConsumer aResponseConsumer) throws MalformedURLException Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseHandler.open()
on the returnedRestResponseHandler
as theRestResponseHandler
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aLocator
- The targeted locator, usually the part of the URL till (excluding) the query fields and the fragment.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.aRequest
- The body to be sent with the request (e.g. when doing aHttpMethod.POST
request.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by the request. - Throws:
MalformedURLException
- in case the provided URL is considered being malformed.
-
onResponse
default RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aLocator, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) throws MalformedURLException Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseHandler.open()
on the returnedRestResponseHandler
as theRestResponseHandler
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aLocator
- The targeted locator, usually the part of the URL till (excluding) the query fields and the fragment.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.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 aHttpMethod.POST
request.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by the request. - Throws:
MalformedURLException
- in case the provided URL is considered being malformed.
-
onResponse
default RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aLocator, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) throws MalformedURLException Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseHandler.open()
on the returnedRestResponseHandler
as theRestResponseHandler
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aLocator
- The targeted locator, usually the part of the URL till (excluding) the query fields and the fragment.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.aHeaderFields
- The HTTP-Header's fields to be used for the request.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by the request. - Throws:
MalformedURLException
- in case the provided URL is considered being malformed.
-
onResponse
default RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aLocator, org.refcodes.web.FormFields aQueryFields, RestResponseConsumer aResponseConsumer) throws MalformedURLException Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseHandler.open()
on the returnedRestResponseHandler
as theRestResponseHandler
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aLocator
- The targeted locator, usually the part of the URL till (excluding) the query fields and the fragment.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by the request. - Throws:
MalformedURLException
- in case the provided URL is considered being malformed.
-
onResponse
default RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aUrl, Object aRequest, RestResponseConsumer aResponseConsumer) throws MalformedURLException Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseHandler.open()
on the returnedRestResponseHandler
as theRestResponseHandler
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aUrl
- The targeted URL locating the addressed resource.aRequest
- The body to be sent with the request (e.g. when doing aHttpMethod.POST
request.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by the request. - Throws:
MalformedURLException
- in case the provided URL is considered being malformed.
-
onResponse
default RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) throws MalformedURLException Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseHandler.open()
on the returnedRestResponseHandler
as theRestResponseHandler
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aUrl
- The targeted URL locating the addressed resource.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 aHttpMethod.POST
request.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by the request. - Throws:
MalformedURLException
- in case the provided URL is considered being malformed.
-
onResponse
default RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) throws MalformedURLException Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseHandler.open()
on the returnedRestResponseHandler
as theRestResponseHandler
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aUrl
- The targeted URL locating the addressed resource.aHeaderFields
- The HTTP-Header's fields to be used for the request.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by the request. - Throws:
MalformedURLException
- in case the provided URL is considered being malformed.
-
onResponse
default RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aUrl, RestResponseConsumer aResponseConsumer) throws MalformedURLException Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseHandler.open()
on the returnedRestResponseHandler
as theRestResponseHandler
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aUrl
- The targeted URL locating the addressed resource.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by the request. - Throws:
MalformedURLException
- in case the provided URL is considered being malformed.
-
onResponse
default RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields, Object aRequest, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseHandler.open()
on the returnedRestResponseHandler
as theRestResponseHandler
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.aRequest
- The body to be sent with the request (e.g. when doing aHttpMethod.POST
request.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by the request.
-
onResponse
default RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseHandler.open()
on the returnedRestResponseHandler
as theRestResponseHandler
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.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 aHttpMethod.POST
request.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by the request.
-
onResponse
default RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseHandler.open()
on the returnedRestResponseHandler
as theRestResponseHandler
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.aHeaderFields
- The HTTP-Header's fields to be used for the request.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by the request.
-
onResponse
default RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseHandler.open()
on the returnedRestResponseHandler
as theRestResponseHandler
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by the request.
-
onResponse
default RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, Object aRequest, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseHandler.open()
on the returnedRestResponseHandler
as theRestResponseHandler
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.aRequest
- The body to be sent with the request (e.g. when doing aHttpMethod.POST
request.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by the request.
-
onResponse
default RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseHandler.open()
on the returnedRestResponseHandler
as theRestResponseHandler
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.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 aHttpMethod.POST
request.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by the request.
-
onResponse
default RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseHandler.open()
on the returnedRestResponseHandler
as theRestResponseHandler
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.aHeaderFields
- The HTTP-Header's fields to be used for the request.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by the request.
-
onResponse
default RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseHandler.open()
on the returnedRestResponseHandler
as theRestResponseHandler
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by the request.
-
onResponse
default RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, Object aRequest, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseHandler.open()
on the returnedRestResponseHandler
as theRestResponseHandler
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.aRequest
- The body to be sent with the request (e.g. when doing aHttpMethod.POST
request.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by the request.
-
onResponse
default RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseHandler.open()
on the returnedRestResponseHandler
as theRestResponseHandler
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.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 aHttpMethod.POST
request.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by the request.
-
onResponse
default RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseHandler.open()
on the returnedRestResponseHandler
as theRestResponseHandler
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.aHeaderFields
- The HTTP-Header's fields to be used for the request.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by the request.
-
onResponse
default RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseHandler.open()
on the returnedRestResponseHandler
as theRestResponseHandler
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by the request.
-
onResponse
default RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, Object aRequest, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseHandler.open()
on the returnedRestResponseHandler
as theRestResponseHandler
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.aRequest
- The body to be sent with the request (e.g. when doing aHttpMethod.POST
request.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by the request.
-
onResponse
default RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseHandler.open()
on the returnedRestResponseHandler
as theRestResponseHandler
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.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 aHttpMethod.POST
request.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by the request.
-
onResponse
default RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseHandler.open()
on the returnedRestResponseHandler
as theRestResponseHandler
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.aHeaderFields
- The HTTP-Header's fields to be used for the request.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by the request.
-
onResponse
default RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseHandler.open()
on the returnedRestResponseHandler
as theRestResponseHandler
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by the request.
-
onResponse
default RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.web.Url aUrl, Object aRequest, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseHandler.open()
on the returnedRestResponseHandler
as theRestResponseHandler
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aUrl
- TheUrl
from which to take the URL specific data.aRequest
- The body to be sent with the request (e.g. when doing aHttpMethod.POST
request.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by the request.
-
onResponse
RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.web.Url aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest, int aRedirectDepth, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseHandler.open()
on the returnedRestResponseHandler
as theRestResponseHandler
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aUrl
- TheUrl
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 aHttpMethod.POST
request.aRedirectDepth
- The redirect depth provides the count of HTTP-Request and HTTP-Response cycles where the response represents a redirect as ofHttpStatusCode.isRedirectStatus()
. A value of -1 represents the default behavior, e.g. usingHttpURLConnection
's redirection means.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by the request.
-
onResponse
default RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.web.Url aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseHandler.open()
on the returnedRestResponseHandler
as theRestResponseHandler
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aUrl
- TheUrl
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 aHttpMethod.POST
request.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by the request.
-
onResponse
default RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.web.Url aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) Creates a request with the possible attributes and returns the accordingRestResponseHandler
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseHandler.open()
on the returnedRestResponseHandler
as theRestResponseHandler
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aUrl
- TheUrl
from which to take the URL specific data.aHeaderFields
- The HTTP-Header's fields to be used for the request.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by the request.
-
onResponse
default RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields, Object aRequest) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseResult.open()
on the returnedRestResponseResult
as theRestResponseResult
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.aRequest
- The body to be sent with the request (e.g. when doing aHttpMethod.POST
request.- Returns:
- The
RestResponseResult
which is used by the request.
-
onResponse
default RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseResult.open()
on the returnedRestResponseResult
as theRestResponseResult
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.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 aHttpMethod.POST
request.- Returns:
- The
RestResponseResult
which is used by the request.
-
onResponse
default RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseResult.open()
on the returnedRestResponseResult
as theRestResponseResult
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.aHeaderFields
- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestResponseResult
which is used by the request.
-
onResponse
default RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseResult.open()
on the returnedRestResponseResult
as theRestResponseResult
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.- Returns:
- The
RestResponseResult
which is used by the request.
-
onResponse
default RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, Object aRequest) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseResult.open()
on the returnedRestResponseResult
as theRestResponseResult
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.aRequest
- The body to be sent with the request (e.g. when doing aHttpMethod.POST
request.- Returns:
- The
RestResponseResult
which is used by the request.
-
onResponse
default RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseResult.open()
on the returnedRestResponseResult
as theRestResponseResult
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.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 aHttpMethod.POST
request.- Returns:
- The
RestResponseResult
which is used by the request.
-
onResponse
default RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseResult.open()
on the returnedRestResponseResult
as theRestResponseResult
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.aHeaderFields
- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestResponseResult
which is used by the request.
-
onResponse
default RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseResult.open()
on the returnedRestResponseResult
as theRestResponseResult
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.- Returns:
- The
RestResponseResult
which is used by the request.
-
onResponse
default RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, Object aRequest) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseResult.open()
on the returnedRestResponseResult
as theRestResponseResult
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.aRequest
- The body to be sent with the request (e.g. when doing aHttpMethod.POST
request.- Returns:
- The
RestResponseResult
which is used by the request.
-
onResponse
default RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseResult.open()
on the returnedRestResponseResult
as theRestResponseResult
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.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 aHttpMethod.POST
request.- Returns:
- The
RestResponseResult
which is used by the request.
-
onResponse
default RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseResult.open()
on the returnedRestResponseResult
as theRestResponseResult
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.aHeaderFields
- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestResponseResult
which is used by the request.
-
onResponse
default RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseResult.open()
on the returnedRestResponseResult
as theRestResponseResult
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.- Returns:
- The
RestResponseResult
which is used by the request.
-
onResponse
default RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, Object aRequest) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseResult.open()
on the returnedRestResponseResult
as theRestResponseResult
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.aRequest
- The body to be sent with the request (e.g. when doing aHttpMethod.POST
request.- Returns:
- The
RestResponseResult
which is used by the request.
-
onResponse
default RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseResult.open()
on the returnedRestResponseResult
as theRestResponseResult
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.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 aHttpMethod.POST
request.- Returns:
- The
RestResponseResult
which is used by the request.
-
onResponse
default RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseResult.open()
on the returnedRestResponseResult
as theRestResponseResult
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.aHeaderFields
- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestResponseResult
which is used by the request.
-
onResponse
default RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseResult.open()
on the returnedRestResponseResult
as theRestResponseResult
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aScheme
- TheScheme
(e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.- Returns:
- The
RestResponseResult
which is used by the request.
-
onResponse
default RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aLocator, org.refcodes.web.FormFields aQueryFields, Object aRequest) throws MalformedURLException Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseResult.open()
on the returnedRestResponseResult
as theRestResponseResult
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aLocator
- The targeted locator, usually the part of the URL till (excluding) the query fields and the fragment.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.aRequest
- The body to be sent with the request (e.g. when doing aHttpMethod.POST
request.- Returns:
- The
RestResponseResult
which is used by the request. - Throws:
MalformedURLException
- in case the provided URL is considered being malformed.
-
onResponse
default RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aLocator, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) throws MalformedURLException Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseResult.open()
on the returnedRestResponseResult
as theRestResponseResult
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aLocator
- The targeted locator, usually the part of the URL till (excluding) the query fields and the fragment.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.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 aHttpMethod.POST
request.- Returns:
- The
RestResponseResult
which is used by the request. - Throws:
MalformedURLException
- in case the provided URL is considered being malformed.
-
onResponse
default RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aLocator, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields) throws MalformedURLException Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseResult.open()
on the returnedRestResponseResult
as theRestResponseResult
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aLocator
- The targeted locator, usually the part of the URL till (excluding) the query fields and the fragment.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.aHeaderFields
- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestResponseResult
which is used by the request. - Throws:
MalformedURLException
- in case the provided URL is considered being malformed.
-
onResponse
default RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aLocator, org.refcodes.web.FormFields aQueryFields) throws MalformedURLException Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseResult.open()
on the returnedRestResponseResult
as theRestResponseResult
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aLocator
- The targeted locator, usually the part of the URL till (excluding) the query fields and the fragment.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.- Returns:
- The
RestResponseResult
which is used by the request. - Throws:
MalformedURLException
- in case the provided URL is considered being malformed.
-
onResponse
default RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aUrl, Object aRequest) throws MalformedURLException Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseResult.open()
on the returnedRestResponseResult
as theRestResponseResult
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aUrl
- The targeted URL locating the addressed resource.aRequest
- The body to be sent with the request (e.g. when doing aHttpMethod.POST
request.- Returns:
- The
RestResponseResult
which is used by the request. - Throws:
MalformedURLException
- in case the provided URL is considered being malformed.
-
onResponse
default RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) throws MalformedURLException Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseResult.open()
on the returnedRestResponseResult
as theRestResponseResult
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aUrl
- The targeted URL locating the addressed resource.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 aHttpMethod.POST
request.- Returns:
- The
RestResponseResult
which is used by the request. - Throws:
MalformedURLException
- in case the provided URL is considered being malformed.
-
onResponse
default RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields) throws MalformedURLException Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseResult.open()
on the returnedRestResponseResult
as theRestResponseResult
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aUrl
- The targeted URL locating the addressed resource.aHeaderFields
- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestResponseResult
which is used by the request. - Throws:
MalformedURLException
- in case the provided URL is considered being malformed.
-
onResponse
default RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aUrl) throws MalformedURLException Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseResult.open()
on the returnedRestResponseResult
as theRestResponseResult
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aUrl
- The targeted URL locating the addressed resource.- Returns:
- The
RestResponseResult
which is used by the request. - Throws:
MalformedURLException
- in case the provided URL is considered being malformed.
-
onResponse
default RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields, Object aRequest) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseResult.open()
on the returnedRestResponseResult
as theRestResponseResult
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.aRequest
- The body to be sent with the request (e.g. when doing aHttpMethod.POST
request.- Returns:
- The
RestResponseResult
which is used by the request.
-
onResponse
default RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseResult.open()
on the returnedRestResponseResult
as theRestResponseResult
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.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 aHttpMethod.POST
request.- Returns:
- The
RestResponseResult
which is used by the request.
-
onResponse
default RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseResult.open()
on the returnedRestResponseResult
as theRestResponseResult
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.aHeaderFields
- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestResponseResult
which is used by the request.
-
onResponse
default RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseResult.open()
on the returnedRestResponseResult
as theRestResponseResult
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.- Returns:
- The
RestResponseResult
which is used by the request.
-
onResponse
default RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, Object aRequest) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseResult.open()
on the returnedRestResponseResult
as theRestResponseResult
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.aRequest
- The body to be sent with the request (e.g. when doing aHttpMethod.POST
request.- Returns:
- The
RestResponseResult
which is used by the request.
-
onResponse
default RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseResult.open()
on the returnedRestResponseResult
as theRestResponseResult
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.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 aHttpMethod.POST
request.- Returns:
- The
RestResponseResult
which is used by the request.
-
onResponse
default RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseResult.open()
on the returnedRestResponseResult
as theRestResponseResult
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.aHeaderFields
- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestResponseResult
which is used by the request.
-
onResponse
default RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseResult.open()
on the returnedRestResponseResult
as theRestResponseResult
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the base destination URL is to point to.- Returns:
- The
RestResponseResult
which is used by the request.
-
onResponse
default RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, Object aRequest) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseResult.open()
on the returnedRestResponseResult
as theRestResponseResult
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.aRequest
- The body to be sent with the request (e.g. when doing aHttpMethod.POST
request.- Returns:
- The
RestResponseResult
which is used by the request.
-
onResponse
default RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseResult.open()
on the returnedRestResponseResult
as theRestResponseResult
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.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 aHttpMethod.POST
request.- Returns:
- The
RestResponseResult
which is used by the request.
-
onResponse
default RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseResult.open()
on the returnedRestResponseResult
as theRestResponseResult
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.aHeaderFields
- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestResponseResult
which is used by the request.
-
onResponse
default RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseResult.open()
on the returnedRestResponseResult
as theRestResponseResult
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.aQueryFields
- The Query-Fields to be used for the HTTP Query-String.- Returns:
- The
RestResponseResult
which is used by the request.
-
onResponse
default RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, Object aRequest) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseResult.open()
on the returnedRestResponseResult
as theRestResponseResult
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.aRequest
- The body to be sent with the request (e.g. when doing aHttpMethod.POST
request.- Returns:
- The
RestResponseResult
which is used by the request.
-
onResponse
default RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseResult.open()
on the returnedRestResponseResult
as theRestResponseResult
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.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 aHttpMethod.POST
request.- Returns:
- The
RestResponseResult
which is used by the request.
-
onResponse
default RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseResult.open()
on the returnedRestResponseResult
as theRestResponseResult
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.aHeaderFields
- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestResponseResult
which is used by the request.
-
onResponse
default RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseResult.open()
on the returnedRestResponseResult
as theRestResponseResult
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost
- The host to which the destination URL is to point to.aPath
- The path on the host to which the base destination URL is to point to.- Returns:
- The
RestResponseResult
which is used by the request.
-
onResponse
default RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.web.Url aUrl, Object aRequest) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseResult.open()
on the returnedRestResponseResult
as theRestResponseResult
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aUrl
- TheUrl
from which to take the URL specific data.aRequest
- The body to be sent with the request (e.g. when doing aHttpMethod.POST
request.- Returns:
- The
RestResponseResult
which is used by the request.
-
onResponse
RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.web.Url aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest, int aRedirectDepth) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseResult.open()
on the returnedRestResponseResult
as theRestResponseResult
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aUrl
- TheUrl
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 aHttpMethod.POST
request.aRedirectDepth
- The redirect depth provides the count of HTTP-Request and HTTP-Response cycles where the response represents a redirect as ofHttpStatusCode.isRedirectStatus()
. A value of -1 represents the default behavior, e.g. usingHttpURLConnection
's redirection means.- Returns:
- The
RestResponseResult
which is used by the request.
-
onResponse
default RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.web.Url aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseResult.open()
on the returnedRestResponseResult
as theRestResponseResult
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aUrl
- TheUrl
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 aHttpMethod.POST
request.- Returns:
- The
RestResponseResult
which is used by the request.
-
onResponse
default RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.web.Url aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields) Creates a request with the possible attributes and returns the accordingRestResponseResult
instance used for the request. The HTTP-Request is actually sent not earlier than you callingRestResponseResult.open()
on the returnedRestResponseResult
as theRestResponseResult
still may be modified after invoking this method!- Parameters:
aHttpMethod
- The HTTP-Method for the request.aUrl
- TheUrl
from which to take the URL specific data.aHeaderFields
- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestResponseResult
which is used by the request.
-