Package org.refcodes.rest
Class RestRequestClientSugar
- java.lang.Object
-
- org.refcodes.rest.RestRequestClientSugar
-
- Direct Known Subclasses:
RestGetClientSugar
public class RestRequestClientSugar extends java.lang.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.net.HttpMethod aHttpMethod, java.lang.String aUrl)
static RestRequestBuilder
buildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aUrl, java.lang.Object aRequest)
static RestRequestBuilder
buildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath)
static RestRequestBuilder
buildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, java.lang.Object aRequest)
static RestRequestBuilder
buildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields)
static RestRequestBuilder
buildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest)
static RestRequestBuilder
buildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest)
static RestRequestBuilder
buildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest)
static RestRequestBuilder
buildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath)
static RestRequestBuilder
buildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, java.lang.Object aRequest)
static RestRequestBuilder
buildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields)
static RestRequestBuilder
buildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest)
static RestRequestBuilder
buildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest)
static RestRequestBuilder
buildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest)
static RestRequestBuilder
buildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aLocator, org.refcodes.net.FormFields aQueryFields)
static RestRequestBuilder
buildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aLocator, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest)
static RestRequestBuilder
buildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aLocator, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest)
static RestRequestBuilder
buildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aUrl, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest)
static RestRequestBuilder
buildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath)
static RestRequestBuilder
buildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, java.lang.Object aRequest)
static RestRequestBuilder
buildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields)
static RestRequestBuilder
buildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest)
static RestRequestBuilder
buildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest)
static RestRequestBuilder
buildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest)
static RestRequestBuilder
buildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath)
static RestRequestBuilder
buildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, java.lang.Object aRequest)
static RestRequestBuilder
buildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields)
static RestRequestBuilder
buildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest)
static RestRequestBuilder
buildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest)
static RestRequestBuilder
buildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest)
static RestRequestBuilder
buildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.net.Url aUrl)
static RestRequestBuilder
buildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.net.Url aUrl, org.refcodes.net.RequestHeaderFields aHeaderFields)
static RestResponse
doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aUrl)
static RestResponse
doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aUrl, java.lang.Object aRequest)
static RestCallerBuilder
doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aUrl, java.lang.Object aRequest, RestResponseObserver aResponseObserver)
static RestResponse
doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath)
static RestResponse
doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, java.lang.Object aRequest)
static RestCallerBuilder
doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, java.lang.Object aRequest, RestResponseObserver aResponseObserver)
static RestResponse
doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields)
static RestResponse
doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest)
static RestCallerBuilder
doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver)
static RestResponse
doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields)
static RestResponse
doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest)
static RestCallerBuilder
doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver)
static RestCallerBuilder
doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, RestResponseObserver aResponseObserver)
static RestCallerBuilder
doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, RestResponseObserver aResponseObserver)
static RestResponse
doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields)
static RestResponse
doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest)
static RestCallerBuilder
doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver)
static RestCallerBuilder
doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, RestResponseObserver aResponseObserver)
static RestCallerBuilder
doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, RestResponseObserver aResponseObserver)
static RestResponse
doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath)
static RestResponse
doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, java.lang.Object aRequest)
static RestCallerBuilder
doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, java.lang.Object aRequest, RestResponseObserver aResponseObserver)
static RestResponse
doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields)
static RestResponse
doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest)
static RestCallerBuilder
doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver)
static RestResponse
doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields)
static RestResponse
doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest)
static RestCallerBuilder
doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver)
static RestCallerBuilder
doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, RestResponseObserver aResponseObserver)
static RestCallerBuilder
doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, RestResponseObserver aResponseObserver)
static RestResponse
doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields)
static RestResponse
doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest)
static RestCallerBuilder
doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver)
static RestCallerBuilder
doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, RestResponseObserver aResponseObserver)
static RestCallerBuilder
doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, RestResponseObserver aResponseObserver)
static RestResponse
doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aLocator, org.refcodes.net.FormFields aQueryFields)
static RestResponse
doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aLocator, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest)
static RestCallerBuilder
doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aLocator, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver)
static RestResponse
doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aLocator, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields)
static RestResponse
doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aLocator, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest)
static RestCallerBuilder
doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aLocator, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver)
static RestCallerBuilder
doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aLocator, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, RestResponseObserver aResponseObserver)
static RestCallerBuilder
doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aLocator, org.refcodes.net.FormFields aQueryFields, RestResponseObserver aResponseObserver)
static RestResponse
doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aUrl, org.refcodes.net.RequestHeaderFields aHeaderFields)
static RestResponse
doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aUrl, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest)
static RestCallerBuilder
doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aUrl, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver)
static RestCallerBuilder
doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aUrl, org.refcodes.net.RequestHeaderFields aHeaderFields, RestResponseObserver aResponseObserver)
static RestCallerBuilder
doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aUrl, RestResponseObserver aResponseObserver)
static RestResponse
doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath)
static RestResponse
doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, java.lang.Object aRequest)
static RestCallerBuilder
doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, java.lang.Object aRequest, RestResponseObserver aResponseObserver)
static RestResponse
doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields)
static RestResponse
doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest)
static RestCallerBuilder
doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver)
static RestResponse
doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields)
static RestResponse
doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest)
static RestCallerBuilder
doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver)
static RestCallerBuilder
doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, RestResponseObserver aResponseObserver)
static RestCallerBuilder
doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, RestResponseObserver aResponseObserver)
static RestResponse
doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields)
static RestResponse
doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest)
static RestCallerBuilder
doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver)
static RestCallerBuilder
doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, RestResponseObserver aResponseObserver)
static RestCallerBuilder
doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, RestResponseObserver aResponseObserver)
static RestResponse
doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath)
static RestResponse
doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, java.lang.Object aRequest)
static RestCallerBuilder
doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, java.lang.Object aRequest, RestResponseObserver aResponseObserver)
static RestResponse
doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields)
static RestResponse
doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest)
static RestCallerBuilder
doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver)
static RestResponse
doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields)
static RestResponse
doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest)
static RestCallerBuilder
doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver)
static RestCallerBuilder
doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, RestResponseObserver aResponseObserver)
static RestCallerBuilder
doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, RestResponseObserver aResponseObserver)
static RestResponse
doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields)
static RestResponse
doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest)
static RestCallerBuilder
doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver)
static RestCallerBuilder
doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, RestResponseObserver aResponseObserver)
static RestCallerBuilder
doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, RestResponseObserver aResponseObserver)
static RestResponse
doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.net.Url aUrl)
static RestCallerBuilder
doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.net.Url aUrl, java.lang.Object aRequest, RestResponseObserver aResponseObserver)
static RestCallerBuilder
doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.net.Url aUrl, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver)
static RestCallerBuilder
doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.net.Url aUrl, org.refcodes.net.RequestHeaderFields aHeaderFields, RestResponseObserver aResponseObserver)
static RestResponse
doRequest(RestRequest aRequest)
-
-
-
Method Detail
-
buildRequest
public static RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath) throws org.refcodes.net.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.net.HttpResponseException
- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields) throws org.refcodes.net.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.net.HttpResponseException
- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest) throws org.refcodes.net.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.net.HttpResponseException
- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest) throws org.refcodes.net.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.net.HttpResponseException
- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, java.lang.Object aRequest) throws org.refcodes.net.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.net.HttpResponseException
- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest) throws org.refcodes.net.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.net.HttpResponseException
- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath) throws org.refcodes.net.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.net.HttpResponseException
- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields) throws org.refcodes.net.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.net.HttpResponseException
- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest) throws org.refcodes.net.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.net.HttpResponseException
- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest) throws org.refcodes.net.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.net.HttpResponseException
- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, java.lang.Object aRequest) throws org.refcodes.net.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.net.HttpResponseException
- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest) throws org.refcodes.net.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.net.HttpResponseException
- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aUrl) throws org.refcodes.net.HttpResponseException, java.net.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.net.HttpResponseException
- thrown in case of some unexpected response.java.net.MalformedURLException
- in case the provided URL is considered being malformed.
-
buildRequest
public static RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aLocator, org.refcodes.net.FormFields aQueryFields) throws org.refcodes.net.HttpResponseException, java.net.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.net.HttpResponseException
- thrown in case of some unexpected response.java.net.MalformedURLException
- in case the provided URL is considered being malformed.
-
buildRequest
public static RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aLocator, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest) throws org.refcodes.net.HttpResponseException, java.net.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.net.HttpResponseException
- thrown in case of some unexpected response.java.net.MalformedURLException
- in case the provided URL is considered being malformed.
-
buildRequest
public static RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aLocator, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest) throws org.refcodes.net.HttpResponseException, java.net.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.net.HttpResponseException
- thrown in case of some unexpected response.java.net.MalformedURLException
- in case the provided URL is considered being malformed.
-
buildRequest
public static RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aUrl, java.lang.Object aRequest) throws org.refcodes.net.HttpResponseException, java.net.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.net.HttpResponseException
- thrown in case of some unexpected response.java.net.MalformedURLException
- in case the provided URL is considered being malformed.
-
buildRequest
public static RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aUrl, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest) throws org.refcodes.net.HttpResponseException, java.net.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.net.HttpResponseException
- thrown in case of some unexpected response.java.net.MalformedURLException
- in case the provided URL is considered being malformed.
-
buildRequest
public static RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath) throws org.refcodes.net.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.net.HttpResponseException
- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields) throws org.refcodes.net.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.net.HttpResponseException
- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest) throws org.refcodes.net.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.net.HttpResponseException
- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest) throws org.refcodes.net.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.net.HttpResponseException
- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, java.lang.Object aRequest) throws org.refcodes.net.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.net.HttpResponseException
- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest) throws org.refcodes.net.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.net.HttpResponseException
- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath) throws org.refcodes.net.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.net.HttpResponseException
- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields) throws org.refcodes.net.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.net.HttpResponseException
- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest) throws org.refcodes.net.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.net.HttpResponseException
- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest) throws org.refcodes.net.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.net.HttpResponseException
- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, java.lang.Object aRequest) throws org.refcodes.net.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.net.HttpResponseException
- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest) throws org.refcodes.net.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.net.HttpResponseException
- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.net.Url aUrl) throws org.refcodes.net.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.net.HttpResponseException
- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.net.Url aUrl, org.refcodes.net.RequestHeaderFields aHeaderFields) throws org.refcodes.net.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.net.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
public static RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath) throws org.refcodes.net.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.net.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
public static RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields) throws org.refcodes.net.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.net.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
public static RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest) throws org.refcodes.net.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.net.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
public static RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver)
- 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.aResponseObserver
- The listener processing a response targeted at thisRestCallerBuilder
.- Returns:
- The
RestCallerBuilder
which is used by your request.
-
doRequest
public static RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields) throws org.refcodes.net.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.net.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
public static RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest) throws org.refcodes.net.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.net.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
public static RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver)
- 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.aResponseObserver
- The listener processing a response targeted at thisRestCallerBuilder
.- Returns:
- The
RestCallerBuilder
which is used by your request.
-
doRequest
public static RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, RestResponseObserver aResponseObserver)
- 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.aResponseObserver
- The listener processing a response targeted at thisRestCallerBuilder
.- Returns:
- The
RestCallerBuilder
which is used by your request.
-
doRequest
public static RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, RestResponseObserver aResponseObserver)
- 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.aResponseObserver
- The listener processing a response targeted at thisRestCallerBuilder
.- Returns:
- The
RestCallerBuilder
which is used by your request.
-
doRequest
public static RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, java.lang.Object aRequest) throws org.refcodes.net.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.net.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
public static RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, java.lang.Object aRequest, RestResponseObserver aResponseObserver)
See alsoRestRequestClient.doRequest(HttpMethod, Scheme, String, int, String, Object, RestResponseObserver)
- 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.aResponseObserver
- The listener processing a response targeted at thisRestCallerBuilder
.- Returns:
- The
RestCallerBuilder
which is used by your request.
-
doRequest
public static RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields) throws org.refcodes.net.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.net.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
public static RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest) throws org.refcodes.net.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.net.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
public static RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver)
- 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.aResponseObserver
- The listener processing a response targeted at thisRestCallerBuilder
.- Returns:
- The
RestCallerBuilder
which is used by your request.
-
doRequest
public static RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, RestResponseObserver aResponseObserver)
- 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.aResponseObserver
- The listener processing a response targeted at thisRestCallerBuilder
.- Returns:
- The
RestCallerBuilder
which is used by your request.
-
doRequest
public static RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, RestResponseObserver aResponseObserver)
- 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.aResponseObserver
- The listener processing a response targeted at thisRestCallerBuilder
.- Returns:
- The
RestCallerBuilder
which is used by your request.
-
doRequest
public static RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath) throws org.refcodes.net.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.net.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
public static RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields) throws org.refcodes.net.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.net.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
public static RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest) throws org.refcodes.net.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.net.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
public static RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver)
- 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.aResponseObserver
- The listener processing a response targeted at thisRestCallerBuilder
.- Returns:
- The
RestCallerBuilder
which is used by your request.
-
doRequest
public static RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields) throws org.refcodes.net.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.net.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
public static RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest) throws org.refcodes.net.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.net.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
public static RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver)
- 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.aResponseObserver
- The listener processing a response targeted at thisRestCallerBuilder
.- Returns:
- The
RestCallerBuilder
which is used by your request.
-
doRequest
public static RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, RestResponseObserver aResponseObserver)
- 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.aResponseObserver
- The listener processing a response targeted at thisRestCallerBuilder
.- Returns:
- The
RestCallerBuilder
which is used by your request.
-
doRequest
public static RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, RestResponseObserver aResponseObserver)
See alsoRestRequestClient.doRequest(HttpMethod, Scheme, String, String, FormFields, RestResponseObserver)
- 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.aResponseObserver
- The listener processing a response targeted at thisRestCallerBuilder
.- Returns:
- The
RestCallerBuilder
which is used by your request.
-
doRequest
public static RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, java.lang.Object aRequest) throws org.refcodes.net.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.net.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
public static RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, java.lang.Object aRequest, RestResponseObserver aResponseObserver)
See alsoRestRequestClient.doRequest(HttpMethod, Scheme, String, String, Object, RestResponseObserver)
- 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.aResponseObserver
- The listener processing a response targeted at thisRestCallerBuilder
.- Returns:
- The
RestCallerBuilder
which is used by your request.
-
doRequest
public static RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields) throws org.refcodes.net.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.net.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
public static RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest) throws org.refcodes.net.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.net.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
public static RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver)
- 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.aResponseObserver
- The listener processing a response targeted at thisRestCallerBuilder
.- Returns:
- The
RestCallerBuilder
which is used by your request.
-
doRequest
public static RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, RestResponseObserver aResponseObserver)
- 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.aResponseObserver
- The listener processing a response targeted at thisRestCallerBuilder
.- Returns:
- The
RestCallerBuilder
which is used by your request.
-
doRequest
public static RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, RestResponseObserver aResponseObserver)
- 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.aResponseObserver
- The listener processing a response targeted at thisRestCallerBuilder
.- Returns:
- The
RestCallerBuilder
which is used by your request.
-
doRequest
public static RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aUrl) throws org.refcodes.net.HttpResponseException, java.net.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.net.HttpResponseException
- thrown in case of some unexpected response.java.net.MalformedURLException
- in case the provided URL is considered being malformed.
-
doRequest
public static RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aLocator, org.refcodes.net.FormFields aQueryFields) throws org.refcodes.net.HttpResponseException, java.net.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.net.HttpResponseException
- thrown in case of some unexpected response.java.net.MalformedURLException
- in case the provided URL is considered being malformed.
-
doRequest
public static RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aLocator, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest) throws org.refcodes.net.HttpResponseException, java.net.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.net.HttpResponseException
- thrown in case of some unexpected response.java.net.MalformedURLException
- in case the provided URL is considered being malformed.
-
doRequest
public static RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aLocator, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver) throws java.net.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.aResponseObserver
- The listener processing a response targeted at thisRestCallerBuilder
.- Returns:
- The
RestCallerBuilder
which is used by your request. - Throws:
java.net.MalformedURLException
- in case the provided URL is considered being malformed.
-
doRequest
public static RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aLocator, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields) throws org.refcodes.net.HttpResponseException, java.net.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.net.HttpResponseException
- thrown in case of some unexpected response.java.net.MalformedURLException
- in case the provided URL is considered being malformed.
-
doRequest
public static RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aLocator, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest) throws org.refcodes.net.HttpResponseException, java.net.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.net.HttpResponseException
- thrown in case of some unexpected response.java.net.MalformedURLException
- in case the provided URL is considered being malformed.
-
doRequest
public static RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aLocator, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver) throws java.net.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.aResponseObserver
- The listener processing a response targeted at thisRestCallerBuilder
.- Returns:
- The
RestCallerBuilder
which is used by your request. - Throws:
java.net.MalformedURLException
- in case the provided URL is considered being malformed.
-
doRequest
public static RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aLocator, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, RestResponseObserver aResponseObserver) throws java.net.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.aResponseObserver
- The listener processing a response targeted at thisRestCallerBuilder
.- Returns:
- The
RestCallerBuilder
which is used by your request. - Throws:
java.net.MalformedURLException
- in case the provided URL is considered being malformed.
-
doRequest
public static RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aLocator, org.refcodes.net.FormFields aQueryFields, RestResponseObserver aResponseObserver) throws java.net.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.aResponseObserver
- The listener processing a response targeted at thisRestCallerBuilder
.- Returns:
- The
RestCallerBuilder
which is used by your request. - Throws:
java.net.MalformedURLException
- in case the provided URL is considered being malformed.
-
doRequest
public static RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aUrl, java.lang.Object aRequest) throws org.refcodes.net.HttpResponseException, java.net.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.net.HttpResponseException
- thrown in case of some unexpected response.java.net.MalformedURLException
- in case the provided URL is considered being malformed.
-
doRequest
public static RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aUrl, java.lang.Object aRequest, RestResponseObserver aResponseObserver) throws java.net.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.aResponseObserver
- The listener processing a response targeted at thisRestCallerBuilder
.- Returns:
- The
RestCallerBuilder
which is used by your request. - Throws:
java.net.MalformedURLException
- in case the provided URL is considered being malformed.
-
doRequest
public static RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aUrl, org.refcodes.net.RequestHeaderFields aHeaderFields) throws org.refcodes.net.HttpResponseException, java.net.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.net.HttpResponseException
- thrown in case of some unexpected response.java.net.MalformedURLException
- in case the provided URL is considered being malformed.
-
doRequest
public static RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aUrl, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest) throws org.refcodes.net.HttpResponseException, java.net.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.net.HttpResponseException
- thrown in case of some unexpected response.java.net.MalformedURLException
- in case the provided URL is considered being malformed.
-
doRequest
public static RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aUrl, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver) throws java.net.MalformedURLException
See alsoRestRequestClient.doRequest(HttpMethod, String, RequestHeaderFields, Object, RestResponseObserver)
*- 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.aResponseObserver
- The listener processing a response targeted at thisRestCallerBuilder
.- Returns:
- The
RestCallerBuilder
which is used by your request. - Throws:
java.net.MalformedURLException
- in case the provided URL is considered being malformed.
-
doRequest
public static RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aUrl, org.refcodes.net.RequestHeaderFields aHeaderFields, RestResponseObserver aResponseObserver) throws java.net.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.aResponseObserver
- The listener processing a response targeted at thisRestCallerBuilder
.- Returns:
- The
RestCallerBuilder
which is used by your request. - Throws:
java.net.MalformedURLException
- in case the provided URL is considered being malformed.
-
doRequest
public static RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aUrl, RestResponseObserver aResponseObserver) throws java.net.MalformedURLException
- Parameters:
aHttpMethod
- The HTTP-Method for the request.aUrl
- The targeted URL locating the addressed resource.aResponseObserver
- The listener processing a response targeted at thisRestCallerBuilder
.- Returns:
- The
RestCallerBuilder
which is used by your request. - Throws:
java.net.MalformedURLException
- in case the provided URL is considered being malformed.
-
doRequest
public static RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath) throws org.refcodes.net.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.net.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
public static RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields) throws org.refcodes.net.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.net.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
public static RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest) throws org.refcodes.net.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.net.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
public static RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver)
- 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.aResponseObserver
- The listener processing a response targeted at thisRestCallerBuilder
.- Returns:
- The
RestCallerBuilder
which is used by your request.
-
doRequest
public static RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields) throws org.refcodes.net.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.net.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
public static RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest) throws org.refcodes.net.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.net.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
public static RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver)
- 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.aResponseObserver
- The listener processing a response targeted at thisRestCallerBuilder
.- Returns:
- The
RestCallerBuilder
which is used by your request.
-
doRequest
public static RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, RestResponseObserver aResponseObserver)
- 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.aResponseObserver
- The listener processing a response targeted at thisRestCallerBuilder
.- Returns:
- The
RestCallerBuilder
which is used by your request.
-
doRequest
public static RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, RestResponseObserver aResponseObserver)
- 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.aResponseObserver
- The listener processing a response targeted at thisRestCallerBuilder
.- Returns:
- The
RestCallerBuilder
which is used by your request.
-
doRequest
public static RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, java.lang.Object aRequest) throws org.refcodes.net.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.net.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
public static RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, java.lang.Object aRequest, RestResponseObserver aResponseObserver)
See alsoRestRequestClient.doRequest(HttpMethod, String, String, int, String, Object, RestResponseObserver)
- 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.aResponseObserver
- The listener processing a response targeted at thisRestCallerBuilder
.- Returns:
- The
RestCallerBuilder
which is used by your request.
-
doRequest
public static RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields) throws org.refcodes.net.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.net.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
public static RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest) throws org.refcodes.net.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.net.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
public static RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver)
- 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.aResponseObserver
- The listener processing a response targeted at thisRestCallerBuilder
.- Returns:
- The
RestCallerBuilder
which is used by your request.
-
doRequest
public static RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, RestResponseObserver aResponseObserver)
- 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.aResponseObserver
- The listener processing a response targeted at thisRestCallerBuilder
.- Returns:
- The
RestCallerBuilder
which is used by your request.
-
doRequest
public static RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, RestResponseObserver aResponseObserver)
- 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.aResponseObserver
- The listener processing a response targeted at thisRestCallerBuilder
.- Returns:
- The
RestCallerBuilder
which is used by your request.
-
doRequest
public static RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath) throws org.refcodes.net.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.net.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
public static RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields) throws org.refcodes.net.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.net.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
public static RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest) throws org.refcodes.net.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.net.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
public static RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver)
- 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.aResponseObserver
- The listener processing a response targeted at thisRestCallerBuilder
.- Returns:
- The
RestCallerBuilder
which is used by your request.
-
doRequest
public static RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields) throws org.refcodes.net.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.net.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
public static RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest) throws org.refcodes.net.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.net.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
public static RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver)
- 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.aResponseObserver
- The listener processing a response targeted at thisRestCallerBuilder
.- Returns:
- The
RestCallerBuilder
which is used by your request.
-
doRequest
public static RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, RestResponseObserver aResponseObserver)
- 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.aResponseObserver
- The listener processing a response targeted at thisRestCallerBuilder
.- Returns:
- The
RestCallerBuilder
which is used by your request.
-
doRequest
public static RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, RestResponseObserver aResponseObserver)
See alsoRestRequestClient.doRequest(HttpMethod, String, String, String, FormFields, RestResponseObserver)
- 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.aResponseObserver
- The listener processing a response targeted at thisRestCallerBuilder
.- Returns:
- The
RestCallerBuilder
which is used by your request.
-
doRequest
public static RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, java.lang.Object aRequest) throws org.refcodes.net.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.net.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
public static RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, java.lang.Object aRequest, RestResponseObserver aResponseObserver)
See alsoRestRequestClient.doRequest(HttpMethod, String, String, String, Object, RestResponseObserver)
- 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.aResponseObserver
- The listener processing a response targeted at thisRestCallerBuilder
.- Returns:
- The
RestCallerBuilder
which is used by your request.
-
doRequest
public static RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields) throws org.refcodes.net.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.net.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
public static RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest) throws org.refcodes.net.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.net.HttpResponseException
- thrown in case of some unexpected response.
-
doRequest
public static RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver)
- 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.aResponseObserver
- The listener processing a response targeted at thisRestCallerBuilder
.- Returns:
- The
RestCallerBuilder
which is used by your request.
-
doRequest
public static RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, RestResponseObserver aResponseObserver)
- 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.aResponseObserver
- The listener processing a response targeted at thisRestCallerBuilder
.- Returns:
- The
RestCallerBuilder
which is used by your request.
-
doRequest
public static RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, RestResponseObserver aResponseObserver)
- 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.aResponseObserver
- The listener processing a response targeted at thisRestCallerBuilder
.- Returns:
- The
RestCallerBuilder
which is used by your request.
-
doRequest
public static RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.net.Url aUrl) throws org.refcodes.net.HttpResponseException, java.net.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.net.HttpResponseException
- thrown in case of some unexpected response.java.net.MalformedURLException
- in case the provided URL is considered being malformed.
-
doRequest
public static RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.net.Url aUrl, java.lang.Object aRequest, RestResponseObserver aResponseObserver)
- 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.aResponseObserver
- The listener processing a response targeted at thisRestCallerBuilder
.- Returns:
- The
RestCallerBuilder
which is used by the request.
-
doRequest
public static RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.net.Url aUrl, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver)
See alsoRestRequestClient.doRequest(HttpMethod, Url, RequestHeaderFields, Object, RestResponseObserver)
- 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.aResponseObserver
- The listener processing a response targeted at thisRestCallerBuilder
.- Returns:
- The
RestCallerBuilder
which is used by the request.
-
doRequest
public static RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.net.Url aUrl, org.refcodes.net.RequestHeaderFields aHeaderFields, RestResponseObserver aResponseObserver)
- 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.aResponseObserver
- The listener processing a response targeted at thisRestCallerBuilder
.- Returns:
- The
RestCallerBuilder
which is used by the request.
-
doRequest
public static RestResponse doRequest(RestRequest aRequest) throws org.refcodes.net.HttpResponseException, java.net.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.net.HttpResponseException
- thrown in case of some unexpected response.java.net.MalformedURLException
- in case the provided URL is considered being malformed.
-
-