Class RestRequestClientSugar
java.lang.Object
org.refcodes.rest.RestRequestClientSugar
- Direct Known Subclasses:
GetRestClientSugar
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 RestRequestBuilderbuildRequest(HttpMethod aHttpMethod, String aUrl) static RestRequestBuilderbuildRequest(HttpMethod aHttpMethod, String aUrl, Object aRequest) static RestRequestBuilderbuildRequest(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath) static RestRequestBuilderbuildRequest(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, Object aRequest) static RestRequestBuilderbuildRequest(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields) static RestRequestBuilderbuildRequest(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields, Object aRequest) static RestRequestBuilderbuildRequest(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) static RestRequestBuilderbuildRequest(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields, Object aRequest) static RestRequestBuilderbuildRequest(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath) static RestRequestBuilderbuildRequest(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, Object aRequest) static RestRequestBuilderbuildRequest(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, FormFields aQueryFields) static RestRequestBuilderbuildRequest(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, FormFields aQueryFields, Object aRequest) static RestRequestBuilderbuildRequest(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) static RestRequestBuilderbuildRequest(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, RequestHeaderFields aHeaderFields, Object aRequest) static RestRequestBuilderbuildRequest(HttpMethod aHttpMethod, String aLocator, FormFields aQueryFields) static RestRequestBuilderbuildRequest(HttpMethod aHttpMethod, String aLocator, FormFields aQueryFields, Object aRequest) static RestRequestBuilderbuildRequest(HttpMethod aHttpMethod, String aLocator, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) static RestRequestBuilderbuildRequest(HttpMethod aHttpMethod, String aUrl, RequestHeaderFields aHeaderFields, Object aRequest) static RestRequestBuilderbuildRequest(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath) static RestRequestBuilderbuildRequest(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath, Object aRequest) static RestRequestBuilderbuildRequest(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields) static RestRequestBuilderbuildRequest(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields, Object aRequest) static RestRequestBuilderbuildRequest(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) static RestRequestBuilderbuildRequest(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields, Object aRequest) static RestRequestBuilderbuildRequest(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath) static RestRequestBuilderbuildRequest(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath, Object aRequest) static RestRequestBuilderbuildRequest(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath, FormFields aQueryFields) static RestRequestBuilderbuildRequest(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath, FormFields aQueryFields, Object aRequest) static RestRequestBuilderbuildRequest(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) static RestRequestBuilderbuildRequest(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath, RequestHeaderFields aHeaderFields, Object aRequest) static RestRequestBuilderbuildRequest(HttpMethod aHttpMethod, Url aUrl) static RestRequestBuilderbuildRequest(HttpMethod aHttpMethod, Url aUrl, RequestHeaderFields aHeaderFields) static RestResponsedoRequest(RestRequest aRequest) See alsoRestRequestClient.doRequest(RestRequest).static RestResponsedoRequest(HttpMethod aHttpMethod, String aUrl) static RestResponsedoRequest(HttpMethod aHttpMethod, String aUrl, Object aRequest) static RestResponsedoRequest(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath) static RestResponsedoRequest(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, Object aRequest) static RestResponsedoRequest(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields) static RestResponsedoRequest(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields, Object aRequest) static RestResponsedoRequest(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields) static RestResponsedoRequest(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) static RestResponsedoRequest(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields) static RestResponsedoRequest(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields, Object aRequest) static RestResponsedoRequest(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath) static RestResponsestatic RestResponsedoRequest(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, FormFields aQueryFields) static RestResponsedoRequest(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, FormFields aQueryFields, Object aRequest) static RestResponsedoRequest(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields) static RestResponsedoRequest(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) static RestResponsedoRequest(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, RequestHeaderFields aHeaderFields) static RestResponsedoRequest(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, RequestHeaderFields aHeaderFields, Object aRequest) static RestResponsedoRequest(HttpMethod aHttpMethod, String aLocator, FormFields aQueryFields) static RestResponsedoRequest(HttpMethod aHttpMethod, String aLocator, FormFields aQueryFields, Object aRequest) static RestResponsedoRequest(HttpMethod aHttpMethod, String aLocator, FormFields aQueryFields, RequestHeaderFields aHeaderFields) static RestResponsedoRequest(HttpMethod aHttpMethod, String aLocator, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) static RestResponsedoRequest(HttpMethod aHttpMethod, String aUrl, RequestHeaderFields aHeaderFields) static RestResponsedoRequest(HttpMethod aHttpMethod, String aUrl, RequestHeaderFields aHeaderFields, Object aRequest) static RestResponsedoRequest(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath) static RestResponsedoRequest(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath, Object aRequest) static RestResponsedoRequest(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields) static RestResponsedoRequest(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields, Object aRequest) static RestResponsedoRequest(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields) static RestResponsedoRequest(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) static RestResponsedoRequest(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields) static RestResponsedoRequest(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields, Object aRequest) static RestResponsedoRequest(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath) static RestResponsestatic RestResponsedoRequest(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath, FormFields aQueryFields) static RestResponsedoRequest(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath, FormFields aQueryFields, Object aRequest) static RestResponsedoRequest(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields) static RestResponsedoRequest(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) static RestResponsedoRequest(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath, RequestHeaderFields aHeaderFields) static RestResponsedoRequest(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath, RequestHeaderFields aHeaderFields, Object aRequest) static RestResponsedoRequest(HttpMethod aHttpMethod, Url aUrl) static RestResponseResultonResponse(HttpMethod aHttpMethod, String aUrl) static RestResponseResultonResponse(HttpMethod aHttpMethod, String aUrl, Object aRequest) static RestResponseHandleronResponse(HttpMethod aHttpMethod, String aUrl, Object aRequest, RestResponseConsumer aResponseConsumer) static RestResponseResultonResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath) static RestResponseResultonResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, Object aRequest) static RestResponseHandleronResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, Object aRequest, RestResponseConsumer aResponseConsumer) static RestResponseHandleronResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, RestResponseConsumer aResponseConsumer) static RestResponseResultonResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields) static RestResponseResultonResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields, Object aRequest) static RestResponseHandleronResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields, Object aRequest, RestResponseConsumer aResponseConsumer) static RestResponseHandleronResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields, RestResponseConsumer aResponseConsumer) static RestResponseResultonResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields) static RestResponseResultonResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) static RestResponseHandleronResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) static RestResponseHandleronResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) static RestResponseResultonResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields) static RestResponseResultonResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields, Object aRequest) static RestResponseHandleronResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) static RestResponseHandleronResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) static RestResponseResultonResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath) static RestResponseResultonResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, Object aRequest) static RestResponseHandleronResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, Object aRequest, RestResponseConsumer aResponseConsumer) static RestResponseHandleronResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, RestResponseConsumer aResponseConsumer) static RestResponseResultonResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, FormFields aQueryFields) static RestResponseResultonResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, FormFields aQueryFields, Object aRequest) static RestResponseHandleronResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, FormFields aQueryFields, Object aRequest, RestResponseConsumer aResponseConsumer) static RestResponseHandleronResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, FormFields aQueryFields, RestResponseConsumer aResponseConsumer) static RestResponseResultonResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields) static RestResponseResultonResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) static RestResponseHandleronResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) static RestResponseHandleronResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) static RestResponseResultonResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, RequestHeaderFields aHeaderFields) static RestResponseResultonResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, RequestHeaderFields aHeaderFields, Object aRequest) static RestResponseHandleronResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) static RestResponseHandleronResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) static RestResponseHandleronResponse(HttpMethod aHttpMethod, String aUrl, RestResponseConsumer aResponseConsumer) static RestResponseResultonResponse(HttpMethod aHttpMethod, String aLocator, FormFields aQueryFields) static RestResponseResultonResponse(HttpMethod aHttpMethod, String aLocator, FormFields aQueryFields, Object aRequest) static RestResponseHandleronResponse(HttpMethod aHttpMethod, String aLocator, FormFields aQueryFields, Object aRequest, RestResponseConsumer aResponseConsumer) static RestResponseHandleronResponse(HttpMethod aHttpMethod, String aLocator, FormFields aQueryFields, RestResponseConsumer aResponseConsumer) static RestResponseResultonResponse(HttpMethod aHttpMethod, String aLocator, FormFields aQueryFields, RequestHeaderFields aHeaderFields) static RestResponseResultonResponse(HttpMethod aHttpMethod, String aLocator, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) static RestResponseHandleronResponse(HttpMethod aHttpMethod, String aLocator, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) static RestResponseHandleronResponse(HttpMethod aHttpMethod, String aLocator, FormFields aQueryFields, RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) static RestResponseResultonResponse(HttpMethod aHttpMethod, String aUrl, RequestHeaderFields aHeaderFields) static RestResponseResultonResponse(HttpMethod aHttpMethod, String aUrl, RequestHeaderFields aHeaderFields, Object aRequest) static RestResponseHandleronResponse(HttpMethod aHttpMethod, String aUrl, RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) static RestResponseHandleronResponse(HttpMethod aHttpMethod, String aUrl, RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) static RestResponseResultonResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath) static RestResponseResultonResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath, Object aRequest) static RestResponseHandleronResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath, Object aRequest, RestResponseConsumer aResponseConsumer) static RestResponseHandleronResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath, RestResponseConsumer aResponseConsumer) static RestResponseResultonResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields) static RestResponseResultonResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields, Object aRequest) static RestResponseHandleronResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields, Object aRequest, RestResponseConsumer aResponseConsumer) static RestResponseHandleronResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields, RestResponseConsumer aResponseConsumer) static RestResponseResultonResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields) static RestResponseResultonResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) static RestResponseHandleronResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) static RestResponseHandleronResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) static RestResponseResultonResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields) static RestResponseResultonResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields, Object aRequest) static RestResponseHandleronResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) static RestResponseHandleronResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) static RestResponseResultonResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath) static RestResponseResultonResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath, Object aRequest) static RestResponseHandleronResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath, Object aRequest, RestResponseConsumer aResponseConsumer) static RestResponseHandleronResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath, RestResponseConsumer aResponseConsumer) static RestResponseResultonResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath, FormFields aQueryFields) static RestResponseResultonResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath, FormFields aQueryFields, Object aRequest) static RestResponseHandleronResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath, FormFields aQueryFields, Object aRequest, RestResponseConsumer aResponseConsumer) static RestResponseHandleronResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath, FormFields aQueryFields, RestResponseConsumer aResponseConsumer) static RestResponseResultonResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields) static RestResponseResultonResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) static RestResponseHandleronResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) static RestResponseHandleronResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) static RestResponseResultonResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath, RequestHeaderFields aHeaderFields) static RestResponseResultonResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath, RequestHeaderFields aHeaderFields, Object aRequest) static RestResponseHandleronResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath, RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) static RestResponseHandleronResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath, RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) static RestResponseResultonResponse(HttpMethod aHttpMethod, Url aUrl, Object aRequest) static RestResponseHandleronResponse(HttpMethod aHttpMethod, Url aUrl, Object aRequest, RestResponseConsumer aResponseConsumer) static RestResponseResultonResponse(HttpMethod aHttpMethod, Url aUrl, RequestHeaderFields aHeaderFields) static RestResponseResultonResponse(HttpMethod aHttpMethod, Url aUrl, RequestHeaderFields aHeaderFields, Object aRequest) static RestResponseHandleronResponse(HttpMethod aHttpMethod, Url aUrl, RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) static RestResponseHandleronResponse(HttpMethod aHttpMethod, Url aUrl, RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer)
-
Constructor Details
-
RestRequestClientSugar
public RestRequestClientSugar()
-
-
Method Details
-
buildRequest
public static RestRequestBuilder buildRequest(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath) throws HttpResponseException - Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields) throws HttpResponseException - Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields, Object aRequest) throws HttpResponseException See alsoRestRequestClient.buildRequest(HttpMethod, Scheme, String, int, String, FormFields, Object).- Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) throws HttpResponseException - Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath, Object aRequest) throws HttpResponseException - Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields, Object aRequest) throws HttpResponseException See alsoRestRequestClient.buildRequest(HttpMethod, Scheme, String, int, String, RequestHeaderFields, Object).- Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath) throws HttpResponseException - Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath, FormFields aQueryFields) throws HttpResponseException - Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath, FormFields aQueryFields, Object aRequest) throws HttpResponseException - Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) throws HttpResponseException - Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath, Object aRequest) throws HttpResponseException - Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath, RequestHeaderFields aHeaderFields, Object aRequest) throws HttpResponseException See alsoRestRequestClient.buildRequest(HttpMethod, Scheme, String, String, RequestHeaderFields, Object).- Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(HttpMethod aHttpMethod, String aUrl) throws HttpResponseException, MalformedURLException - Parameters:
aHttpMethod- The HTTP-Method for the request.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.
-
buildRequest
public static RestRequestBuilder buildRequest(HttpMethod aHttpMethod, String aLocator, FormFields aQueryFields) throws HttpResponseException, MalformedURLException - Parameters:
aHttpMethod- The HTTP-Method for the request.aLocator- The targeted locator, usually the part of the URL till (excluding) the query fields and the fragment.aQueryFields- The Query-Fields to be used for the HTTP Query-String.- Returns:
- The
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.
-
buildRequest
public static RestRequestBuilder buildRequest(HttpMethod aHttpMethod, String aLocator, FormFields aQueryFields, Object aRequest) throws HttpResponseException, MalformedURLException - Parameters:
aHttpMethod- The HTTP-Method for the request.aLocator- The targeted locator, usually the part of the URL till (excluding) the query fields and the fragment.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- 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.
-
buildRequest
public static RestRequestBuilder buildRequest(HttpMethod aHttpMethod, String aLocator, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) throws HttpResponseException, MalformedURLException See alsoRestRequestClient.buildRequest(HttpMethod, String, FormFields, RequestHeaderFields, Object).- Parameters:
aHttpMethod- The HTTP-Method for the request.aLocator- The targeted locator, usually the part of the URL till (excluding) the query fields and the fragment.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- 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.
-
buildRequest
public static RestRequestBuilder buildRequest(HttpMethod aHttpMethod, String aUrl, Object aRequest) throws HttpResponseException, MalformedURLException - Parameters:
aHttpMethod- The HTTP-Method for the request.aUrl- The targeted URL locating the addressed resource.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- 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.
-
buildRequest
public static RestRequestBuilder buildRequest(HttpMethod aHttpMethod, String aUrl, RequestHeaderFields aHeaderFields, Object aRequest) throws HttpResponseException, MalformedURLException - Parameters:
aHttpMethod- The HTTP-Method for the request.aUrl- The targeted URL locating the addressed resource.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- 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.
-
buildRequest
public static RestRequestBuilder buildRequest(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath) throws HttpResponseException - Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields) throws HttpResponseException - Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields, Object aRequest) throws HttpResponseException See alsoRestRequestClient.buildRequest(HttpMethod, String, String, int, String, FormFields, Object).- Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) throws HttpResponseException - Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, Object aRequest) throws HttpResponseException - Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields, Object aRequest) throws HttpResponseException See alsoRestRequestClient.buildRequest(HttpMethod, String, String, int, String, RequestHeaderFields, Object).- Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath) throws HttpResponseException - Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, FormFields aQueryFields) throws HttpResponseException - Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, FormFields aQueryFields, Object aRequest) throws HttpResponseException - Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) throws HttpResponseException - Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, Object aRequest) throws HttpResponseException - Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, RequestHeaderFields aHeaderFields, Object aRequest) throws HttpResponseException See alsoRestRequestClient.buildRequest(HttpMethod, String, String, String, RequestHeaderFields, Object).- Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
buildRequest
public static RestRequestBuilder buildRequest(HttpMethod aHttpMethod, Url aUrl) throws HttpResponseException - Parameters:
aHttpMethod- The HTTP-Method for the request.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.
-
buildRequest
public static RestRequestBuilder buildRequest(HttpMethod aHttpMethod, Url aUrl, RequestHeaderFields aHeaderFields) throws HttpResponseException - Parameters:
aHttpMethod- The HTTP-Method for the request.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.
-
doRequest
public static RestResponse doRequest(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath) throws HttpResponseException - Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.- Returns:
- The
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doRequest
public static RestResponse doRequest(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields) throws HttpResponseException - Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.- Returns:
- The
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doRequest
public static RestResponse doRequest(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields, Object aRequest) throws HttpResponseException - Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doRequest
public static RestResponse doRequest(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields) throws HttpResponseException - Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doRequest
public static RestResponse doRequest(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) throws HttpResponseException - Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doRequest
public static RestResponse doRequest(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath, Object aRequest) throws HttpResponseException - Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doRequest
public static RestResponse doRequest(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields) throws HttpResponseException - Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aHeaderFields- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doRequest
public static RestResponse doRequest(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields, Object aRequest) throws HttpResponseException See alsoRestRequestClient.doRequest(HttpMethod, Scheme, String, int, String, RequestHeaderFields, Object).- Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doRequest
public static RestResponse doRequest(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath) throws HttpResponseException - Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.- Returns:
- The
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doRequest
public static RestResponse doRequest(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath, FormFields aQueryFields) throws HttpResponseException - Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.- Returns:
- The
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doRequest
public static RestResponse doRequest(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath, FormFields aQueryFields, Object aRequest) throws HttpResponseException - Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doRequest
public static RestResponse doRequest(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields) throws HttpResponseException See alsoRestRequestClient.doRequest(HttpMethod, Scheme, String, String, FormFields, RequestHeaderFields).- Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doRequest
public static RestResponse doRequest(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) throws HttpResponseException - Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doRequest
public static RestResponse doRequest(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath, Object aRequest) throws HttpResponseException - Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doRequest
public static RestResponse doRequest(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath, RequestHeaderFields aHeaderFields) throws HttpResponseException - Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aHeaderFields- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doRequest
public static RestResponse doRequest(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath, RequestHeaderFields aHeaderFields, Object aRequest) throws HttpResponseException See alsoRestRequestClient.doRequest(HttpMethod, Scheme, String, String, RequestHeaderFields, Object).- Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doRequest
public static RestResponse doRequest(HttpMethod aHttpMethod, String aUrl) throws HttpResponseException, MalformedURLException - Parameters:
aHttpMethod- The HTTP-Method for the request.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.
-
doRequest
public static RestResponse doRequest(HttpMethod aHttpMethod, String aLocator, FormFields aQueryFields) throws HttpResponseException, MalformedURLException - Parameters:
aHttpMethod- The HTTP-Method for the request.aLocator- The targeted locator, usually the part of the URL till (excluding) the query fields and the fragment.aQueryFields- The Query-Fields to be used for the HTTP Query-String.- Returns:
- The
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.MalformedURLException- in case the provided URL is considered being malformed.
-
doRequest
public static RestResponse doRequest(HttpMethod aHttpMethod, String aLocator, FormFields aQueryFields, Object aRequest) throws HttpResponseException, MalformedURLException - Parameters:
aHttpMethod- The HTTP-Method for the request.aLocator- The targeted locator, usually the part of the URL till (excluding) the query fields and the fragment.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- 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.
-
doRequest
public static RestResponse doRequest(HttpMethod aHttpMethod, String aLocator, FormFields aQueryFields, RequestHeaderFields aHeaderFields) throws HttpResponseException, MalformedURLException - Parameters:
aHttpMethod- The HTTP-Method for the request.aLocator- The targeted locator, usually the part of the URL till (excluding) the query fields and the fragment.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.MalformedURLException- in case the provided URL is considered being malformed.
-
doRequest
public static RestResponse doRequest(HttpMethod aHttpMethod, String aLocator, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) throws HttpResponseException, MalformedURLException - Parameters:
aHttpMethod- The HTTP-Method for the request.aLocator- The targeted locator, usually the part of the URL till (excluding) the query fields and the fragment.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- 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.
-
doRequest
public static RestResponse doRequest(HttpMethod aHttpMethod, String aUrl, Object aRequest) throws HttpResponseException, MalformedURLException - Parameters:
aHttpMethod- The HTTP-Method for the request.aUrl- The targeted URL locating the addressed resource.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- 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.
-
doRequest
public static RestResponse doRequest(HttpMethod aHttpMethod, String aUrl, RequestHeaderFields aHeaderFields) throws HttpResponseException, MalformedURLException - Parameters:
aHttpMethod- The HTTP-Method for the request.aUrl- The targeted URL locating the addressed resource.aHeaderFields- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.MalformedURLException- in case the provided URL is considered being malformed.
-
doRequest
public static RestResponse doRequest(HttpMethod aHttpMethod, String aUrl, RequestHeaderFields aHeaderFields, Object aRequest) throws HttpResponseException, MalformedURLException - Parameters:
aHttpMethod- The HTTP-Method for the request.aUrl- The targeted URL locating the addressed resource.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- 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.
-
doRequest
public static RestResponse doRequest(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath) throws HttpResponseException - Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.- Returns:
- The
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doRequest
public static RestResponse doRequest(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields) throws HttpResponseException - Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.- Returns:
- The
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doRequest
public static RestResponse doRequest(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields, Object aRequest) throws HttpResponseException - Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doRequest
public static RestResponse doRequest(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields) throws HttpResponseException - Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doRequest
public static RestResponse doRequest(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) throws HttpResponseException - Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doRequest
public static RestResponse doRequest(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, Object aRequest) throws HttpResponseException - Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doRequest
public static RestResponse doRequest(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields) throws HttpResponseException - Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aHeaderFields- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doRequest
public static RestResponse doRequest(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields, Object aRequest) throws HttpResponseException See alsoRestRequestClient.doRequest(HttpMethod, String, String, int, String, RequestHeaderFields, Object).- Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doRequest
public static RestResponse doRequest(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath) throws HttpResponseException - Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.- Returns:
- The
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doRequest
public static RestResponse doRequest(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, FormFields aQueryFields) throws HttpResponseException - Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.- Returns:
- The
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doRequest
public static RestResponse doRequest(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, FormFields aQueryFields, Object aRequest) throws HttpResponseException - Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doRequest
public static RestResponse doRequest(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields) throws HttpResponseException See alsoRestRequestClient.doRequest(HttpMethod, String, String, String, FormFields, RequestHeaderFields).- Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doRequest
public static RestResponse doRequest(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) throws HttpResponseException - Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doRequest
public static RestResponse doRequest(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, Object aRequest) throws HttpResponseException - Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doRequest
public static RestResponse doRequest(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, RequestHeaderFields aHeaderFields) throws HttpResponseException - Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aHeaderFields- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doRequest
public static RestResponse doRequest(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, RequestHeaderFields aHeaderFields, Object aRequest) throws HttpResponseException See alsoRestRequestClient.doRequest(HttpMethod, String, String, String, RequestHeaderFields, Object).- Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestResponseas of your request. - Throws:
HttpResponseException- thrown in case of some unexpected response.
-
doRequest
public static RestResponse doRequest(HttpMethod aHttpMethod, Url aUrl) throws HttpResponseException, MalformedURLException - Parameters:
aHttpMethod- The HTTP-Method for the request.aUrl- TheUrlfrom which to take the URL specific data.- 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.
-
doRequest
public static RestResponse doRequest(RestRequest aRequest) throws HttpResponseException, MalformedURLException See alsoRestRequestClient.doRequest(RestRequest).- Parameters:
aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- 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.
-
onResponse
public static RestResponseHandler onResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields, Object aRequest, RestResponseConsumer aResponseConsumer) - Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.DELETErequest.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onResponse
public static RestResponseHandler onResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) - Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.DELETErequest.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onResponse
public static RestResponseHandler onResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) - Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onResponse
public static RestResponseHandler onResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields, RestResponseConsumer aResponseConsumer) - Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onResponse
public static RestResponseHandler onResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath, Object aRequest, RestResponseConsumer aResponseConsumer) See alsoRestRequestClient.onResponse(HttpMethod, Scheme, String, int, String, Object, RestResponseConsumer).- Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.DELETErequest.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onResponse
public static RestResponseHandler onResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) - Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.DELETErequest.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onResponse
public static RestResponseHandler onResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) - Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aHeaderFields- The HTTP-Header's fields to be used for the request.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onResponse
public static RestResponseHandler onResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath, RestResponseConsumer aResponseConsumer) See alsoRestRequestClient.onResponse(HttpMethod, Scheme, String, int, String, RestResponseConsumer).- Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onResponse
public static RestResponseHandler onResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath, FormFields aQueryFields, Object aRequest, RestResponseConsumer aResponseConsumer) - Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.DELETErequest.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onResponse
public static RestResponseHandler onResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) - Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.DELETErequest.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onResponse
public static RestResponseHandler onResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) - Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onResponse
public static RestResponseHandler onResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath, FormFields aQueryFields, RestResponseConsumer aResponseConsumer) See alsoRestRequestClient.onResponse(HttpMethod, Scheme, String, String, FormFields, RestResponseConsumer).- Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onResponse
public static RestResponseHandler onResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath, Object aRequest, RestResponseConsumer aResponseConsumer) See alsoRestRequestClient.onResponse(HttpMethod, Scheme, String, String, Object, RestResponseConsumer).- Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.DELETErequest.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onResponse
public static RestResponseHandler onResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath, RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) - Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.DELETErequest.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onResponse
public static RestResponseHandler onResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath, RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) - Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aHeaderFields- The HTTP-Header's fields to be used for the request.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onResponse
public static RestResponseHandler onResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath, RestResponseConsumer aResponseConsumer) - Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onResponse
public static RestResponseHandler onResponse(HttpMethod aHttpMethod, String aLocator, FormFields aQueryFields, Object aRequest, RestResponseConsumer aResponseConsumer) throws MalformedURLException See alsoRestRequestClient.onResponse(HttpMethod, String, FormFields, Object, RestResponseConsumer).- Parameters:
aHttpMethod- The HTTP-Method for the request.aLocator- The targeted locator, usually the part of the URL till (excluding) the query fields and the fragment.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.DELETErequest.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.
-
onResponse
public static RestResponseHandler onResponse(HttpMethod aHttpMethod, String aLocator, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) throws MalformedURLException - Parameters:
aHttpMethod- The HTTP-Method for the request.aLocator- The targeted locator, usually the part of the URL till (excluding) the query fields and the fragment.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.DELETErequest.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.
-
onResponse
public static RestResponseHandler onResponse(HttpMethod aHttpMethod, String aLocator, FormFields aQueryFields, RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) throws MalformedURLException - Parameters:
aHttpMethod- The HTTP-Method for the request.aLocator- The targeted locator, usually the part of the URL till (excluding) the query fields and the fragment.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request. - Throws:
MalformedURLException- in case the provided URL is considered being malformed.
-
onResponse
public static RestResponseHandler onResponse(HttpMethod aHttpMethod, String aLocator, FormFields aQueryFields, RestResponseConsumer aResponseConsumer) throws MalformedURLException - Parameters:
aHttpMethod- The HTTP-Method for the request.aLocator- The targeted locator, usually the part of the URL till (excluding) the query fields and the fragment.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request. - Throws:
MalformedURLException- in case the provided URL is considered being malformed.
-
onResponse
public static RestResponseHandler onResponse(HttpMethod aHttpMethod, String aUrl, Object aRequest, RestResponseConsumer aResponseConsumer) throws MalformedURLException - Parameters:
aHttpMethod- The HTTP-Method for the request.aUrl- The targeted URL locating the addressed resource.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.DELETErequest.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.
-
onResponse
public static RestResponseHandler onResponse(HttpMethod aHttpMethod, String aUrl, RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) throws MalformedURLException See alsoRestRequestClient.onResponse(HttpMethod, String, RequestHeaderFields, Object, RestResponseConsumer).- Parameters:
aHttpMethod- The HTTP-Method for the request.aUrl- The targeted URL locating the addressed resource.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.DELETErequest.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.
-
onResponse
public static RestResponseHandler onResponse(HttpMethod aHttpMethod, String aUrl, RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) throws MalformedURLException See alsoRestRequestClient.onResponse(HttpMethod, String, RequestHeaderFields, RestResponseConsumer).- Parameters:
aHttpMethod- The HTTP-Method for the request.aUrl- The targeted URL locating the addressed resource.aHeaderFields- The HTTP-Header's fields to be used for the request.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request. - Throws:
MalformedURLException- in case the provided URL is considered being malformed.
-
onResponse
public static RestResponseHandler onResponse(HttpMethod aHttpMethod, String aUrl, RestResponseConsumer aResponseConsumer) throws MalformedURLException - Parameters:
aHttpMethod- The HTTP-Method for the request.aUrl- The targeted URL locating the addressed resource.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request. - Throws:
MalformedURLException- in case the provided URL is considered being malformed.
-
onResponse
public static RestResponseHandler onResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields, Object aRequest, RestResponseConsumer aResponseConsumer) - Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.DELETErequest.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onResponse
public static RestResponseHandler onResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) - Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.DELETErequest.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onResponse
public static RestResponseHandler onResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) - Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onResponse
public static RestResponseHandler onResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields, RestResponseConsumer aResponseConsumer) - Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onResponse
public static RestResponseHandler onResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, Object aRequest, RestResponseConsumer aResponseConsumer) See alsoRestRequestClient.onResponse(HttpMethod, String, String, int, String, Object, RestResponseConsumer).- Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.DELETErequest.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onResponse
public static RestResponseHandler onResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) - Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.DELETErequest.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onResponse
public static RestResponseHandler onResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) - Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aHeaderFields- The HTTP-Header's fields to be used for the request.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onResponse
public static RestResponseHandler onResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, RestResponseConsumer aResponseConsumer) See alsoRestRequestClient.onResponse(HttpMethod, String, String, int, String, RestResponseConsumer).- Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onResponse
public static RestResponseHandler onResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, FormFields aQueryFields, Object aRequest, RestResponseConsumer aResponseConsumer) - Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.DELETErequest.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onResponse
public static RestResponseHandler onResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) - Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.DELETErequest.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onResponse
public static RestResponseHandler onResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) - Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onResponse
public static RestResponseHandler onResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, FormFields aQueryFields, RestResponseConsumer aResponseConsumer) See alsoRestRequestClient.onResponse(HttpMethod, String, String, String, FormFields, RestResponseConsumer).- Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onResponse
public static RestResponseHandler onResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, Object aRequest, RestResponseConsumer aResponseConsumer) See alsoRestRequestClient.onResponse(HttpMethod, String, String, String, Object, RestResponseConsumer).- Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.DELETErequest.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onResponse
public static RestResponseHandler onResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) - Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.DELETErequest.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onResponse
public static RestResponseHandler onResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) - Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aHeaderFields- The HTTP-Header's fields to be used for the request.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onResponse
public static RestResponseHandler onResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, RestResponseConsumer aResponseConsumer) - Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by your request.
-
onResponse
public static RestResponseHandler onResponse(HttpMethod aHttpMethod, Url aUrl, Object aRequest, RestResponseConsumer aResponseConsumer) - Parameters:
aHttpMethod- The HTTP-Method for the request.aUrl- TheUrlfrom which to take the URL specific data.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by the request.
-
onResponse
public static RestResponseHandler onResponse(HttpMethod aHttpMethod, Url aUrl, RequestHeaderFields aHeaderFields, Object aRequest, RestResponseConsumer aResponseConsumer) See alsoRestRequestClient.onResponse(HttpMethod, Url, RequestHeaderFields, Object, RestResponseConsumer).- Parameters:
aHttpMethod- The HTTP-Method for the request.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.POSTrequest.aResponseConsumer- The listener processing a response targeted at thisRestResponseHandler.- Returns:
- The
RestResponseHandlerwhich is used by the request.
-
onResponse
public static RestResponseHandler onResponse(HttpMethod aHttpMethod, Url aUrl, RequestHeaderFields aHeaderFields, RestResponseConsumer aResponseConsumer) - Parameters:
aHttpMethod- The HTTP-Method for the request.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 the request.
-
onResponse
public static RestResponseResult onResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields, Object aRequest) - Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.DELETErequest.- Returns:
- The
RestResponseResultwhich is used by your request.
-
onResponse
public static RestResponseResult onResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) - Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.DELETErequest.- Returns:
- The
RestResponseResultwhich is used by your request.
-
onResponse
public static RestResponseResult onResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields) - Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestResponseResultwhich is used by your request.
-
onResponse
public static RestResponseResult onResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath, FormFields aQueryFields) - Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.- Returns:
- The
RestResponseResultwhich is used by your request.
-
onResponse
public static RestResponseResult onResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath, Object aRequest) - Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.DELETErequest.- Returns:
- The
RestResponseResultwhich is used by your request.
-
onResponse
public static RestResponseResult onResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields, Object aRequest) See alsoRestRequestClient.onResponse(HttpMethod, Scheme, String, int, String, RequestHeaderFields, Object).- Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.DELETErequest.- Returns:
- The
RestResponseResultwhich is used by your request.
-
onResponse
public static RestResponseResult onResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields) See alsoRestRequestClient.onResponse(HttpMethod, Scheme, String, int, String, RequestHeaderFields).- Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.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.
-
onResponse
public static RestResponseResult onResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, int aPort, String aPath) - Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.- Returns:
- The
RestResponseResultwhich is used by your request.
-
onResponse
public static RestResponseResult onResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath, FormFields aQueryFields, Object aRequest) - Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.DELETErequest.- Returns:
- The
RestResponseResultwhich is used by your request.
-
onResponse
public static RestResponseResult onResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) - Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.DELETErequest.- Returns:
- The
RestResponseResultwhich is used by your request.
-
onResponse
public static RestResponseResult onResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields) See alsoRestRequestClient.onResponse(HttpMethod, Scheme, String, String, FormFields,RequestHeaderFields).- Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestResponseResultwhich is used by your request.
-
onResponse
public static RestResponseResult onResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath, FormFields aQueryFields) - Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.- Returns:
- The
RestResponseResultwhich is used by your request.
-
onResponse
public static RestResponseResult onResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath, Object aRequest) - Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.DELETErequest.- Returns:
- The
RestResponseResultwhich is used by your request.
-
onResponse
public static RestResponseResult onResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath, RequestHeaderFields aHeaderFields, Object aRequest) See alsoRestRequestClient.onResponse(HttpMethod, Scheme, String, String, RequestHeaderFields, Object).- Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.DELETErequest.- Returns:
- The
RestResponseResultwhich is used by your request.
-
onResponse
public static RestResponseResult onResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath, RequestHeaderFields aHeaderFields) - Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aHeaderFields- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestResponseResultwhich is used by your request.
-
onResponse
public static RestResponseResult onResponse(HttpMethod aHttpMethod, Scheme aScheme, String aHost, String aPath) - Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.- Returns:
- The
RestResponseResultwhich is used by your request.
-
onResponse
public static RestResponseResult onResponse(HttpMethod aHttpMethod, String aLocator, FormFields aQueryFields, Object aRequest) throws MalformedURLException - Parameters:
aHttpMethod- The HTTP-Method for the request.aLocator- The targeted locator, usually the part of the URL till (excluding) the query fields and the fragment.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.DELETErequest.- Returns:
- The
RestResponseResultwhich is used by your request. - Throws:
MalformedURLException- in case the provided URL is considered being malformed.
-
onResponse
public static RestResponseResult onResponse(HttpMethod aHttpMethod, String aLocator, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) throws MalformedURLException - Parameters:
aHttpMethod- The HTTP-Method for the request.aLocator- The targeted locator, usually the part of the URL till (excluding) the query fields and the fragment.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.DELETErequest.- Returns:
- The
RestResponseResultwhich is used by your request. - Throws:
MalformedURLException- in case the provided URL is considered being malformed.
-
onResponse
public static RestResponseResult onResponse(HttpMethod aHttpMethod, String aLocator, FormFields aQueryFields, RequestHeaderFields aHeaderFields) throws MalformedURLException - Parameters:
aHttpMethod- The HTTP-Method for the request.aLocator- The targeted locator, usually the part of the URL till (excluding) the query fields and the fragment.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestResponseResultwhich is used by your request. - Throws:
MalformedURLException- in case the provided URL is considered being malformed.
-
onResponse
public static RestResponseResult onResponse(HttpMethod aHttpMethod, String aLocator, FormFields aQueryFields) throws MalformedURLException - Parameters:
aHttpMethod- The HTTP-Method for the request.aLocator- The targeted locator, usually the part of the URL till (excluding) the query fields and the fragment.aQueryFields- The Query-Fields to be used for the HTTP Query-String.- Returns:
- The
RestResponseResultwhich is used by your request. - Throws:
MalformedURLException- in case the provided URL is considered being malformed.
-
onResponse
public static RestResponseResult onResponse(HttpMethod aHttpMethod, String aUrl, Object aRequest) throws MalformedURLException - Parameters:
aHttpMethod- The HTTP-Method for the request.aUrl- The targeted URL locating the addressed resource.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.DELETErequest.- Returns:
- The
RestResponseResultwhich is used by your request. - Throws:
MalformedURLException- in case the provided URL is considered being malformed.
-
onResponse
public static RestResponseResult onResponse(HttpMethod aHttpMethod, String aUrl, RequestHeaderFields aHeaderFields, Object aRequest) throws MalformedURLException - Parameters:
aHttpMethod- The HTTP-Method for the request.aUrl- The targeted URL locating the addressed resource.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.DELETErequest.- Returns:
- The
RestResponseResultwhich is used by your request. - Throws:
MalformedURLException- in case the provided URL is considered being malformed.
-
onResponse
public static RestResponseResult onResponse(HttpMethod aHttpMethod, String aUrl, RequestHeaderFields aHeaderFields) throws MalformedURLException - Parameters:
aHttpMethod- The HTTP-Method for the request.aUrl- The targeted URL locating the addressed resource.aHeaderFields- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestResponseResultwhich is used by your request. - Throws:
MalformedURLException- in case the provided URL is considered being malformed.
-
onResponse
public static RestResponseResult onResponse(HttpMethod aHttpMethod, String aUrl) throws MalformedURLException - Parameters:
aHttpMethod- The HTTP-Method for the request.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.
-
onResponse
public static RestResponseResult onResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields, Object aRequest) - Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.DELETErequest.- Returns:
- The
RestResponseResultwhich is used by your request.
-
onResponse
public static RestResponseResult onResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) - Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.DELETErequest.- Returns:
- The
RestResponseResultwhich is used by your request.
-
onResponse
public static RestResponseResult onResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields) - Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestResponseResultwhich is used by your request.
-
onResponse
public static RestResponseResult onResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields) - Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.- Returns:
- The
RestResponseResultwhich is used by your request.
-
onResponse
public static RestResponseResult onResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, Object aRequest) - Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.DELETErequest.- Returns:
- The
RestResponseResultwhich is used by your request.
-
onResponse
public static RestResponseResult onResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields, Object aRequest) See alsoRestRequestClient.onResponse(HttpMethod, String, String, int, String, RequestHeaderFields, Object).- Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.DELETErequest.- Returns:
- The
RestResponseResultwhich is used by your request.
-
onResponse
public static RestResponseResult onResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath, RequestHeaderFields aHeaderFields) See alsoRestRequestClient.onResponse(HttpMethod, String, String, int, String, RequestHeaderFields).- Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aHeaderFields- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestResponseResultwhich is used by your request.
-
onResponse
public static RestResponseResult onResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, int aPort, String aPath) - Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.- Returns:
- The
RestResponseResultwhich is used by your request.
-
onResponse
public static RestResponseResult onResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, FormFields aQueryFields, Object aRequest) - Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.DELETErequest.- Returns:
- The
RestResponseResultwhich is used by your request.
-
onResponse
public static RestResponseResult onResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields, Object aRequest) - Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.DELETErequest.- Returns:
- The
RestResponseResultwhich is used by your request.
-
onResponse
public static RestResponseResult onResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, FormFields aQueryFields, RequestHeaderFields aHeaderFields) See alsoRestRequestClient.onResponse(HttpMethod, String, String, String, FormFields,RequestHeaderFields).- Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestResponseResultwhich is used by your request.
-
onResponse
public static RestResponseResult onResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, FormFields aQueryFields) - Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.- Returns:
- The
RestResponseResultwhich is used by your request.
-
onResponse
public static RestResponseResult onResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, Object aRequest) - Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.DELETErequest.- Returns:
- The
RestResponseResultwhich is used by your request.
-
onResponse
public static RestResponseResult onResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, RequestHeaderFields aHeaderFields, Object aRequest) See alsoRestRequestClient.onResponse(HttpMethod, String, String, String, RequestHeaderFields, Object).- Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.DELETErequest.- Returns:
- The
RestResponseResultwhich is used by your request.
-
onResponse
public static RestResponseResult onResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath, RequestHeaderFields aHeaderFields) - Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aHeaderFields- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestResponseResultwhich is used by your request.
-
onResponse
public static RestResponseResult onResponse(HttpMethod aHttpMethod, String aProtocol, String aHost, String aPath) - Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocolaHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.- Returns:
- The
RestResponseResultwhich is used by your request.
-
onResponse
- Parameters:
aHttpMethod- The HTTP-Method for the request.aUrl- TheUrlfrom which to take the URL specific data.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestResponseResultwhich is used by the request.
-
onResponse
public static RestResponseResult onResponse(HttpMethod aHttpMethod, Url aUrl, RequestHeaderFields aHeaderFields, Object aRequest) - Parameters:
aHttpMethod- The HTTP-Method for the request.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.POSTrequest.- Returns:
- The
RestResponseResultwhich is used by the request.
-
onResponse
public static RestResponseResult onResponse(HttpMethod aHttpMethod, Url aUrl, RequestHeaderFields aHeaderFields) - Parameters:
aHttpMethod- The HTTP-Method for the request.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 the request.
-