Class GetRestClientSugar
java.lang.Object
org.refcodes.rest.RestRequestClientSugar
org.refcodes.rest.GetRestClientSugar
- Direct Known Subclasses:
PostRestClientSugar
Helper class to get the syntactic sugar (from a maintenance point of view)
under control. You should actually statically import the
JdkHttpRestClientSugar.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RestRequestBuilderSee alsoGetRestClient.buildGet(String).static RestRequestBuilderSee alsoGetRestClient.buildGet(String, Object).static RestRequestBuilderstatic RestRequestBuilderstatic RestRequestBuilderbuildGet(String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields) static RestRequestBuilderbuildGet(String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields, Object aRequest) static RestRequestBuilderbuildGet(String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields) static RestRequestBuilderbuildGet(String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) static RestRequestBuilderbuildGet(String aProtocol, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields) static RestRequestBuilderbuildGet(String aProtocol, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields, Object aRequest) static RestRequestBuilderstatic RestRequestBuilderstatic RestRequestBuilderbuildGet(String aProtocol, String aHost, String aPath, FormFields aQueryFields) static RestRequestBuilderstatic RestRequestBuilderbuildGet(String aProtocol, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields) static RestRequestBuilderbuildGet(String aProtocol, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) static RestRequestBuilderbuildGet(String aProtocol, String aHost, String aPath, RequestHeaderFields aHeaderFields) static RestRequestBuilderbuildGet(String aProtocol, String aHost, String aPath, RequestHeaderFields aHeaderFields, Object aRequest) static RestRequestBuilderbuildGet(String aLocator, FormFields aQueryFields) static RestRequestBuilderbuildGet(String aLocator, FormFields aQueryFields, Object aRequest) static RestRequestBuilderbuildGet(String aLocator, FormFields aQueryFields, RequestHeaderFields aHeaderFields) static RestRequestBuilderbuildGet(String aLocator, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) static RestRequestBuilderbuildGet(String aUrl, RequestHeaderFields aHeaderFields) static RestRequestBuilderbuildGet(String aUrl, RequestHeaderFields aHeaderFields, Object aRequest) static RestRequestBuilderstatic RestRequestBuilderstatic RestRequestBuilderbuildGet(Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields) static RestRequestBuilderbuildGet(Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields, Object aRequest) static RestRequestBuilderbuildGet(Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields) static RestRequestBuilderbuildGet(Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) static RestRequestBuilderbuildGet(Scheme aScheme, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields) static RestRequestBuilderbuildGet(Scheme aScheme, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields, Object aRequest) static RestRequestBuilderstatic RestRequestBuilderstatic RestRequestBuilderbuildGet(Scheme aScheme, String aHost, String aPath, FormFields aQueryFields) static RestRequestBuilderstatic RestRequestBuilderbuildGet(Scheme aScheme, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields) static RestRequestBuilderbuildGet(Scheme aScheme, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) static RestRequestBuilderbuildGet(Scheme aScheme, String aHost, String aPath, RequestHeaderFields aHeaderFields) static RestRequestBuilderbuildGet(Scheme aScheme, String aHost, String aPath, RequestHeaderFields aHeaderFields, Object aRequest) static RestRequestBuilderSee alsoGetRestClient.buildGet(Url).static RestRequestBuilderbuildGet(Url aUrl, RequestHeaderFields aHeaderFields) static RestResponseSee alsoGetRestClient.doGet(String).static RestResponseSee alsoGetRestClient.doGet(String, Object).static RestResponsestatic RestResponsestatic RestResponsedoGet(String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields) static RestResponsedoGet(String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields, Object aRequest) static RestResponsedoGet(String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields) static RestResponsedoGet(String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) static RestResponsedoGet(String aProtocol, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields) static RestResponsedoGet(String aProtocol, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields, Object aRequest) static RestResponsestatic RestResponsestatic RestResponsedoGet(String aProtocol, String aHost, String aPath, FormFields aQueryFields) static RestResponsestatic RestResponsedoGet(String aProtocol, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields) static RestResponsedoGet(String aProtocol, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) static RestResponsedoGet(String aProtocol, String aHost, String aPath, RequestHeaderFields aHeaderFields) static RestResponsedoGet(String aProtocol, String aHost, String aPath, RequestHeaderFields aHeaderFields, Object aRequest) static RestResponsedoGet(String aLocator, FormFields aQueryFields) See alsoGetRestClient.doGet(String, FormFields).static RestResponsedoGet(String aLocator, FormFields aQueryFields, Object aRequest) static RestResponsedoGet(String aLocator, FormFields aQueryFields, RequestHeaderFields aHeaderFields) static RestResponsedoGet(String aLocator, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) static RestResponsedoGet(String aUrl, RequestHeaderFields aHeaderFields) static RestResponsedoGet(String aUrl, RequestHeaderFields aHeaderFields, Object aRequest) static RestResponsestatic RestResponsestatic RestResponsedoGet(Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields) static RestResponsedoGet(Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields, Object aRequest) static RestResponsedoGet(Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields) static RestResponsedoGet(Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) static RestResponsedoGet(Scheme aScheme, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields) static RestResponsedoGet(Scheme aScheme, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields, Object aRequest) static RestResponsestatic RestResponsestatic RestResponsedoGet(Scheme aScheme, String aHost, String aPath, FormFields aQueryFields) static RestResponsestatic RestResponsedoGet(Scheme aScheme, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields) static RestResponsedoGet(Scheme aScheme, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) static RestResponsedoGet(Scheme aScheme, String aHost, String aPath, RequestHeaderFields aHeaderFields) static RestResponsedoGet(Scheme aScheme, String aHost, String aPath, RequestHeaderFields aHeaderFields, Object aRequest) static RestResponseSee alsoGetRestClient.doGet(Url, Object).static RestResponseResultSee alsoGetRestClient.onGet(String).static RestResponseResultSee alsoGetRestClient.onGet(String, Object).static RestResponseHandleronGet(String aUrl, Object aRequest, RestResponseConsumer aResponseConsumer) static RestResponseResultstatic RestResponseResultstatic RestResponseHandleronGet(String aProtocol, String aHost, int aPort, String aPath, Object aRequest, RestResponseConsumer aResponseConsumer) static RestResponseHandleronGet(String aProtocol, String aHost, int aPort, String aPath, RestResponseConsumer aResponseConsumer) static RestResponseResultonGet(String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields) static RestResponseResultonGet(String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields, Object aRequest) static RestResponseHandleronGet(String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields, Object aRequest, RestResponseConsumer aResponseConsumer) static RestResponseHandleronGet(String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields, RestResponseConsumer aResponseConsumer) static RestResponseResultonGet(String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields) static RestResponseResultonGet(String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) static RestResponseHandleronGet(String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) static RestResponseHandleronGet(String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) static RestResponseResultonGet(String aProtocol, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields) static RestResponseResultonGet(String aProtocol, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields, Object aRequest) static RestResponseHandleronGet(String aProtocol, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) static RestResponseHandleronGet(String aProtocol, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) static RestResponseResultSee alsoGetRestClient.onGet(String, String, String)}.static RestResponseResultstatic RestResponseHandleronGet(String aProtocol, String aHost, String aPath, Object aRequest, RestResponseConsumer aResponseConsumer) static RestResponseHandleronGet(String aProtocol, String aHost, String aPath, RestResponseConsumer aResponseConsumer) static RestResponseResultonGet(String aProtocol, String aHost, String aPath, FormFields aQueryFields) static RestResponseResultstatic RestResponseHandleronGet(String aProtocol, String aHost, String aPath, FormFields aQueryFields, Object aRequest, RestResponseConsumer aResponseConsumer) static RestResponseHandleronGet(String aProtocol, String aHost, String aPath, FormFields aQueryFields, RestResponseConsumer aResponseConsumer) static RestResponseResultonGet(String aProtocol, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields) static RestResponseResultonGet(String aProtocol, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) static RestResponseHandleronGet(String aProtocol, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) static RestResponseHandleronGet(String aProtocol, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) static RestResponseResultonGet(String aProtocol, String aHost, String aPath, RequestHeaderFields aHeaderFields) static RestResponseResultonGet(String aProtocol, String aHost, String aPath, RequestHeaderFields aHeaderFields, Object aRequest) static RestResponseHandleronGet(String aProtocol, String aHost, String aPath, RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) static RestResponseHandleronGet(String aProtocol, String aHost, String aPath, RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) static RestResponseHandleronGet(String aUrl, RestResponseConsumer aResponseConsumer) static RestResponseResultonGet(String aLocator, FormFields aQueryFields) See alsoGetRestClient.onGet(String, FormFields).static RestResponseResultonGet(String aLocator, FormFields aQueryFields, Object aRequest) static RestResponseHandleronGet(String aLocator, FormFields aQueryFields, Object aRequest, RestResponseConsumer aResponseConsumer) static RestResponseHandleronGet(String aLocator, FormFields aQueryFields, RestResponseConsumer aResponseConsumer) static RestResponseResultonGet(String aLocator, FormFields aQueryFields, RequestHeaderFields aHeaderFields) static RestResponseResultonGet(String aLocator, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) static RestResponseHandleronGet(String aLocator, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) static RestResponseHandleronGet(String aLocator, FormFields aQueryFields, RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) static RestResponseResultonGet(String aUrl, RequestHeaderFields aHeaderFields) static RestResponseResultonGet(String aUrl, RequestHeaderFields aHeaderFields, Object aRequest) static RestResponseHandleronGet(String aUrl, RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) static RestResponseHandleronGet(String aUrl, RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) static RestResponseResultstatic RestResponseResultstatic RestResponseHandleronGet(Scheme aScheme, String aHost, int aPort, String aPath, Object aRequest, RestResponseConsumer aResponseConsumer) static RestResponseHandleronGet(Scheme aScheme, String aHost, int aPort, String aPath, RestResponseConsumer aResponseConsumer) static RestResponseResultonGet(Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields) static RestResponseResultonGet(Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields, Object aRequest) static RestResponseHandleronGet(Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields, Object aRequest, RestResponseConsumer aResponseConsumer) static RestResponseHandleronGet(Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields, RestResponseConsumer aResponseConsumer) static RestResponseResultonGet(Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields) static RestResponseResultonGet(Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) static RestResponseHandleronGet(Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) static RestResponseHandleronGet(Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) static RestResponseResultonGet(Scheme aScheme, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields) static RestResponseResultonGet(Scheme aScheme, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields, Object aRequest) static RestResponseHandleronGet(Scheme aScheme, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) static RestResponseHandleronGet(Scheme aScheme, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) static RestResponseResultstatic RestResponseResultstatic RestResponseHandleronGet(Scheme aScheme, String aHost, String aPath, Object aRequest, RestResponseConsumer aResponseConsumer) static RestResponseHandleronGet(Scheme aScheme, String aHost, String aPath, RestResponseConsumer aResponseConsumer) static RestResponseResultonGet(Scheme aScheme, String aHost, String aPath, FormFields aQueryFields) static RestResponseResultstatic RestResponseHandleronGet(Scheme aScheme, String aHost, String aPath, FormFields aQueryFields, Object aRequest, RestResponseConsumer aResponseConsumer) static RestResponseHandleronGet(Scheme aScheme, String aHost, String aPath, FormFields aQueryFields, RestResponseConsumer aResponseConsumer) static RestResponseResultonGet(Scheme aScheme, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields) static RestResponseResultonGet(Scheme aScheme, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) static RestResponseHandleronGet(Scheme aScheme, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) static RestResponseHandleronGet(Scheme aScheme, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) static RestResponseResultonGet(Scheme aScheme, String aHost, String aPath, RequestHeaderFields aHeaderFields) static RestResponseResultonGet(Scheme aScheme, String aHost, String aPath, RequestHeaderFields aHeaderFields, Object aRequest) static RestResponseHandleronGet(Scheme aScheme, String aHost, String aPath, RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) static RestResponseHandleronGet(Scheme aScheme, String aHost, String aPath, RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) static RestResponseResultSee alsoGetRestClient.onGet(Url, Object).static RestResponseHandleronGet(Url aUrl, Object aRequest, RestResponseConsumer aResponseConsumer) static RestResponseResultonGet(Url aUrl, RequestHeaderFields aHeaderFields) static RestResponseResultonGet(Url aUrl, RequestHeaderFields aHeaderFields, Object aRequest) static RestResponseHandleronGet(Url aUrl, RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) static RestResponseHandleronGet(Url aUrl, RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) Methods inherited from class RestRequestClientSugar
buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse
-
Constructor Details
-
GetRestClientSugar
public GetRestClientSugar()
-
-
Method Details
-
buildGet
public static RestRequestBuilder buildGet(Scheme aScheme, String aHost, int aPort, String aPath) throws HttpResponseException - Parameters:
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
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
buildGet
public static RestRequestBuilder buildGet(Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields) throws HttpResponseException - Parameters:
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
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
buildGet
public static RestRequestBuilder buildGet(Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields, Object aRequest) throws HttpResponseException - Parameters:
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.GETrequest.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
buildGet
public static RestRequestBuilder buildGet(Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields) throws HttpResponseException - Parameters:
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
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
buildGet
public static RestRequestBuilder buildGet(Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) throws HttpResponseException See alsoGetRestClient.buildGet(Scheme, String, int, String, FormFields, RequestHeaderFields, Object).- Parameters:
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.GETrequest.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
buildGet
public static RestRequestBuilder buildGet(Scheme aScheme, String aHost, int aPort, String aPath, Object aRequest) throws HttpResponseException - Parameters:
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.GETrequest.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
buildGet
public static RestRequestBuilder buildGet(Scheme aScheme, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields) throws HttpResponseException - Parameters:
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
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
buildGet
public static RestRequestBuilder buildGet(Scheme aScheme, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields, Object aRequest) throws HttpResponseException See alsoGetRestClient.buildGet(Scheme, String, int, String, FormFields, RequestHeaderFields, Object).- Parameters:
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.GETrequest.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
buildGet
public static RestRequestBuilder buildGet(Scheme aScheme, String aHost, String aPath) throws HttpResponseException - Parameters:
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
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
buildGet
public static RestRequestBuilder buildGet(Scheme aScheme, String aHost, String aPath, FormFields aQueryFields) throws HttpResponseException - Parameters:
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
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
buildGet
public static RestRequestBuilder buildGet(Scheme aScheme, String aHost, String aPath, FormFields aQueryFields, Object aRequest) throws HttpResponseException - Parameters:
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.GETrequest.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
buildGet
public static RestRequestBuilder buildGet(Scheme aScheme, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields) throws HttpResponseException - Parameters:
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
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
buildGet
public static RestRequestBuilder buildGet(Scheme aScheme, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) throws HttpResponseException - Parameters:
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.GETrequest.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
buildGet
public static RestRequestBuilder buildGet(Scheme aScheme, String aHost, String aPath, Object aRequest) throws HttpResponseException - Parameters:
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.GETrequest.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
buildGet
public static RestRequestBuilder buildGet(Scheme aScheme, String aHost, String aPath, RequestHeaderFields aHeaderFields) throws HttpResponseException - Parameters:
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
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
buildGet
public static RestRequestBuilder buildGet(Scheme aScheme, String aHost, String aPath, RequestHeaderFields aHeaderFields, Object aRequest) throws HttpResponseException - Parameters:
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.GETrequest.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
buildGet
public static RestRequestBuilder buildGet(String aUrl) throws HttpResponseException, MalformedURLException See alsoGetRestClient.buildGet(String).- Parameters:
aUrl- The targeted URL locating the addressed resource.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.MalformedURLException- in case the provided URL is considered being malformed.
-
buildGet
public static RestRequestBuilder buildGet(String aLocator, FormFields aQueryFields) throws HttpResponseException, MalformedURLException - Parameters:
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
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.MalformedURLException- in case the provided URL is considered being malformed.
-
buildGet
public static RestRequestBuilder buildGet(String aLocator, FormFields aQueryFields, Object aRequest) throws HttpResponseException, MalformedURLException - Parameters:
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.GETrequest.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.MalformedURLException- in case the provided URL is considered being malformed.
-
buildGet
public static RestRequestBuilder buildGet(String aLocator, FormFields aQueryFields, RequestHeaderFields aHeaderFields) throws HttpResponseException, MalformedURLException - Parameters:
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
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.MalformedURLException- in case the provided URL is considered being malformed.
-
buildGet
public static RestRequestBuilder buildGet(String aLocator, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) throws HttpResponseException, MalformedURLException - Parameters:
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.GETrequest.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.MalformedURLException- in case the provided URL is considered being malformed.
-
buildGet
public static RestRequestBuilder buildGet(String aUrl, Object aRequest) throws HttpResponseException, MalformedURLException See alsoGetRestClient.buildGet(String, Object).- Parameters:
aUrl- The targeted URL locating the addressed resource.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.GETrequest.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.MalformedURLException- in case the provided URL is considered being malformed.
-
buildGet
public static RestRequestBuilder buildGet(String aUrl, RequestHeaderFields aHeaderFields) throws HttpResponseException, MalformedURLException - Parameters:
aUrl- The targeted URL locating the addressed resource.aHeaderFields- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.MalformedURLException- in case the provided URL is considered being malformed.
-
buildGet
public static RestRequestBuilder buildGet(String aUrl, RequestHeaderFields aHeaderFields, Object aRequest) throws HttpResponseException, MalformedURLException - Parameters:
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.GETrequest.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.MalformedURLException- in case the provided URL is considered being malformed.
-
buildGet
public static RestRequestBuilder buildGet(String aProtocol, String aHost, int aPort, String aPath) throws HttpResponseException - Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".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
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
buildGet
public static RestRequestBuilder buildGet(String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields) throws HttpResponseException - Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".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
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
buildGet
public static RestRequestBuilder buildGet(String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields, Object aRequest) throws HttpResponseException - Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".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.GETrequest.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
buildGet
public static RestRequestBuilder buildGet(String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields) throws HttpResponseException - Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".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
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
buildGet
public static RestRequestBuilder buildGet(String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) throws HttpResponseException See alsoGetRestClient.buildGet(String, String, int, String, FormFields, RequestHeaderFields, Object).- Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".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.GETrequest.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
buildGet
public static RestRequestBuilder buildGet(String aProtocol, String aHost, int aPort, String aPath, Object aRequest) throws HttpResponseException - Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".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.GETrequest.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
buildGet
public static RestRequestBuilder buildGet(String aProtocol, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields) throws HttpResponseException - Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".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
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
buildGet
public static RestRequestBuilder buildGet(String aProtocol, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields, Object aRequest) throws HttpResponseException See alsoGetRestClient.buildGet(String, String, int, String, FormFields, RequestHeaderFields, Object).- Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".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.GETrequest.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
buildGet
public static RestRequestBuilder buildGet(String aProtocol, String aHost, String aPath) throws HttpResponseException - Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".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
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
buildGet
public static RestRequestBuilder buildGet(String aProtocol, String aHost, String aPath, FormFields aQueryFields) throws HttpResponseException - Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".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
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
buildGet
public static RestRequestBuilder buildGet(String aProtocol, String aHost, String aPath, FormFields aQueryFields, Object aRequest) throws HttpResponseException - Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".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.GETrequest.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
buildGet
public static RestRequestBuilder buildGet(String aProtocol, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields) throws HttpResponseException - Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".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
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
buildGet
public static RestRequestBuilder buildGet(String aProtocol, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) throws HttpResponseException - Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".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.GETrequest.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
buildGet
public static RestRequestBuilder buildGet(String aProtocol, String aHost, String aPath, Object aRequest) throws HttpResponseException - Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".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.GETrequest.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
buildGet
public static RestRequestBuilder buildGet(String aProtocol, String aHost, String aPath, RequestHeaderFields aHeaderFields) throws HttpResponseException - Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".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
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
buildGet
public static RestRequestBuilder buildGet(String aProtocol, String aHost, String aPath, RequestHeaderFields aHeaderFields, Object aRequest) throws HttpResponseException - Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".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.GETrequest.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
buildGet
See alsoGetRestClient.buildGet(Url).- Parameters:
aUrl- TheUrlfrom which to take the URL specific data.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
buildGet
public static RestRequestBuilder buildGet(Url aUrl, RequestHeaderFields aHeaderFields) throws HttpResponseException - Parameters:
aUrl- TheUrlfrom which to take the URL specific data.aHeaderFields- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doGet
public static RestResponse doGet(Scheme aScheme, String aHost, int aPort, String aPath) throws HttpResponseException - Parameters:
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
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doGet
public static RestResponse doGet(Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields) throws HttpResponseException - Parameters:
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
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doGet
public static RestResponse doGet(Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields, Object aRequest) throws HttpResponseException - Parameters:
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.GETrequest.- Returns:
- The
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doGet
public static RestResponse doGet(Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields) throws HttpResponseException - Parameters:
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
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doGet
public static RestResponse doGet(Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) throws HttpResponseException - Parameters:
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.GETrequest.- Returns:
- The
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doGet
public static RestResponse doGet(Scheme aScheme, String aHost, int aPort, String aPath, Object aRequest) throws HttpResponseException - Parameters:
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.GETrequest.- Returns:
- The
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doGet
public static RestResponse doGet(Scheme aScheme, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields) throws HttpResponseException - Parameters:
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
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doGet
public static RestResponse doGet(Scheme aScheme, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields, Object aRequest) throws HttpResponseException - Parameters:
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.GETrequest.- Returns:
- The
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doGet
public static RestResponse doGet(Scheme aScheme, String aHost, String aPath) throws HttpResponseException - Parameters:
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
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doGet
public static RestResponse doGet(Scheme aScheme, String aHost, String aPath, FormFields aQueryFields) throws HttpResponseException - Parameters:
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
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doGet
public static RestResponse doGet(Scheme aScheme, String aHost, String aPath, FormFields aQueryFields, Object aRequest) throws HttpResponseException - Parameters:
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.GETrequest.- Returns:
- The
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doGet
public static RestResponse doGet(Scheme aScheme, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields) throws HttpResponseException - Parameters:
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
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doGet
public static RestResponse doGet(Scheme aScheme, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) throws HttpResponseException - Parameters:
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.GETrequest.- Returns:
- The
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doGet
public static RestResponse doGet(Scheme aScheme, String aHost, String aPath, Object aRequest) throws HttpResponseException - Parameters:
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.GETrequest.- Returns:
- The
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doGet
public static RestResponse doGet(Scheme aScheme, String aHost, String aPath, RequestHeaderFields aHeaderFields) throws HttpResponseException - Parameters:
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
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doGet
public static RestResponse doGet(Scheme aScheme, String aHost, String aPath, RequestHeaderFields aHeaderFields, Object aRequest) throws HttpResponseException - Parameters:
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.GETrequest.- Returns:
- The
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doGet
See alsoGetRestClient.doGet(String).- Parameters:
aUrl- The targeted URL locating the addressed resource.- Returns:
- The
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.MalformedURLException- in case the provided URL is considered being malformed.
-
doGet
public static RestResponse doGet(String aLocator, FormFields aQueryFields) throws HttpResponseException, MalformedURLException See alsoGetRestClient.doGet(String, FormFields).- Parameters:
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
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.MalformedURLException- in case the provided URL is considered being malformed.
-
doGet
public static RestResponse doGet(String aLocator, FormFields aQueryFields, Object aRequest) throws HttpResponseException, MalformedURLException - Parameters:
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.GETrequest.- Returns:
- The
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.MalformedURLException- in case the provided URL is considered being malformed.
-
doGet
public static RestResponse doGet(String aLocator, FormFields aQueryFields, RequestHeaderFields aHeaderFields) throws HttpResponseException, MalformedURLException - Parameters:
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
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.MalformedURLException- in case the provided URL is considered being malformed.
-
doGet
public static RestResponse doGet(String aLocator, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) throws HttpResponseException, MalformedURLException - Parameters:
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.GETrequest.- Returns:
- The
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.MalformedURLException- in case the provided URL is considered being malformed.
-
doGet
public static RestResponse doGet(String aUrl, Object aRequest) throws HttpResponseException, MalformedURLException See alsoGetRestClient.doGet(String, Object).- Parameters:
aUrl- The targeted URL locating the addressed resource.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.GETrequest.- Returns:
- The
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.MalformedURLException- in case the provided URL is considered being malformed.
-
doGet
public static RestResponse doGet(String aUrl, RequestHeaderFields aHeaderFields) throws HttpResponseException, MalformedURLException - Parameters:
aUrl- The targeted URL locating the addressed resource.aHeaderFields- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.MalformedURLException- in case the provided URL is considered being malformed.
-
doGet
public static RestResponse doGet(String aUrl, RequestHeaderFields aHeaderFields, Object aRequest) throws HttpResponseException, MalformedURLException - Parameters:
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.GETrequest.- Returns:
- The
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.MalformedURLException- in case the provided URL is considered being malformed.
-
doGet
public static RestResponse doGet(String aProtocol, String aHost, int aPort, String aPath) throws HttpResponseException - Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".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
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doGet
public static RestResponse doGet(String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields) throws HttpResponseException - Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".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
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doGet
public static RestResponse doGet(String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields, Object aRequest) throws HttpResponseException - Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".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.GETrequest.- Returns:
- The
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doGet
public static RestResponse doGet(String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields) throws HttpResponseException - Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".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
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doGet
public static RestResponse doGet(String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) throws HttpResponseException - Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".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.GETrequest.- Returns:
- The
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doGet
public static RestResponse doGet(String aProtocol, String aHost, int aPort, String aPath, Object aRequest) throws HttpResponseException - Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".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.GETrequest.- Returns:
- The
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doGet
public static RestResponse doGet(String aProtocol, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields) throws HttpResponseException - Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".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
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doGet
public static RestResponse doGet(String aProtocol, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields, Object aRequest) throws HttpResponseException - Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".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.GETrequest.- Returns:
- The
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doGet
public static RestResponse doGet(String aProtocol, String aHost, String aPath) throws HttpResponseException - Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".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
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doGet
public static RestResponse doGet(String aProtocol, String aHost, String aPath, FormFields aQueryFields) throws HttpResponseException - Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".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
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doGet
public static RestResponse doGet(String aProtocol, String aHost, String aPath, FormFields aQueryFields, Object aRequest) throws HttpResponseException - Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".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.GETrequest.- Returns:
- The
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doGet
public static RestResponse doGet(String aProtocol, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields) throws HttpResponseException - Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".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
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doGet
public static RestResponse doGet(String aProtocol, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) throws HttpResponseException - Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".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.GETrequest.- Returns:
- The
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doGet
public static RestResponse doGet(String aProtocol, String aHost, String aPath, Object aRequest) throws HttpResponseException - Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".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.GETrequest.- Returns:
- The
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doGet
public static RestResponse doGet(String aProtocol, String aHost, String aPath, RequestHeaderFields aHeaderFields) throws HttpResponseException - Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".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
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doGet
public static RestResponse doGet(String aProtocol, String aHost, String aPath, RequestHeaderFields aHeaderFields, Object aRequest) throws HttpResponseException - Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".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.GETrequest.- Returns:
- The
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doGet
public static RestResponse doGet(Url aUrl, Object aRequest) throws HttpResponseException, MalformedURLException See alsoGetRestClient.doGet(Url, Object).- Parameters:
aUrl- TheUrlfrom which to take the URL specific data.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.GETrequest.- Returns:
- The
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.MalformedURLException- in case the provided URL is considered being malformed.
-
onGet
public static RestResponseHandler onGet(Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields, Object aRequest, RestResponseConsumer aResponseConsumer) See alsoGetRestClient.onGet(Scheme, String, int, String, FormFields, Object, RestResponseConsumer).- Parameters:
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.GETrequest.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onGet
public static RestResponseHandler onGet(Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) - Parameters:
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.GETrequest.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onGet
public static RestResponseHandler onGet(Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) - Parameters:
aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onGet
public static RestResponseHandler onGet(Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields, RestResponseConsumer aResponseConsumer) - Parameters:
aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onGet
public static RestResponseHandler onGet(Scheme aScheme, String aHost, int aPort, String aPath, Object aRequest, RestResponseConsumer aResponseConsumer) - Parameters:
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.GETrequest.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onGet
public static RestResponseHandler onGet(Scheme aScheme, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) See alsoGetRestClient.onGet(Scheme, String, int, String, RequestHeaderFields, Object, RestResponseConsumer).- Parameters:
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.GETrequest.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onGet
public static RestResponseHandler onGet(Scheme aScheme, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) See alsoGetRestClient.onGet(Scheme, String, int, String, RequestHeaderFields, RestResponseConsumer).- Parameters:
aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aHeaderFields- The HTTP-Header's fields to be used for the request.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onGet
public static RestResponseHandler onGet(Scheme aScheme, String aHost, int aPort, String aPath, RestResponseConsumer aResponseConsumer) - Parameters:
aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onGet
public static RestResponseHandler onGet(Scheme aScheme, String aHost, String aPath, FormFields aQueryFields, Object aRequest, RestResponseConsumer aResponseConsumer) - Parameters:
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.GETrequest.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onGet
public static RestResponseHandler onGet(Scheme aScheme, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) - Parameters:
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.GETrequest.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onGet
public static RestResponseHandler onGet(Scheme aScheme, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) See alsoGetRestClient.onGet(Scheme, String, String, FormFields, RequestHeaderFields, RestResponseConsumer).- Parameters:
aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onGet
public static RestResponseHandler onGet(Scheme aScheme, String aHost, String aPath, FormFields aQueryFields, RestResponseConsumer aResponseConsumer) - Parameters:
aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onGet
public static RestResponseHandler onGet(Scheme aScheme, String aHost, String aPath, Object aRequest, RestResponseConsumer aResponseConsumer) - Parameters:
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.GETrequest.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onGet
public static RestResponseHandler onGet(Scheme aScheme, String aHost, String aPath, RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) See alsoGetRestClient.onGet(Scheme, String, String, RequestHeaderFields, Object, RestResponseConsumer).- Parameters:
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.GETrequest.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onGet
public static RestResponseHandler onGet(Scheme aScheme, String aHost, String aPath, RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) - Parameters:
aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aHeaderFields- The HTTP-Header's fields to be used for the request.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onGet
public static RestResponseHandler onGet(Scheme aScheme, String aHost, String aPath, RestResponseConsumer aResponseConsumer) - Parameters:
aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onGet
public static RestResponseHandler onGet(String aLocator, FormFields aQueryFields, Object aRequest, RestResponseConsumer aResponseConsumer) throws MalformedURLException - Parameters:
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.GETrequest.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request. - Throws:
MalformedURLException- in case the provided URL is considered being malformed.
-
onGet
public static RestResponseHandler onGet(String aLocator, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) throws MalformedURLException See alsoGetRestClient.onGet(String, FormFields, RequestHeaderFields, Object, RestResponseConsumer).- Parameters:
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.GETrequest.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request. - Throws:
MalformedURLException- in case the provided URL is considered being malformed.
-
onGet
public static RestResponseHandler onGet(String aLocator, FormFields aQueryFields, RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) throws MalformedURLException - Parameters:
aLocator- The targeted locator, usually the part of the URL till (excluding) the query fields and the fragment.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request. - Throws:
MalformedURLException- in case the provided URL is considered being malformed.
-
onGet
public static RestResponseHandler onGet(String aLocator, FormFields aQueryFields, RestResponseConsumer aResponseConsumer) throws MalformedURLException - Parameters:
aLocator- The targeted locator, usually the part of the URL till (excluding) the query fields and the fragment.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request. - Throws:
MalformedURLException- in case the provided URL is considered being malformed.
-
onGet
public static RestResponseHandler onGet(String aUrl, Object aRequest, RestResponseConsumer aResponseConsumer) throws MalformedURLException - Parameters:
aUrl- The targeted URL locating the addressed resource.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.GETrequest.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request. - Throws:
MalformedURLException- in case the provided URL is considered being malformed.
-
onGet
public static RestResponseHandler onGet(String aUrl, RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) throws MalformedURLException - Parameters:
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.GETrequest.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request. - Throws:
MalformedURLException- in case the provided URL is considered being malformed.
-
onGet
public static RestResponseHandler onGet(String aUrl, RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) throws MalformedURLException - Parameters:
aUrl- The targeted URL locating the addressed resource.aHeaderFields- The HTTP-Header's fields to be used for the request.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request. - Throws:
MalformedURLException- in case the provided URL is considered being malformed.
-
onGet
public static RestResponseHandler onGet(String aUrl, RestResponseConsumer aResponseConsumer) throws MalformedURLException - Parameters:
aUrl- The targeted URL locating the addressed resource.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request. - Throws:
MalformedURLException- in case the provided URL is considered being malformed.
-
onGet
public static RestResponseHandler onGet(String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields, Object aRequest, RestResponseConsumer aResponseConsumer) See alsoGetRestClient.onGet(String, String, int, String, FormFields, Object, RestResponseConsumer).- Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".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.GETrequest.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onGet
public static RestResponseHandler onGet(String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) - Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".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.GETrequest.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onGet
public static RestResponseHandler onGet(String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) - Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onGet
public static RestResponseHandler onGet(String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields, RestResponseConsumer aResponseConsumer) - Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onGet
public static RestResponseHandler onGet(String aProtocol, String aHost, int aPort, String aPath, Object aRequest, RestResponseConsumer aResponseConsumer) - Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".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.GETrequest.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onGet
public static RestResponseHandler onGet(String aProtocol, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) See alsoGetRestClient.onGet(String, String, int, String, RequestHeaderFields, Object, RestResponseConsumer).- Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".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.GETrequest.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onGet
public static RestResponseHandler onGet(String aProtocol, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) See alsoGetRestClient.onGet(String, String, int, String, RequestHeaderFields, RestResponseConsumer).- Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aHeaderFields- The HTTP-Header's fields to be used for the request.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onGet
public static RestResponseHandler onGet(String aProtocol, String aHost, int aPort, String aPath, RestResponseConsumer aResponseConsumer) - Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onGet
public static RestResponseHandler onGet(String aProtocol, String aHost, String aPath, FormFields aQueryFields, Object aRequest, RestResponseConsumer aResponseConsumer) - Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".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.GETrequest.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onGet
public static RestResponseHandler onGet(String aProtocol, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) - Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".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.GETrequest.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onGet
public static RestResponseHandler onGet(String aProtocol, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) See alsoGetRestClient.onGet(String, String, String, FormFields, RequestHeaderFields, RestResponseConsumer).- Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onGet
public static RestResponseHandler onGet(String aProtocol, String aHost, String aPath, FormFields aQueryFields, RestResponseConsumer aResponseConsumer) - Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onGet
public static RestResponseHandler onGet(String aProtocol, String aHost, String aPath, Object aRequest, RestResponseConsumer aResponseConsumer) - Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".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.GETrequest.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onGet
public static RestResponseHandler onGet(String aProtocol, String aHost, String aPath, RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) See alsoGetRestClient.onGet(String, String, String, RequestHeaderFields, Object, RestResponseConsumer).- Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".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.GETrequest.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onGet
public static RestResponseHandler onGet(String aProtocol, String aHost, String aPath, RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) - Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aHeaderFields- The HTTP-Header's fields to be used for the request.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onGet
public static RestResponseHandler onGet(String aProtocol, String aHost, String aPath, RestResponseConsumer aResponseConsumer) - Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onGet
public static RestResponseHandler onGet(Url aUrl, Object aRequest, RestResponseConsumer aResponseConsumer) - Parameters:
aUrl- TheUrlfrom which to take the URL specific data.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.GETrequest.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onGet
public static RestResponseHandler onGet(Url aUrl, RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) See alsoGetRestClient.onGet(String, String, String, RequestHeaderFields, Object, RestResponseConsumer).- Parameters:
aUrl- TheUrlfrom 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.GETrequest.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onGet
public static RestResponseHandler onGet(Url aUrl, RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) - Parameters:
aUrl- TheUrlfrom which to take the URL specific data.aHeaderFields- The HTTP-Header's fields to be used for the request.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onGet
public static RestResponseResult onGet(Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields, Object aRequest) - Parameters:
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.GETrequest.- Returns:
- The
RestResponseResultwhich is used by your request.
-
onGet
public static RestResponseResult onGet(Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) - Parameters:
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.GETrequest.- Returns:
- The
RestResponseResultwhich is used by your request.
-
onGet
public static RestResponseResult onGet(Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields) - Parameters:
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
RestResponseResultwhich is used by your request.
-
onGet
public static RestResponseResult onGet(Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields) - Parameters:
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
RestResponseResultwhich is used by your request.
-
onGet
public static RestResponseResult onGet(Scheme aScheme, String aHost, int aPort, String aPath, Object aRequest) - Parameters:
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.GETrequest.- Returns:
- The
RestResponseResultwhich is used by your request.
-
onGet
public static RestResponseResult onGet(Scheme aScheme, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields, Object aRequest) - Parameters:
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.GETrequest.- Returns:
- The
RestResponseResultwhich is used by your request.
-
onGet
public static RestResponseResult onGet(Scheme aScheme, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields) - Parameters:
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
RestResponseResultwhich is used by your request.
-
onGet
- Parameters:
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
RestResponseResultwhich is used by your request.
-
onGet
public static RestResponseResult onGet(Scheme aScheme, String aHost, String aPath, FormFields aQueryFields, Object aRequest) - Parameters:
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.GETrequest.- Returns:
- The
RestResponseResultwhich is used by your request.
-
onGet
public static RestResponseResult onGet(Scheme aScheme, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) - Parameters:
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.GETrequest.- Returns:
- The
RestResponseResultwhich is used by your request.
-
onGet
public static RestResponseResult onGet(Scheme aScheme, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields) - Parameters:
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
RestResponseResultwhich is used by your request.
-
onGet
public static RestResponseResult onGet(Scheme aScheme, String aHost, String aPath, FormFields aQueryFields) - Parameters:
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
RestResponseResultwhich is used by your request.
-
onGet
- Parameters:
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.GETrequest.- Returns:
- The
RestResponseResultwhich is used by your request.
-
onGet
public static RestResponseResult onGet(Scheme aScheme, String aHost, String aPath, RequestHeaderFields aHeaderFields, Object aRequest) - Parameters:
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.GETrequest.- Returns:
- The
RestResponseResultwhich is used by your request.
-
onGet
public static RestResponseResult onGet(Scheme aScheme, String aHost, String aPath, RequestHeaderFields aHeaderFields) - Parameters:
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
RestResponseResultwhich is used by your request.
-
onGet
- Parameters:
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
RestResponseResultwhich is used by your request.
-
onGet
public static RestResponseResult onGet(String aLocator, FormFields aQueryFields, Object aRequest) throws MalformedURLException - Parameters:
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.GETrequest.- Returns:
- The
RestResponseResultwhich is used by your request. - Throws:
MalformedURLException- in case the provided URL is considered being malformed.
-
onGet
public static RestResponseResult onGet(String aLocator, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) throws MalformedURLException - Parameters:
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.GETrequest.- Returns:
- The
RestResponseResultwhich is used by your request. - Throws:
MalformedURLException- in case the provided URL is considered being malformed.
-
onGet
public static RestResponseResult onGet(String aLocator, FormFields aQueryFields, RequestHeaderFields aHeaderFields) throws MalformedURLException - Parameters:
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
RestResponseResultwhich is used by your request. - Throws:
MalformedURLException- in case the provided URL is considered being malformed.
-
onGet
public static RestResponseResult onGet(String aLocator, FormFields aQueryFields) throws MalformedURLException See alsoGetRestClient.onGet(String, FormFields).- Parameters:
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
RestResponseResultwhich is used by your request. - Throws:
MalformedURLException- in case the provided URL is considered being malformed.
-
onGet
See alsoGetRestClient.onGet(String, Object).- Parameters:
aUrl- The targeted URL locating the addressed resource.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.GETrequest.- Returns:
- The
RestResponseResultwhich is used by your request. - Throws:
MalformedURLException- in case the provided URL is considered being malformed.
-
onGet
public static RestResponseResult onGet(String aUrl, RequestHeaderFields aHeaderFields, Object aRequest) throws MalformedURLException - Parameters:
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.GETrequest.- Returns:
- The
RestResponseResultwhich is used by your request. - Throws:
MalformedURLException- in case the provided URL is considered being malformed.
-
onGet
public static RestResponseResult onGet(String aUrl, RequestHeaderFields aHeaderFields) throws MalformedURLException - Parameters:
aUrl- The targeted URL locating the addressed resource.aHeaderFields- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestResponseResultwhich is used by your request. - Throws:
MalformedURLException- in case the provided URL is considered being malformed.
-
onGet
See alsoGetRestClient.onGet(String).- Parameters:
aUrl- The targeted URL locating the addressed resource.- Returns:
- The
RestResponseResultwhich is used by your request. - Throws:
MalformedURLException- in case the provided URL is considered being malformed.
-
onGet
public static RestResponseResult onGet(String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields, Object aRequest) - Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".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.GETrequest.- Returns:
- The
RestResponseResultwhich is used by your request.
-
onGet
public static RestResponseResult onGet(String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) - Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".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.GETrequest.- Returns:
- The
RestResponseResultwhich is used by your request.
-
onGet
public static RestResponseResult onGet(String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields) - Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".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
RestResponseResultwhich is used by your request.
-
onGet
public static RestResponseResult onGet(String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields) - Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".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
RestResponseResultwhich is used by your request.
-
onGet
public static RestResponseResult onGet(String aProtocol, String aHost, int aPort, String aPath, Object aRequest) - Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".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.GETrequest.- Returns:
- The
RestResponseResultwhich is used by your request.
-
onGet
public static RestResponseResult onGet(String aProtocol, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields, Object aRequest) - Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".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.GETrequest.- Returns:
- The
RestResponseResultwhich is used by your request.
-
onGet
public static RestResponseResult onGet(String aProtocol, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields) - Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".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
RestResponseResultwhich is used by your request.
-
onGet
- Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".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
RestResponseResultwhich is used by your request.
-
onGet
public static RestResponseResult onGet(String aProtocol, String aHost, String aPath, FormFields aQueryFields, Object aRequest) - Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".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.GETrequest.- Returns:
- The
RestResponseResultwhich is used by your request.
-
onGet
public static RestResponseResult onGet(String aProtocol, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) - Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".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.GETrequest.- Returns:
- The
RestResponseResultwhich is used by your request.
-
onGet
public static RestResponseResult onGet(String aProtocol, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields) - Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".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
RestResponseResultwhich is used by your request.
-
onGet
public static RestResponseResult onGet(String aProtocol, String aHost, String aPath, FormFields aQueryFields) - Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".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
RestResponseResultwhich is used by your request.
-
onGet
public static RestResponseResult onGet(String aProtocol, String aHost, String aPath, Object aRequest) - Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".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.GETrequest.- Returns:
- The
RestResponseResultwhich is used by your request.
-
onGet
public static RestResponseResult onGet(String aProtocol, String aHost, String aPath, RequestHeaderFields aHeaderFields, Object aRequest) - Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".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.GETrequest.- Returns:
- The
RestResponseResultwhich is used by your request.
-
onGet
public static RestResponseResult onGet(String aProtocol, String aHost, String aPath, RequestHeaderFields aHeaderFields) - Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".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
RestResponseResultwhich is used by your request.
-
onGet
See alsoGetRestClient.onGet(String, String, String)}.- Parameters:
aProtocol- The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".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
RestResponseResultwhich is used by your request.
-
onGet
See alsoGetRestClient.onGet(Url, Object).- Parameters:
aUrl- TheUrlfrom which to take the URL specific data.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.GETrequest.- Returns:
- The
RestResponseResultwhich is used by your request.
-
onGet
public static RestResponseResult onGet(Url aUrl, RequestHeaderFields aHeaderFields, Object aRequest) - Parameters:
aUrl- TheUrlfrom 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.GETrequest.- Returns:
- The
RestResponseResultwhich is used by your request.
-
onGet
- Parameters:
aUrl- TheUrlfrom which to take the URL specific data.aHeaderFields- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestResponseResultwhich is used by your request.
-