- java.lang.Object
-
- org.refcodes.rest.RestRequestClientSugar
-
- Direct Known Subclasses:
RestGetClientSugar
public class RestRequestClientSugar extends Object
Helper class to get the syntactic sugar (from a maintenance point of view) under control. You should actually statically import theHttpRestClientSugar
.
-
-
Constructor Summary
Constructors Constructor Description RestRequestClientSugar()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RestRequestBuilder
buildRequest(org.refcodes.web.HttpMethod aHttpMethod, String aUrl)
static RestRequestBuilder
buildRequest(org.refcodes.web.HttpMethod aHttpMethod, String aUrl, Object aRequest)
static RestRequestBuilder
buildRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath)
static RestRequestBuilder
buildRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, Object aRequest)
static RestRequestBuilder
buildRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields)
static RestRequestBuilder
buildRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields, Object aRequest)
static 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)
static RestRequestBuilder
buildRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest)
static RestRequestBuilder
buildRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath)
static RestRequestBuilder
buildRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, Object aRequest)
static RestRequestBuilder
buildRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields)
static RestRequestBuilder
buildRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, Object aRequest)
static 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)
static RestRequestBuilder
buildRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest)
static RestRequestBuilder
buildRequest(org.refcodes.web.HttpMethod aHttpMethod, String aLocator, org.refcodes.web.FormFields aQueryFields)
static RestRequestBuilder
buildRequest(org.refcodes.web.HttpMethod aHttpMethod, String aLocator, org.refcodes.web.FormFields aQueryFields, Object aRequest)
static RestRequestBuilder
buildRequest(org.refcodes.web.HttpMethod aHttpMethod, String aLocator, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest)
static RestRequestBuilder
buildRequest(org.refcodes.web.HttpMethod aHttpMethod, String aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest)
static RestRequestBuilder
buildRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath)
static RestRequestBuilder
buildRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, Object aRequest)
static RestRequestBuilder
buildRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields)
static 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)
static 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)
static 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)
static RestRequestBuilder
buildRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath)
static RestRequestBuilder
buildRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, Object aRequest)
static RestRequestBuilder
buildRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields)
static RestRequestBuilder
buildRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, Object aRequest)
static 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)
static RestRequestBuilder
buildRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest)
static RestRequestBuilder
buildRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.web.Url aUrl)
static RestRequestBuilder
buildRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.web.Url aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields)
static RestResponse
doRequest(RestRequest aRequest)
static RestResponse
doRequest(org.refcodes.web.HttpMethod aHttpMethod, String aUrl)
static RestResponse
doRequest(org.refcodes.web.HttpMethod aHttpMethod, String aUrl, Object aRequest)
static RestResponse
doRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath)
static RestResponse
doRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, Object aRequest)
static RestResponse
doRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields)
static RestResponse
doRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields, Object aRequest)
static 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)
static 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)
static RestResponse
doRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields)
static RestResponse
doRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest)
static RestResponse
doRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath)
static RestResponse
doRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, Object aRequest)
static RestResponse
doRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields)
static RestResponse
doRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, Object aRequest)
static RestResponse
doRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields)
static 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)
static RestResponse
doRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields)
static RestResponse
doRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest)
static RestResponse
doRequest(org.refcodes.web.HttpMethod aHttpMethod, String aLocator, org.refcodes.web.FormFields aQueryFields)
static RestResponse
doRequest(org.refcodes.web.HttpMethod aHttpMethod, String aLocator, org.refcodes.web.FormFields aQueryFields, Object aRequest)
static RestResponse
doRequest(org.refcodes.web.HttpMethod aHttpMethod, String aLocator, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields)
static RestResponse
doRequest(org.refcodes.web.HttpMethod aHttpMethod, String aLocator, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest)
static RestResponse
doRequest(org.refcodes.web.HttpMethod aHttpMethod, String aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields)
static RestResponse
doRequest(org.refcodes.web.HttpMethod aHttpMethod, String aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest)
static RestResponse
doRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath)
static RestResponse
doRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, Object aRequest)
static RestResponse
doRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields)
static 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)
static 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)
static 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)
static RestResponse
doRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields)
static 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)
static RestResponse
doRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath)
static RestResponse
doRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, Object aRequest)
static RestResponse
doRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields)
static RestResponse
doRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, Object aRequest)
static 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)
static 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)
static RestResponse
doRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields)
static RestResponse
doRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest)
static RestResponse
doRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.web.Url aUrl)
static RestResponseResult
onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aUrl)
static RestResponseResult
onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aUrl, Object aRequest)
static RestResponseHandler
onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aUrl, Object aRequest, RestResponseConsumer aResponseConsumer)
static RestResponseResult
onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath)
static RestResponseResult
onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, Object aRequest)
static RestResponseHandler
onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, Object aRequest, RestResponseConsumer aResponseConsumer)
static RestResponseHandler
onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, RestResponseConsumer aResponseConsumer)
static RestResponseResult
onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields)
static RestResponseResult
onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields, Object aRequest)
static RestResponseHandler
onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields, Object aRequest, RestResponseConsumer aResponseConsumer)
static RestResponseHandler
onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields, RestResponseConsumer aResponseConsumer)
static 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)
static 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)
static 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)
static 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)
static RestResponseResult
onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields)
static RestResponseResult
onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest)
static RestResponseHandler
onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer)
static RestResponseHandler
onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer)
static RestResponseResult
onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath)
static RestResponseResult
onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, Object aRequest)
static RestResponseHandler
onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, Object aRequest, RestResponseConsumer aResponseConsumer)
static RestResponseHandler
onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, RestResponseConsumer aResponseConsumer)
static RestResponseResult
onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields)
static RestResponseResult
onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, Object aRequest)
static RestResponseHandler
onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, Object aRequest, RestResponseConsumer aResponseConsumer)
static RestResponseHandler
onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, RestResponseConsumer aResponseConsumer)
static RestResponseResult
onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields)
static 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)
static 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)
static 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)
static RestResponseResult
onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields)
static RestResponseResult
onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest)
static RestResponseHandler
onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer)
static RestResponseHandler
onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer)
static RestResponseHandler
onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aUrl, RestResponseConsumer aResponseConsumer)
static RestResponseResult
onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aLocator, org.refcodes.web.FormFields aQueryFields)
static RestResponseResult
onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aLocator, org.refcodes.web.FormFields aQueryFields, Object aRequest)
static RestResponseHandler
onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aLocator, org.refcodes.web.FormFields aQueryFields, Object aRequest, RestResponseConsumer aResponseConsumer)
static RestResponseHandler
onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aLocator, org.refcodes.web.FormFields aQueryFields, RestResponseConsumer aResponseConsumer)
static RestResponseResult
onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aLocator, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields)
static RestResponseResult
onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aLocator, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest)
static RestResponseHandler
onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aLocator, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer)
static RestResponseHandler
onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aLocator, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer)
static RestResponseResult
onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields)
static RestResponseResult
onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest)
static RestResponseHandler
onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer)
static RestResponseHandler
onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer)
static RestResponseResult
onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath)
static RestResponseResult
onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, Object aRequest)
static RestResponseHandler
onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, Object aRequest, RestResponseConsumer aResponseConsumer)
static RestResponseHandler
onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, RestResponseConsumer aResponseConsumer)
static RestResponseResult
onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields)
static 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)
static 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)
static 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)
static 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)
static 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)
static 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)
static 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)
static RestResponseResult
onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields)
static 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)
static 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)
static 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)
static RestResponseResult
onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath)
static RestResponseResult
onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, Object aRequest)
static RestResponseHandler
onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, Object aRequest, RestResponseConsumer aResponseConsumer)
static RestResponseHandler
onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, RestResponseConsumer aResponseConsumer)
static RestResponseResult
onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields)
static RestResponseResult
onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, Object aRequest)
static 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)
static RestResponseHandler
onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, RestResponseConsumer aResponseConsumer)
static 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)
static 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)
static 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)
static 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)
static RestResponseResult
onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields)
static RestResponseResult
onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest)
static 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)
static RestResponseHandler
onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer)
static RestResponseResult
onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.web.Url aUrl, Object aRequest)
static RestResponseHandler
onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.web.Url aUrl, Object aRequest, RestResponseConsumer aResponseConsumer)
static RestResponseResult
onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.web.Url aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields)
static RestResponseResult
onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.web.Url aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest)
static RestResponseHandler
onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.web.Url aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer)
static RestResponseHandler
onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.web.Url aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer)
-
-
-
Method Detail
-
buildRequest
public static RestRequestBuilder buildRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath) throws org.refcodes.web.HttpResponseException
- 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. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(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
- 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. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
buildRequest
public static 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) throws org.refcodes.web.HttpResponseException
See alsoRestRequestClient.buildRequest(HttpMethod, Scheme, String, int, String, FormFields, Object)
- 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. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
buildRequest
public static 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) throws org.refcodes.web.HttpResponseException
- 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
which is used to prepare and synchronously issue the request. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, Object aRequest) throws org.refcodes.web.HttpResponseException
- 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. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
buildRequest
public static 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) throws org.refcodes.web.HttpResponseException
See alsoRestRequestClient.buildRequest(HttpMethod, Scheme, String, int, String, RequestHeaderFields, Object)
- 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. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath) throws org.refcodes.web.HttpResponseException
- 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. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields) throws org.refcodes.web.HttpResponseException
- 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. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(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
- 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. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
buildRequest
public static 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) throws org.refcodes.web.HttpResponseException
- 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
which is used to prepare and synchronously issue the request. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, Object aRequest) throws org.refcodes.web.HttpResponseException
- 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. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(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
See alsoRestRequestClient.buildRequest(HttpMethod, Scheme, String, String, RequestHeaderFields, Object)
- 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. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(org.refcodes.web.HttpMethod aHttpMethod, String aUrl) throws org.refcodes.web.HttpResponseException, MalformedURLException
- 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:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.MalformedURLException
- in case the provided URL is considered being malformed.
-
buildRequest
public static RestRequestBuilder buildRequest(org.refcodes.web.HttpMethod aHttpMethod, String aLocator, org.refcodes.web.FormFields aQueryFields) throws org.refcodes.web.HttpResponseException, MalformedURLException
- 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:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.MalformedURLException
- in case the provided URL is considered being malformed.
-
buildRequest
public static RestRequestBuilder buildRequest(org.refcodes.web.HttpMethod aHttpMethod, String aLocator, org.refcodes.web.FormFields aQueryFields, Object aRequest) throws org.refcodes.web.HttpResponseException, MalformedURLException
- 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
RestRequestBuilder
which is used to prepare and synchronously issue the request. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.MalformedURLException
- in case the provided URL is considered being malformed.
-
buildRequest
public static RestRequestBuilder buildRequest(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
See alsoRestRequestClient.buildRequest(HttpMethod, String, FormFields, RequestHeaderFields, Object)
- 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
which is used to prepare and synchronously issue the request. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.MalformedURLException
- in case the provided URL is considered being malformed.
-
buildRequest
public static RestRequestBuilder buildRequest(org.refcodes.web.HttpMethod aHttpMethod, String aUrl, Object aRequest) throws org.refcodes.web.HttpResponseException, MalformedURLException
- 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
RestRequestBuilder
which is used to prepare and synchronously issue the request. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.MalformedURLException
- in case the provided URL is considered being malformed.
-
buildRequest
public static RestRequestBuilder buildRequest(org.refcodes.web.HttpMethod aHttpMethod, String aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) throws org.refcodes.web.HttpResponseException, MalformedURLException
- 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:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.MalformedURLException
- in case the provided URL is considered being malformed.
-
buildRequest
public static RestRequestBuilder buildRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath) throws org.refcodes.web.HttpResponseException
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields) throws org.refcodes.web.HttpResponseException
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(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
See alsoRestRequestClient.buildRequest(HttpMethod, String, String, int, String, FormFields, Object)
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
buildRequest
public static 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) throws org.refcodes.web.HttpResponseException
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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
which is used to prepare and synchronously issue the request. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, Object aRequest) throws org.refcodes.web.HttpResponseException
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(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
See alsoRestRequestClient.buildRequest(HttpMethod, String, String, int, String, RequestHeaderFields, Object)
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath) throws org.refcodes.web.HttpResponseException
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields) throws org.refcodes.web.HttpResponseException
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, Object aRequest) throws org.refcodes.web.HttpResponseException
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
buildRequest
public static 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) throws org.refcodes.web.HttpResponseException
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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
which is used to prepare and synchronously issue the request. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, Object aRequest) throws org.refcodes.web.HttpResponseException
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) throws org.refcodes.web.HttpResponseException
See alsoRestRequestClient.buildRequest(HttpMethod, String, String, String, RequestHeaderFields, Object)
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.web.Url aUrl) throws org.refcodes.web.HttpResponseException
- 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. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.web.Url aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields) throws org.refcodes.web.HttpResponseException
- 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
which is used to prepare and synchronously issue the request. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
public static RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath) throws org.refcodes.web.HttpResponseException
- 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
public static 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
- 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
public static 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
- 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
public static 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
- 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
public static 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
- 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
as of your request. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
public static 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
- 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
public static 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
- 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
public static 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
See alsoRestRequestClient.doRequest(HttpMethod, Scheme, String, int, String, RequestHeaderFields, Object)
- 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
public static RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath) throws org.refcodes.web.HttpResponseException
- 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
public static 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
- 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
public static 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
- 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
public static 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
See alsoRestRequestClient.doRequest(HttpMethod, Scheme, String, String, FormFields, RequestHeaderFields)
- 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
public static 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
- 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
as of your request. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
public static RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, Object aRequest) throws org.refcodes.web.HttpResponseException
- 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
public static 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
- 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
public static 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
See alsoRestRequestClient.doRequest(HttpMethod, Scheme, String, String, RequestHeaderFields, Object)
- 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
public static RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, String aUrl) throws org.refcodes.web.HttpResponseException, MalformedURLException
- 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
public static RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, String aLocator, org.refcodes.web.FormFields aQueryFields) throws org.refcodes.web.HttpResponseException, MalformedURLException
- 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
public static RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, String aLocator, org.refcodes.web.FormFields aQueryFields, Object aRequest) throws org.refcodes.web.HttpResponseException, MalformedURLException
- 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
public static 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
- 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
public static 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
- 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
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
public static RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, String aUrl, Object aRequest) throws org.refcodes.web.HttpResponseException, MalformedURLException
- 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
public static RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, String aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields) throws org.refcodes.web.HttpResponseException, MalformedURLException
- 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
public static RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, String aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) throws org.refcodes.web.HttpResponseException, MalformedURLException
- 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
public static RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath) throws org.refcodes.web.HttpResponseException
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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
public static 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
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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
public static 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
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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
public static 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
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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
public static 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
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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
as of your request. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
public static RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, Object aRequest) throws org.refcodes.web.HttpResponseException
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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
public static 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
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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
public static 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
See alsoRestRequestClient.doRequest(HttpMethod, String, String, int, String, RequestHeaderFields, Object)
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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
public static RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath) throws org.refcodes.web.HttpResponseException
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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
public static RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields) throws org.refcodes.web.HttpResponseException
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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
public static 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
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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
public static 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
See alsoRestRequestClient.doRequest(HttpMethod, String, String, String, FormFields, RequestHeaderFields)
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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
public static 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
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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
as of your request. - Throws:
org.refcodes.web.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
public static RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, Object aRequest) throws org.refcodes.web.HttpResponseException
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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
public static RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields) throws org.refcodes.web.HttpResponseException
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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
public static 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
See alsoRestRequestClient.doRequest(HttpMethod, String, String, String, RequestHeaderFields, Object)
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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
public static RestResponse doRequest(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.web.Url aUrl) throws org.refcodes.web.HttpResponseException, MalformedURLException
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aUrl
- TheUrl
from which to take the URL specific data.- 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
public static RestResponse doRequest(RestRequest aRequest) throws org.refcodes.web.HttpResponseException, MalformedURLException
- Parameters:
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.
-
onResponse
public static 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)
- 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.DELETE
request.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by your request.
-
onResponse
public static 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)
- 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.DELETE
request.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by your request.
-
onResponse
public static 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)
- 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 your request.
-
onResponse
public static 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)
- 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 your request.
-
onResponse
public static RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, Object aRequest, RestResponseConsumer aResponseConsumer)
See alsoRestRequestClient.onResponse(HttpMethod, Scheme, String, int, String, Object, RestResponseConsumer)
- 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.DELETE
request.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by your request.
-
onResponse
public static 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)
- 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.DELETE
request.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by your request.
-
onResponse
public static 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)
- 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 your request.
-
onResponse
public static RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, RestResponseConsumer aResponseConsumer)
See alsoRestRequestClient.onResponse(HttpMethod, Scheme, String, int, String, RestResponseConsumer)
- 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 your request.
-
onResponse
public static 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)
- 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.DELETE
request.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by your request.
-
onResponse
public static 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)
- 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.DELETE
request.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by your request.
-
onResponse
public static 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)
- 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 your request.
-
onResponse
public static RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, RestResponseConsumer aResponseConsumer)
See alsoRestRequestClient.onResponse(HttpMethod, Scheme, String, String, FormFields, RestResponseConsumer)
- 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 your request.
-
onResponse
public static RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, Object aRequest, RestResponseConsumer aResponseConsumer)
See alsoRestRequestClient.onResponse(HttpMethod, Scheme, String, String, Object, RestResponseConsumer)
- 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.DELETE
request.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by your request.
-
onResponse
public static 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)
- 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.DELETE
request.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by your request.
-
onResponse
public static RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer)
- 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 your request.
-
onResponse
public static RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, RestResponseConsumer aResponseConsumer)
- 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 your request.
-
onResponse
public static RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aLocator, org.refcodes.web.FormFields aQueryFields, Object aRequest, RestResponseConsumer aResponseConsumer) throws MalformedURLException
- 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.DELETE
request.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by your request. - Throws:
MalformedURLException
- in case the provided URL is considered being malformed.
-
onResponse
public static 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
- 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.DELETE
request.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by your request. - Throws:
MalformedURLException
- in case the provided URL is considered being malformed.
-
onResponse
public static RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aLocator, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) throws MalformedURLException
- 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 your request. - Throws:
MalformedURLException
- in case the provided URL is considered being malformed.
-
onResponse
public static RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aLocator, org.refcodes.web.FormFields aQueryFields, RestResponseConsumer aResponseConsumer) throws MalformedURLException
- 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 your request. - Throws:
MalformedURLException
- in case the provided URL is considered being malformed.
-
onResponse
public static RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aUrl, Object aRequest, RestResponseConsumer aResponseConsumer) throws MalformedURLException
- 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.DELETE
request.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by your request. - Throws:
MalformedURLException
- in case the provided URL is considered being malformed.
-
onResponse
public static RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) throws MalformedURLException
See alsoRestRequestClient.onResponse(HttpMethod, String, RequestHeaderFields, Object, RestResponseConsumer)
*- 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.DELETE
request.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by your request. - Throws:
MalformedURLException
- in case the provided URL is considered being malformed.
-
onResponse
public static RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) throws MalformedURLException
See alsoRestRequestClient.onResponse(HttpMethod, String, RequestHeaderFields, RestResponseConsumer)
- 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 your request. - Throws:
MalformedURLException
- in case the provided URL is considered being malformed.
-
onResponse
public static RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aUrl, RestResponseConsumer aResponseConsumer) throws MalformedURLException
- 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 your request. - Throws:
MalformedURLException
- in case the provided URL is considered being malformed.
-
onResponse
public static RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields, Object aRequest, RestResponseConsumer aResponseConsumer)
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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.DELETE
request.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by your request.
-
onResponse
public static 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)
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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.DELETE
request.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by your request.
-
onResponse
public static 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)
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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 your request.
-
onResponse
public static RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields, RestResponseConsumer aResponseConsumer)
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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 your request.
-
onResponse
public static RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, Object aRequest, RestResponseConsumer aResponseConsumer)
See alsoRestRequestClient.onResponse(HttpMethod, String, String, int, String, Object, RestResponseConsumer)
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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.DELETE
request.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by your request.
-
onResponse
public static RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer)
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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.DELETE
request.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by your request.
-
onResponse
public static RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer)
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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 your request.
-
onResponse
public static RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, RestResponseConsumer aResponseConsumer)
See alsoRestRequestClient.onResponse(HttpMethod, String, String, int, String, RestResponseConsumer)
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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 your request.
-
onResponse
public static RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, Object aRequest, RestResponseConsumer aResponseConsumer)
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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.DELETE
request.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by your request.
-
onResponse
public static 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)
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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.DELETE
request.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by your request.
-
onResponse
public static 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)
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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 your request.
-
onResponse
public static RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, RestResponseConsumer aResponseConsumer)
See alsoRestRequestClient.onResponse(HttpMethod, String, String, String, FormFields, RestResponseConsumer)
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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 your request.
-
onResponse
public static RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, Object aRequest, RestResponseConsumer aResponseConsumer)
See alsoRestRequestClient.onResponse(HttpMethod, String, String, String, Object, RestResponseConsumer)
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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.DELETE
request.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by your request.
-
onResponse
public static RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer)
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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.DELETE
request.aResponseConsumer
- The listener processing a response targeted at thisRestResponseHandler
.- Returns:
- The
RestResponseHandler
which is used by your request.
-
onResponse
public static RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer)
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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 your request.
-
onResponse
public static RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, RestResponseConsumer aResponseConsumer)
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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 your request.
-
onResponse
public static RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.web.Url aUrl, Object aRequest, RestResponseConsumer aResponseConsumer)
- 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
public static RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.web.Url aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer)
See alsoRestRequestClient.onResponse(HttpMethod, Url, RequestHeaderFields, Object, RestResponseConsumer)
- 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
public static RestResponseHandler onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.web.Url aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer)
- 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
public static 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)
- 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.DELETE
request.- Returns:
- The
RestResponseResult
which is used by your request.
-
onResponse
public static 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)
- 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.DELETE
request.- Returns:
- The
RestResponseResult
which is used by your request.
-
onResponse
public static 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)
- 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 your request.
-
onResponse
public static RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields)
- 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 your request.
-
onResponse
public static RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, Object aRequest)
- 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.DELETE
request.- Returns:
- The
RestResponseResult
which is used by your request.
-
onResponse
public static 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)
See alsoRestRequestClient.onResponse(HttpMethod, Scheme, String, int, String, RequestHeaderFields, Object)
- 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.DELETE
request.- Returns:
- The
RestResponseResult
which is used by your request.
-
onResponse
public static RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields)
- 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 your request.
-
onResponse
public static RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath)
- 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 your request.
-
onResponse
public static RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, Object aRequest)
- 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.DELETE
request.- Returns:
- The
RestResponseResult
which is used by your request.
-
onResponse
public static 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)
- 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.DELETE
request.- Returns:
- The
RestResponseResult
which is used by your request.
-
onResponse
public static 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)
See alsoRestRequestClient.onResponse(HttpMethod, Scheme, String, String, FormFields,RequestHeaderFields)
- 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 your request.
-
onResponse
public static RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields)
- 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 your request.
-
onResponse
public static RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, Object aRequest)
- 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.DELETE
request.- Returns:
- The
RestResponseResult
which is used by your request.
-
onResponse
public static RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest)
See alsoRestRequestClient.onResponse(HttpMethod, Scheme, String, String, RequestHeaderFields, Object)
- 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.DELETE
request.- Returns:
- The
RestResponseResult
which is used by your request.
-
onResponse
public static RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields)
- 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 your request.
-
onResponse
public static RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, String aHost, String aPath)
- 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 your request.
-
onResponse
public static RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aLocator, org.refcodes.web.FormFields aQueryFields, Object aRequest) throws MalformedURLException
- 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.DELETE
request.- Returns:
- The
RestResponseResult
which is used by your request. - Throws:
MalformedURLException
- in case the provided URL is considered being malformed.
-
onResponse
public static RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aLocator, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) throws MalformedURLException
- 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.DELETE
request.- Returns:
- The
RestResponseResult
which is used by your request. - Throws:
MalformedURLException
- in case the provided URL is considered being malformed.
-
onResponse
public static RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aLocator, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields) throws MalformedURLException
- 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 your request. - Throws:
MalformedURLException
- in case the provided URL is considered being malformed.
-
onResponse
public static RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aLocator, org.refcodes.web.FormFields aQueryFields) throws MalformedURLException
- 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 your request. - Throws:
MalformedURLException
- in case the provided URL is considered being malformed.
-
onResponse
public static RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aUrl, Object aRequest) throws MalformedURLException
- 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.DELETE
request.- Returns:
- The
RestResponseResult
which is used by your request. - Throws:
MalformedURLException
- in case the provided URL is considered being malformed.
-
onResponse
public static RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest) throws MalformedURLException
- 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.DELETE
request.- Returns:
- The
RestResponseResult
which is used by your request. - Throws:
MalformedURLException
- in case the provided URL is considered being malformed.
-
onResponse
public static RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields) throws MalformedURLException
- 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 your request. - Throws:
MalformedURLException
- in case the provided URL is considered being malformed.
-
onResponse
public static RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aUrl) throws MalformedURLException
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aUrl
- The targeted URL locating the addressed resource.- Returns:
- The
RestResponseResult
which is used by your request. - Throws:
MalformedURLException
- in case the provided URL is considered being malformed.
-
onResponse
public static RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields, Object aRequest)
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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.DELETE
request.- Returns:
- The
RestResponseResult
which is used by your request.
-
onResponse
public static 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)
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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.DELETE
request.- Returns:
- The
RestResponseResult
which is used by your request.
-
onResponse
public static 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)
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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 your request.
-
onResponse
public static RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.FormFields aQueryFields)
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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 your request.
-
onResponse
public static RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, Object aRequest)
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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.DELETE
request.- Returns:
- The
RestResponseResult
which is used by your request.
-
onResponse
public static RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest)
See alsoRestRequestClient.onResponse(HttpMethod, String, String, int, String, RequestHeaderFields, Object)
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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.DELETE
request.- Returns:
- The
RestResponseResult
which is used by your request.
-
onResponse
public static RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields)
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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 your request.
-
onResponse
public static RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath)
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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 your request.
-
onResponse
public static RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, Object aRequest)
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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.DELETE
request.- Returns:
- The
RestResponseResult
which is used by your request.
-
onResponse
public static 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)
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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.DELETE
request.- Returns:
- The
RestResponseResult
which is used by your request.
-
onResponse
public static RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields, org.refcodes.web.RequestHeaderFields aHeaderFields)
See alsoRestRequestClient.onResponse(HttpMethod, String, String, String, FormFields,RequestHeaderFields)
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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 your request.
-
onResponse
public static RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.FormFields aQueryFields)
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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 your request.
-
onResponse
public static RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, Object aRequest)
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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.DELETE
request.- Returns:
- The
RestResponseResult
which is used by your request.
-
onResponse
public static RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest)
See alsoRestRequestClient.onResponse(HttpMethod, String, String, String, RequestHeaderFields, Object)
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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.DELETE
request.- Returns:
- The
RestResponseResult
which is used by your request.
-
onResponse
public static RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, org.refcodes.web.RequestHeaderFields aHeaderFields)
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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 your request.
-
onResponse
public static RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath)
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aProtocol
- The protocolaHost
- 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 your request.
-
onResponse
public static RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.web.Url aUrl, Object aRequest)
- 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
public static RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.web.Url aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields, Object aRequest)
- 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
public static RestResponseResult onResponse(org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.web.Url aUrl, org.refcodes.web.RequestHeaderFields aHeaderFields)
- 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.
-
-