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