Class RestPostClientSugar

    • Constructor Detail

      • RestPostClientSugar

        public RestPostClientSugar()
    • Method Detail

      • buildPost

        public static RestRequestBuilder buildPost​(org.refcodes.data.Scheme aScheme,
                                                   String aHost,
                                                   int aPort,
                                                   String aPath)
                                            throws org.refcodes.web.HttpResponseException
        Parameters:
        aScheme - The Scheme (e.g. HTTP or HTTPS) to be used for the destination URL.
        aHost - The host to which the destination URL is to point to.
        aPort - The port to be used when connecting to the host.
        aPath - The path on the host to which the base destination URL is to point to.
        Returns:
        The RestRequestBuilder which is used to prepare and synchronously issue the request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • buildPost

        public static RestRequestBuilder buildPost​(org.refcodes.data.Scheme aScheme,
                                                   String aHost,
                                                   int aPort,
                                                   String aPath,
                                                   org.refcodes.web.FormFields aQueryFields)
                                            throws org.refcodes.web.HttpResponseException
        Parameters:
        aScheme - The Scheme (e.g. HTTP or HTTPS) to be used for the destination URL.
        aHost - The host to which the destination URL is to point to.
        aPort - The port to be used when connecting to the host.
        aPath - The path on the host to which the base destination URL is to point to.
        aQueryFields - The Query-Fields to be used for the HTTP Query-String.
        Returns:
        The RestRequestBuilder which is used to prepare and synchronously issue the request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • buildPost

        public static RestRequestBuilder buildPost​(org.refcodes.data.Scheme aScheme,
                                                   String aHost,
                                                   int aPort,
                                                   String aPath,
                                                   org.refcodes.web.FormFields aQueryFields,
                                                   Object aRequest)
                                            throws org.refcodes.web.HttpResponseException
        Parameters:
        aScheme - The Scheme (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 a HttpMethod.POST request.
        Returns:
        The RestRequestBuilder which is used to prepare and synchronously issue the request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • buildPost

        public static RestRequestBuilder buildPost​(org.refcodes.data.Scheme aScheme,
                                                   String aHost,
                                                   int aPort,
                                                   String aPath,
                                                   org.refcodes.web.FormFields aQueryFields,
                                                   org.refcodes.web.RequestHeaderFields aHeaderFields)
                                            throws org.refcodes.web.HttpResponseException
        Parameters:
        aScheme - The Scheme (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 RestRequestBuilder which is used to prepare and synchronously issue the request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • buildPost

        public static RestRequestBuilder buildPost​(org.refcodes.data.Scheme aScheme,
                                                   String aHost,
                                                   int aPort,
                                                   String aPath,
                                                   org.refcodes.web.FormFields aQueryFields,
                                                   org.refcodes.web.RequestHeaderFields aHeaderFields,
                                                   Object aRequest)
                                            throws org.refcodes.web.HttpResponseException
        Parameters:
        aScheme - The Scheme (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 a HttpMethod.POST request.
        Returns:
        The RestRequestBuilder which is used to prepare and synchronously issue the request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • buildPost

        public static RestRequestBuilder buildPost​(org.refcodes.data.Scheme aScheme,
                                                   String aHost,
                                                   int aPort,
                                                   String aPath,
                                                   Object aRequest)
                                            throws org.refcodes.web.HttpResponseException
        Parameters:
        aScheme - The Scheme (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 a HttpMethod.POST request.
        Returns:
        The RestRequestBuilder which is used to prepare and synchronously issue the request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • buildPost

        public static RestRequestBuilder buildPost​(org.refcodes.data.Scheme aScheme,
                                                   String aHost,
                                                   int aPort,
                                                   String aPath,
                                                   org.refcodes.web.RequestHeaderFields aHeaderFields)
                                            throws org.refcodes.web.HttpResponseException
        Parameters:
        aScheme - The Scheme (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 RestRequestBuilder which is used to prepare and synchronously issue the request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • buildPost

        public static RestRequestBuilder buildPost​(org.refcodes.data.Scheme aScheme,
                                                   String aHost,
                                                   int aPort,
                                                   String aPath,
                                                   org.refcodes.web.RequestHeaderFields aHeaderFields,
                                                   Object aRequest)
                                            throws org.refcodes.web.HttpResponseException
        Parameters:
        aScheme - The Scheme (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 a HttpMethod.POST request.
        Returns:
        The RestRequestBuilder which is used to prepare and synchronously issue the request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • buildPost

        public static RestRequestBuilder buildPost​(org.refcodes.data.Scheme aScheme,
                                                   String aHost,
                                                   String aPath)
                                            throws org.refcodes.web.HttpResponseException
        Parameters:
        aScheme - The Scheme (e.g. HTTP or HTTPS) to be used for the destination URL.
        aHost - The host to which the destination URL is to point to.
        aPath - The path on the host to which the base destination URL is to point to.
        Returns:
        The RestRequestBuilder which is used to prepare and synchronously issue the request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • buildPost

        public static RestRequestBuilder buildPost​(org.refcodes.data.Scheme aScheme,
                                                   String aHost,
                                                   String aPath,
                                                   org.refcodes.web.FormFields aQueryFields)
                                            throws org.refcodes.web.HttpResponseException
        Parameters:
        aScheme - The Scheme (e.g. HTTP or HTTPS) to be used for the destination URL.
        aHost - The host to which the destination URL is to point to.
        aPath - The path on the host to which the base destination URL is to point to.
        aQueryFields - The Query-Fields to be used for the HTTP Query-String.
        Returns:
        The RestRequestBuilder which is used to prepare and synchronously issue the request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • buildPost

        public static RestRequestBuilder buildPost​(org.refcodes.data.Scheme aScheme,
                                                   String aHost,
                                                   String aPath,
                                                   org.refcodes.web.FormFields aQueryFields,
                                                   Object aRequest)
                                            throws org.refcodes.web.HttpResponseException
        Parameters:
        aScheme - The Scheme (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 a HttpMethod.POST request.
        Returns:
        The RestRequestBuilder which is used to prepare and synchronously issue the request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • buildPost

        public static RestRequestBuilder buildPost​(org.refcodes.data.Scheme aScheme,
                                                   String aHost,
                                                   String aPath,
                                                   org.refcodes.web.FormFields aQueryFields,
                                                   org.refcodes.web.RequestHeaderFields aHeaderFields)
                                            throws org.refcodes.web.HttpResponseException
        Parameters:
        aScheme - The Scheme (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 RestRequestBuilder which is used to prepare and synchronously issue the request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • buildPost

        public static RestRequestBuilder buildPost​(org.refcodes.data.Scheme aScheme,
                                                   String aHost,
                                                   String aPath,
                                                   org.refcodes.web.FormFields aQueryFields,
                                                   org.refcodes.web.RequestHeaderFields aHeaderFields,
                                                   Object aRequest)
                                            throws org.refcodes.web.HttpResponseException
        Parameters:
        aScheme - The Scheme (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 a HttpMethod.POST request.
        Returns:
        The RestRequestBuilder which is used to prepare and synchronously issue the request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • buildPost

        public static RestRequestBuilder buildPost​(org.refcodes.data.Scheme aScheme,
                                                   String aHost,
                                                   String aPath,
                                                   Object aRequest)
                                            throws org.refcodes.web.HttpResponseException
        Parameters:
        aScheme - The Scheme (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 a HttpMethod.POST request.
        Returns:
        The RestRequestBuilder which is used to prepare and synchronously issue the request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • buildPost

        public static RestRequestBuilder buildPost​(org.refcodes.data.Scheme aScheme,
                                                   String aHost,
                                                   String aPath,
                                                   org.refcodes.web.RequestHeaderFields aHeaderFields)
                                            throws org.refcodes.web.HttpResponseException
        Parameters:
        aScheme - The Scheme (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 RestRequestBuilder which is used to prepare and synchronously issue the request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • buildPost

        public static RestRequestBuilder buildPost​(org.refcodes.data.Scheme aScheme,
                                                   String aHost,
                                                   String aPath,
                                                   org.refcodes.web.RequestHeaderFields aHeaderFields,
                                                   Object aRequest)
                                            throws org.refcodes.web.HttpResponseException
        Parameters:
        aScheme - The Scheme (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 a HttpMethod.POST request.
        Returns:
        The RestRequestBuilder which is used to prepare and synchronously issue the request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • buildPost

        public static RestRequestBuilder buildPost​(String aLocator,
                                                   org.refcodes.web.FormFields aQueryFields)
                                            throws org.refcodes.web.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 RestRequestBuilder which is used to prepare and synchronously issue the request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
        MalformedURLException - in case the provided URL is considered being malformed.
      • buildPost

        public static RestRequestBuilder buildPost​(String aLocator,
                                                   org.refcodes.web.FormFields aQueryFields,
                                                   Object aRequest)
                                            throws org.refcodes.web.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 a HttpMethod.POST request.
        Returns:
        The RestRequestBuilder which is used to prepare and synchronously issue the request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
        MalformedURLException - in case the provided URL is considered being malformed.
      • buildPost

        public static RestRequestBuilder buildPost​(String aLocator,
                                                   org.refcodes.web.FormFields aQueryFields,
                                                   org.refcodes.web.RequestHeaderFields aHeaderFields)
                                            throws org.refcodes.web.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 RestRequestBuilder which is used to prepare and synchronously issue the request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
        MalformedURLException - in case the provided URL is considered being malformed.
      • buildPost

        public static RestRequestBuilder buildPost​(String aLocator,
                                                   org.refcodes.web.FormFields aQueryFields,
                                                   org.refcodes.web.RequestHeaderFields aHeaderFields,
                                                   Object aRequest)
                                            throws org.refcodes.web.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 a HttpMethod.POST request.
        Returns:
        The RestRequestBuilder which is used to prepare and synchronously issue the request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
        MalformedURLException - in case the provided URL is considered being malformed.
      • buildPost

        public static RestRequestBuilder buildPost​(String aProtocol,
                                                   String aHost,
                                                   int aPort,
                                                   String aPath)
                                            throws org.refcodes.web.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 RestRequestBuilder which is used to prepare and synchronously issue the request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • buildPost

        public static RestRequestBuilder buildPost​(String aProtocol,
                                                   String aHost,
                                                   int aPort,
                                                   String aPath,
                                                   org.refcodes.web.FormFields aQueryFields)
                                            throws org.refcodes.web.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 RestRequestBuilder which is used to prepare and synchronously issue the request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • buildPost

        public static RestRequestBuilder buildPost​(String aProtocol,
                                                   String aHost,
                                                   int aPort,
                                                   String aPath,
                                                   org.refcodes.web.FormFields aQueryFields,
                                                   Object aRequest)
                                            throws org.refcodes.web.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 a HttpMethod.POST request.
        Returns:
        The RestRequestBuilder which is used to prepare and synchronously issue the request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • buildPost

        public static RestRequestBuilder buildPost​(String aProtocol,
                                                   String aHost,
                                                   int aPort,
                                                   String aPath,
                                                   org.refcodes.web.FormFields aQueryFields,
                                                   org.refcodes.web.RequestHeaderFields aHeaderFields)
                                            throws org.refcodes.web.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 RestRequestBuilder which is used to prepare and synchronously issue the request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • buildPost

        public static RestRequestBuilder buildPost​(String aProtocol,
                                                   String aHost,
                                                   int aPort,
                                                   String aPath,
                                                   org.refcodes.web.FormFields aQueryFields,
                                                   org.refcodes.web.RequestHeaderFields aHeaderFields,
                                                   Object aRequest)
                                            throws org.refcodes.web.HttpResponseException
        Parameters:
        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 a HttpMethod.POST request.
        Returns:
        The RestRequestBuilder which is used to prepare and synchronously issue the request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • buildPost

        public static RestRequestBuilder buildPost​(String aProtocol,
                                                   String aHost,
                                                   int aPort,
                                                   String aPath,
                                                   Object aRequest)
                                            throws org.refcodes.web.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 a HttpMethod.POST request.
        Returns:
        The RestRequestBuilder which is used to prepare and synchronously issue the request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • buildPost

        public static RestRequestBuilder buildPost​(String aProtocol,
                                                   String aHost,
                                                   int aPort,
                                                   String aPath,
                                                   org.refcodes.web.RequestHeaderFields aHeaderFields)
                                            throws org.refcodes.web.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 RestRequestBuilder which is used to prepare and synchronously issue the request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • buildPost

        public static RestRequestBuilder buildPost​(String aProtocol,
                                                   String aHost,
                                                   int aPort,
                                                   String aPath,
                                                   org.refcodes.web.RequestHeaderFields aHeaderFields,
                                                   Object aRequest)
                                            throws org.refcodes.web.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 a HttpMethod.POST request.
        Returns:
        The RestRequestBuilder which is used to prepare and synchronously issue the request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • buildPost

        public static RestRequestBuilder buildPost​(String aProtocol,
                                                   String aHost,
                                                   String aPath)
                                            throws org.refcodes.web.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 RestRequestBuilder which is used to prepare and synchronously issue the request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • buildPost

        public static RestRequestBuilder buildPost​(String aProtocol,
                                                   String aHost,
                                                   String aPath,
                                                   org.refcodes.web.FormFields aQueryFields)
                                            throws org.refcodes.web.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 RestRequestBuilder which is used to prepare and synchronously issue the request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • buildPost

        public static RestRequestBuilder buildPost​(String aProtocol,
                                                   String aHost,
                                                   String aPath,
                                                   org.refcodes.web.FormFields aQueryFields,
                                                   Object aRequest)
                                            throws org.refcodes.web.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 a HttpMethod.POST request.
        Returns:
        The RestRequestBuilder which is used to prepare and synchronously issue the request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • buildPost

        public static RestRequestBuilder buildPost​(String aProtocol,
                                                   String aHost,
                                                   String aPath,
                                                   org.refcodes.web.FormFields aQueryFields,
                                                   org.refcodes.web.RequestHeaderFields aHeaderFields)
                                            throws org.refcodes.web.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 RestRequestBuilder which is used to prepare and synchronously issue the request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • buildPost

        public static RestRequestBuilder buildPost​(String aProtocol,
                                                   String aHost,
                                                   String aPath,
                                                   org.refcodes.web.FormFields aQueryFields,
                                                   org.refcodes.web.RequestHeaderFields aHeaderFields,
                                                   Object aRequest)
                                            throws org.refcodes.web.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 a HttpMethod.POST request.
        Returns:
        The RestRequestBuilder which is used to prepare and synchronously issue the request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • buildPost

        public static RestRequestBuilder buildPost​(String aProtocol,
                                                   String aHost,
                                                   String aPath,
                                                   Object aRequest)
                                            throws org.refcodes.web.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 a HttpMethod.POST request.
        Returns:
        The RestRequestBuilder which is used to prepare and synchronously issue the request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • buildPost

        public static RestRequestBuilder buildPost​(String aProtocol,
                                                   String aHost,
                                                   String aPath,
                                                   org.refcodes.web.RequestHeaderFields aHeaderFields)
                                            throws org.refcodes.web.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 RestRequestBuilder which is used to prepare and synchronously issue the request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • buildPost

        public static RestRequestBuilder buildPost​(String aProtocol,
                                                   String aHost,
                                                   String aPath,
                                                   org.refcodes.web.RequestHeaderFields aHeaderFields,
                                                   Object aRequest)
                                            throws org.refcodes.web.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 a HttpMethod.POST request.
        Returns:
        The RestRequestBuilder which is used to prepare and synchronously issue the request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • buildPost

        public static RestRequestBuilder buildPost​(org.refcodes.web.Url aUrl)
                                            throws org.refcodes.web.HttpResponseException
        Parameters:
        aUrl - The Url from which to take the URL specific data.
        Returns:
        The RestRequestBuilder which is used to prepare and synchronously issue the request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • buildPost

        public static RestRequestBuilder buildPost​(org.refcodes.web.Url aUrl,
                                                   org.refcodes.web.RequestHeaderFields aHeaderFields)
                                            throws org.refcodes.web.HttpResponseException
        Parameters:
        aUrl - The Url from which to take the URL specific data.
        aHeaderFields - The HTTP-Header's fields to be used for the request.
        Returns:
        The RestRequestBuilder which is used to prepare and synchronously issue the request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • doPost

        public static RestResponse doPost​(org.refcodes.data.Scheme aScheme,
                                          String aHost,
                                          int aPort,
                                          String aPath)
                                   throws org.refcodes.web.HttpResponseException
        Parameters:
        aScheme - The Scheme (e.g. HTTP or HTTPS) to be used for the destination URL.
        aHost - The host to which the destination URL is to point to.
        aPort - The port to be used when connecting to the host.
        aPath - The path on the host to which the base destination URL is to point to.
        Returns:
        The RestResponse as of your request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • doPost

        public static RestResponse doPost​(org.refcodes.data.Scheme aScheme,
                                          String aHost,
                                          int aPort,
                                          String aPath,
                                          org.refcodes.web.FormFields aQueryFields)
                                   throws org.refcodes.web.HttpResponseException
        Parameters:
        aScheme - The Scheme (e.g. HTTP or HTTPS) to be used for the destination URL.
        aHost - The host to which the destination URL is to point to.
        aPort - The port to be used when connecting to the host.
        aPath - The path on the host to which the base destination URL is to point to.
        aQueryFields - The Query-Fields to be used for the HTTP Query-String.
        Returns:
        The RestResponse as of your request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • doPost

        public static RestResponse doPost​(org.refcodes.data.Scheme aScheme,
                                          String aHost,
                                          int aPort,
                                          String aPath,
                                          org.refcodes.web.FormFields aQueryFields,
                                          Object aRequest)
                                   throws org.refcodes.web.HttpResponseException
        Parameters:
        aScheme - The Scheme (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 a HttpMethod.POST request.
        Returns:
        The RestResponse as of your request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • doPost

        public static RestResponse doPost​(org.refcodes.data.Scheme aScheme,
                                          String aHost,
                                          int aPort,
                                          String aPath,
                                          org.refcodes.web.FormFields aQueryFields,
                                          org.refcodes.web.RequestHeaderFields aHeaderFields)
                                   throws org.refcodes.web.HttpResponseException
        Parameters:
        aScheme - The Scheme (e.g. HTTP or HTTPS) to be used for the destination URL.
        aHost - The host to which the destination URL is to point to.
        aPort - The port to be used when connecting to the host.
        aPath - The path on the host to which the base destination URL is to point to.
        aQueryFields - The Query-Fields to be used for the HTTP Query-String.
        aHeaderFields - The HTTP-Header's fields to be used for the request.
        Returns:
        The RestResponse as of your request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • doPost

        public static RestResponse doPost​(org.refcodes.data.Scheme aScheme,
                                          String aHost,
                                          int aPort,
                                          String aPath,
                                          org.refcodes.web.FormFields aQueryFields,
                                          org.refcodes.web.RequestHeaderFields aHeaderFields,
                                          Object aRequest)
                                   throws org.refcodes.web.HttpResponseException
        Parameters:
        aScheme - The Scheme (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 a HttpMethod.POST request.
        Returns:
        The RestResponse as of your request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • doPost

        public static RestResponse doPost​(org.refcodes.data.Scheme aScheme,
                                          String aHost,
                                          int aPort,
                                          String aPath,
                                          Object aRequest)
                                   throws org.refcodes.web.HttpResponseException
        Parameters:
        aScheme - The Scheme (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 a HttpMethod.POST request.
        Returns:
        The RestResponse as of your request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • doPost

        public static RestResponse doPost​(org.refcodes.data.Scheme aScheme,
                                          String aHost,
                                          int aPort,
                                          String aPath,
                                          org.refcodes.web.RequestHeaderFields aHeaderFields)
                                   throws org.refcodes.web.HttpResponseException
        Parameters:
        aScheme - The Scheme (e.g. HTTP or HTTPS) to be used for the destination URL.
        aHost - The host to which the destination URL is to point to.
        aPort - The port to be used when connecting to the host.
        aPath - The path on the host to which the base destination URL is to point to.
        aHeaderFields - The HTTP-Header's fields to be used for the request.
        Returns:
        The RestResponse as of your request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • doPost

        public static RestResponse doPost​(org.refcodes.data.Scheme aScheme,
                                          String aHost,
                                          int aPort,
                                          String aPath,
                                          org.refcodes.web.RequestHeaderFields aHeaderFields,
                                          Object aRequest)
                                   throws org.refcodes.web.HttpResponseException
        Parameters:
        aScheme - The Scheme (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 a HttpMethod.POST request.
        Returns:
        The RestResponse as of your request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • doPost

        public static RestResponse doPost​(org.refcodes.data.Scheme aScheme,
                                          String aHost,
                                          String aPath)
                                   throws org.refcodes.web.HttpResponseException
        Parameters:
        aScheme - The Scheme (e.g. HTTP or HTTPS) to be used for the destination URL.
        aHost - The host to which the destination URL is to point to.
        aPath - The path on the host to which the base destination URL is to point to.
        Returns:
        The RestResponse as of your request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • doPost

        public static RestResponse doPost​(org.refcodes.data.Scheme aScheme,
                                          String aHost,
                                          String aPath,
                                          org.refcodes.web.FormFields aQueryFields)
                                   throws org.refcodes.web.HttpResponseException
        Parameters:
        aScheme - The Scheme (e.g. HTTP or HTTPS) to be used for the destination URL.
        aHost - The host to which the destination URL is to point to.
        aPath - The path on the host to which the base destination URL is to point to.
        aQueryFields - The Query-Fields to be used for the HTTP Query-String.
        Returns:
        The RestResponse as of your request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • doPost

        public static RestResponse doPost​(org.refcodes.data.Scheme aScheme,
                                          String aHost,
                                          String aPath,
                                          org.refcodes.web.FormFields aQueryFields,
                                          Object aRequest)
                                   throws org.refcodes.web.HttpResponseException
        Parameters:
        aScheme - The Scheme (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 a HttpMethod.POST request.
        Returns:
        The RestResponse as of your request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • doPost

        public static RestResponse doPost​(org.refcodes.data.Scheme aScheme,
                                          String aHost,
                                          String aPath,
                                          org.refcodes.web.FormFields aQueryFields,
                                          org.refcodes.web.RequestHeaderFields aHeaderFields)
                                   throws org.refcodes.web.HttpResponseException
        Parameters:
        aScheme - The Scheme (e.g. HTTP or HTTPS) to be used for the destination URL.
        aHost - The host to which the destination URL is to point to.
        aPath - The path on the host to which the base destination URL is to point to.
        aQueryFields - The Query-Fields to be used for the HTTP Query-String.
        aHeaderFields - The HTTP-Header's fields to be used for the request.
        Returns:
        The RestResponse as of your request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • doPost

        public static RestResponse doPost​(org.refcodes.data.Scheme aScheme,
                                          String aHost,
                                          String aPath,
                                          org.refcodes.web.FormFields aQueryFields,
                                          org.refcodes.web.RequestHeaderFields aHeaderFields,
                                          Object aRequest)
                                   throws org.refcodes.web.HttpResponseException
        Parameters:
        aScheme - The Scheme (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 a HttpMethod.POST request.
        Returns:
        The RestResponse as of your request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • doPost

        public static RestResponse doPost​(org.refcodes.data.Scheme aScheme,
                                          String aHost,
                                          String aPath,
                                          Object aRequest)
                                   throws org.refcodes.web.HttpResponseException
        Parameters:
        aScheme - The Scheme (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 a HttpMethod.POST request.
        Returns:
        The RestResponse as of your request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • doPost

        public static RestResponse doPost​(org.refcodes.data.Scheme aScheme,
                                          String aHost,
                                          String aPath,
                                          org.refcodes.web.RequestHeaderFields aHeaderFields)
                                   throws org.refcodes.web.HttpResponseException
        Parameters:
        aScheme - The Scheme (e.g. HTTP or HTTPS) to be used for the destination URL.
        aHost - The host to which the destination URL is to point to.
        aPath - The path on the host to which the base destination URL is to point to.
        aHeaderFields - The HTTP-Header's fields to be used for the request.
        Returns:
        The RestResponse as of your request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • doPost

        public static RestResponse doPost​(org.refcodes.data.Scheme aScheme,
                                          String aHost,
                                          String aPath,
                                          org.refcodes.web.RequestHeaderFields aHeaderFields,
                                          Object aRequest)
                                   throws org.refcodes.web.HttpResponseException
        Parameters:
        aScheme - The Scheme (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 a HttpMethod.POST request.
        Returns:
        The RestResponse as of your request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • doPost

        public static RestResponse doPost​(String aLocator,
                                          org.refcodes.web.FormFields aQueryFields)
                                   throws org.refcodes.web.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 RestResponse as of your request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
        MalformedURLException - in case the provided URL is considered being malformed.
      • doPost

        public static RestResponse doPost​(String aLocator,
                                          org.refcodes.web.FormFields aQueryFields,
                                          Object aRequest)
                                   throws org.refcodes.web.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 a HttpMethod.POST request.
        Returns:
        The RestResponse as of your request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
        MalformedURLException - in case the provided URL is considered being malformed.
      • doPost

        public static RestResponse doPost​(String aLocator,
                                          org.refcodes.web.FormFields aQueryFields,
                                          org.refcodes.web.RequestHeaderFields aHeaderFields)
                                   throws org.refcodes.web.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 RestResponse as of your request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
        MalformedURLException - in case the provided URL is considered being malformed.
      • doPost

        public static RestResponse doPost​(String aLocator,
                                          org.refcodes.web.FormFields aQueryFields,
                                          org.refcodes.web.RequestHeaderFields aHeaderFields,
                                          Object aRequest)
                                   throws org.refcodes.web.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 a HttpMethod.POST request.
        Returns:
        The RestResponse as of your request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
        MalformedURLException - in case the provided URL is considered being malformed.
      • doPost

        public static RestResponse doPost​(String aUrl,
                                          Object aRequest)
                                   throws org.refcodes.web.HttpResponseException,
                                          MalformedURLException
        Parameters:
        aUrl - The targeted URL locating the addressed resource.
        aRequest - The body to be sent with the request (e.g. when doing a HttpMethod.POST request.
        Returns:
        The RestResponse as of your request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
        MalformedURLException - in case the provided URL is considered being malformed.
      • doPost

        public static RestResponse doPost​(String aUrl,
                                          org.refcodes.web.RequestHeaderFields aHeaderFields,
                                          Object aRequest)
                                   throws org.refcodes.web.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 a HttpMethod.POST request.
        Returns:
        The RestResponse as of your request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
        MalformedURLException - in case the provided URL is considered being malformed.
      • doPost

        public static RestResponse doPost​(String aProtocol,
                                          String aHost,
                                          int aPort,
                                          String aPath)
                                   throws org.refcodes.web.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 RestResponse as of your request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • doPost

        public static RestResponse doPost​(String aProtocol,
                                          String aHost,
                                          int aPort,
                                          String aPath,
                                          org.refcodes.web.FormFields aQueryFields)
                                   throws org.refcodes.web.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 RestResponse as of your request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • doPost

        public static RestResponse doPost​(String aProtocol,
                                          String aHost,
                                          int aPort,
                                          String aPath,
                                          org.refcodes.web.FormFields aQueryFields,
                                          Object aRequest)
                                   throws org.refcodes.web.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 a HttpMethod.POST request.
        Returns:
        The RestResponse as of your request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • doPost

        public static RestResponse doPost​(String aProtocol,
                                          String aHost,
                                          int aPort,
                                          String aPath,
                                          org.refcodes.web.FormFields aQueryFields,
                                          org.refcodes.web.RequestHeaderFields aHeaderFields)
                                   throws org.refcodes.web.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 RestResponse as of your request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • doPost

        public static RestResponse doPost​(String aProtocol,
                                          String aHost,
                                          int aPort,
                                          String aPath,
                                          org.refcodes.web.FormFields aQueryFields,
                                          org.refcodes.web.RequestHeaderFields aHeaderFields,
                                          Object aRequest)
                                   throws org.refcodes.web.HttpResponseException
        Parameters:
        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 a HttpMethod.POST request.
        Returns:
        The RestResponse as of your request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • doPost

        public static RestResponse doPost​(String aProtocol,
                                          String aHost,
                                          int aPort,
                                          String aPath,
                                          Object aRequest)
                                   throws org.refcodes.web.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 a HttpMethod.POST request.
        Returns:
        The RestResponse as of your request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • doPost

        public static RestResponse doPost​(String aProtocol,
                                          String aHost,
                                          int aPort,
                                          String aPath,
                                          org.refcodes.web.RequestHeaderFields aHeaderFields)
                                   throws org.refcodes.web.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 RestResponse as of your request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • doPost

        public static RestResponse doPost​(String aProtocol,
                                          String aHost,
                                          int aPort,
                                          String aPath,
                                          org.refcodes.web.RequestHeaderFields aHeaderFields,
                                          Object aRequest)
                                   throws org.refcodes.web.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 a HttpMethod.POST request.
        Returns:
        The RestResponse as of your request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • doPost

        public static RestResponse doPost​(String aProtocol,
                                          String aHost,
                                          String aPath)
                                   throws org.refcodes.web.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 RestResponse as of your request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • doPost

        public static RestResponse doPost​(String aProtocol,
                                          String aHost,
                                          String aPath,
                                          org.refcodes.web.FormFields aQueryFields)
                                   throws org.refcodes.web.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 RestResponse as of your request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • doPost

        public static RestResponse doPost​(String aProtocol,
                                          String aHost,
                                          String aPath,
                                          org.refcodes.web.FormFields aQueryFields,
                                          Object aRequest)
                                   throws org.refcodes.web.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 a HttpMethod.POST request.
        Returns:
        The RestResponse as of your request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • doPost

        public static RestResponse doPost​(String aProtocol,
                                          String aHost,
                                          String aPath,
                                          org.refcodes.web.FormFields aQueryFields,
                                          org.refcodes.web.RequestHeaderFields aHeaderFields)
                                   throws org.refcodes.web.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 RestResponse as of your request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • doPost

        public static RestResponse doPost​(String aProtocol,
                                          String aHost,
                                          String aPath,
                                          org.refcodes.web.FormFields aQueryFields,
                                          org.refcodes.web.RequestHeaderFields aHeaderFields,
                                          Object aRequest)
                                   throws org.refcodes.web.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 a HttpMethod.POST request.
        Returns:
        The RestResponse as of your request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • doPost

        public static RestResponse doPost​(String aProtocol,
                                          String aHost,
                                          String aPath,
                                          Object aRequest)
                                   throws org.refcodes.web.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 a HttpMethod.POST request.
        Returns:
        The RestResponse as of your request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • doPost

        public static RestResponse doPost​(String aProtocol,
                                          String aHost,
                                          String aPath,
                                          org.refcodes.web.RequestHeaderFields aHeaderFields)
                                   throws org.refcodes.web.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 RestResponse as of your request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • doPost

        public static RestResponse doPost​(String aProtocol,
                                          String aHost,
                                          String aPath,
                                          org.refcodes.web.RequestHeaderFields aHeaderFields,
                                          Object aRequest)
                                   throws org.refcodes.web.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 a HttpMethod.POST request.
        Returns:
        The RestResponse as of your request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
      • doPost

        public static RestResponse doPost​(org.refcodes.web.Url aUrl,
                                          Object aRequest)
                                   throws org.refcodes.web.HttpResponseException,
                                          MalformedURLException
        Parameters:
        aUrl - The Url from which to take the URL specific data.
        aRequest - The body to be sent with the request (e.g. when doing a HttpMethod.POST request.
        Returns:
        The RestResponse as of your request.
        Throws:
        org.refcodes.web.HttpResponseException - thrown in case of some unexpected response.
        MalformedURLException - in case the provided URL is considered being malformed.
      • onPost

        public static RestResponseHandler onPost​(org.refcodes.data.Scheme aScheme,
                                                 String aHost,
                                                 int aPort,
                                                 String aPath,
                                                 org.refcodes.web.FormFields aQueryFields,
                                                 Object aRequest,
                                                 RestResponseConsumer aResponseConsumer)
        Parameters:
        aScheme - The Scheme (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 a HttpMethod.POST request.
        aResponseConsumer - The listener processing a response targeted at this RestResponseHandler.
        Returns:
        The RestResponseHandler which is used by your request.
      • onPost

        public static RestResponseHandler onPost​(org.refcodes.data.Scheme aScheme,
                                                 String aHost,
                                                 int aPort,
                                                 String aPath,
                                                 org.refcodes.web.FormFields aQueryFields,
                                                 org.refcodes.web.RequestHeaderFields aHeaderFields,
                                                 Object aRequest,
                                                 RestResponseConsumer aResponseConsumer)
        Parameters:
        aScheme - The Scheme (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 a HttpMethod.POST request.
        aResponseConsumer - The listener processing a response targeted at this RestResponseHandler.
        Returns:
        The RestResponseHandler which is used by your request.
      • onPost

        public static RestResponseHandler onPost​(String aProtocol,
                                                 String aHost,
                                                 int aPort,
                                                 String aPath,
                                                 org.refcodes.web.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.
        aPort - The port 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 a HttpMethod.POST request.
        aResponseConsumer - The listener processing a response targeted at this RestResponseHandler.
        Returns:
        The RestResponseHandler which is used by your request.
      • onPost

        public static RestResponseHandler onPost​(String aProtocol,
                                                 String aHost,
                                                 int aPort,
                                                 String aPath,
                                                 org.refcodes.web.FormFields aQueryFields,
                                                 org.refcodes.web.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 a HttpMethod.POST request.
        aResponseConsumer - The listener processing a response targeted at this RestResponseHandler.
        Returns:
        The RestResponseHandler which is used by your request.
      • onPost

        public static RestResponseHandler onPost​(String aProtocol,
                                                 String aHost,
                                                 int aPort,
                                                 String aPath,
                                                 org.refcodes.web.FormFields aQueryFields,
                                                 org.refcodes.web.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 this RestResponseHandler.
        Returns:
        The RestResponseHandler which is used by your request.
      • onPost

        public static RestResponseHandler onPost​(String aProtocol,
                                                 String aHost,
                                                 int aPort,
                                                 String aPath,
                                                 org.refcodes.web.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 this RestResponseHandler.
        Returns:
        The RestResponseHandler which 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 a HttpMethod.POST request.
        aResponseConsumer - The listener processing a response targeted at this RestResponseHandler.
        Returns:
        The RestResponseHandler which is used by your request.
      • onPost

        public static RestResponseHandler onPost​(String aProtocol,
                                                 String aHost,
                                                 int aPort,
                                                 String aPath,
                                                 org.refcodes.web.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 a HttpMethod.POST request.
        aResponseConsumer - The listener processing a response targeted at this RestResponseHandler.
        Returns:
        The RestResponseHandler which is used by your request.
      • onPost

        public static RestResponseHandler onPost​(String aProtocol,
                                                 String aHost,
                                                 int aPort,
                                                 String aPath,
                                                 org.refcodes.web.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.
        aHeaderFields - The HTTP-Header's fields to be used for the request.
        aResponseConsumer - The listener processing a response targeted at this RestResponseHandler.
        Returns:
        The RestResponseHandler which is used by your request.
      • onPost

        public static RestResponseHandler onPost​(String aProtocol,
                                                 String aHost,
                                                 String aPath,
                                                 org.refcodes.web.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 a HttpMethod.POST request.
        aResponseConsumer - The listener processing a response targeted at this RestResponseHandler.
        Returns:
        The RestResponseHandler which is used by your request.
      • onPost

        public static RestResponseHandler onPost​(String aProtocol,
                                                 String aHost,
                                                 String aPath,
                                                 org.refcodes.web.FormFields aQueryFields,
                                                 org.refcodes.web.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 a HttpMethod.POST request.
        aResponseConsumer - The listener processing a response targeted at this RestResponseHandler.
        Returns:
        The RestResponseHandler which is used by your request.
      • onPost

        public static RestResponseHandler onPost​(String aProtocol,
                                                 String aHost,
                                                 String aPath,
                                                 org.refcodes.web.FormFields aQueryFields,
                                                 org.refcodes.web.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.
        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 this RestResponseHandler.
        Returns:
        The RestResponseHandler which is used by your request.
      • onPost

        public static RestResponseHandler onPost​(String aProtocol,
                                                 String aHost,
                                                 String aPath,
                                                 org.refcodes.web.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.
        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 a HttpMethod.POST request.
        aResponseConsumer - The listener processing a response targeted at this RestResponseHandler.
        Returns:
        The RestResponseHandler which is used by your request.
      • onPost

        public static RestResponseResult onPost​(org.refcodes.data.Scheme aScheme,
                                                String aHost,
                                                int aPort,
                                                String aPath,
                                                org.refcodes.web.FormFields aQueryFields,
                                                Object aRequest)
        Parameters:
        aScheme - The Scheme (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 a HttpMethod.POST request.
        Returns:
        The RestResponseResult which is used by your request.
      • onPost

        public static RestResponseResult onPost​(org.refcodes.data.Scheme aScheme,
                                                String aHost,
                                                int aPort,
                                                String aPath,
                                                org.refcodes.web.FormFields aQueryFields,
                                                org.refcodes.web.RequestHeaderFields aHeaderFields,
                                                Object aRequest)
        Parameters:
        aScheme - The Scheme (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 a HttpMethod.POST request.
        Returns:
        The RestResponseResult which is used by your request.
      • onPost

        public static RestResponseResult onPost​(org.refcodes.data.Scheme aScheme,
                                                String aHost,
                                                int aPort,
                                                String aPath,
                                                org.refcodes.web.FormFields aQueryFields,
                                                org.refcodes.web.RequestHeaderFields aHeaderFields)
        Parameters:
        aScheme - The Scheme (e.g. HTTP or HTTPS) to be used for the destination URL.
        aHost - The host to which the destination URL is to point to.
        aPort - The port to be used when connecting to the host.
        aPath - The path on the host to which the base destination URL is to point to.
        aQueryFields - The Query-Fields to be used for the HTTP Query-String.
        aHeaderFields - The HTTP-Header's fields to be used for the request.
        Returns:
        The RestResponseResult which is used by your request.
      • onPost

        public static RestResponseResult onPost​(org.refcodes.data.Scheme aScheme,
                                                String aHost,
                                                int aPort,
                                                String aPath,
                                                org.refcodes.web.FormFields aQueryFields)
        Parameters:
        aScheme - The Scheme (e.g. HTTP or HTTPS) to be used for the destination URL.
        aHost - The host to which the destination URL is to point to.
        aPort - The port to be used when connecting to the host.
        aPath - The path on the host to which the base destination URL is to point to.
        aQueryFields - The Query-Fields to be used for the HTTP Query-String.
        Returns:
        The RestResponseResult which is used by your request.
      • onPost

        public static RestResponseResult onPost​(org.refcodes.data.Scheme aScheme,
                                                String aHost,
                                                int aPort,
                                                String aPath,
                                                Object aRequest)
        Parameters:
        aScheme - The Scheme (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 a HttpMethod.POST request.
        Returns:
        The RestResponseResult which is used by your request.
      • onPost

        public static RestResponseResult onPost​(org.refcodes.data.Scheme aScheme,
                                                String aHost,
                                                int aPort,
                                                String aPath,
                                                org.refcodes.web.RequestHeaderFields aHeaderFields,
                                                Object aRequest)
        Parameters:
        aScheme - The Scheme (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 a HttpMethod.POST request.
        Returns:
        The RestResponseResult which is used by your request.
      • onPost

        public static RestResponseResult onPost​(org.refcodes.data.Scheme aScheme,
                                                String aHost,
                                                int aPort,
                                                String aPath,
                                                org.refcodes.web.RequestHeaderFields aHeaderFields)
        Parameters:
        aScheme - The Scheme (e.g. HTTP or HTTPS) to be used for the destination URL.
        aHost - The host to which the destination URL is to point to.
        aPort - The port to be used when connecting to the host.
        aPath - The path on the host to which the base destination URL is to point to.
        aHeaderFields - The HTTP-Header's fields to be used for the request.
        Returns:
        The RestResponseResult which is used by your request.
      • onPost

        public static RestResponseResult onPost​(org.refcodes.data.Scheme aScheme,
                                                String aHost,
                                                int aPort,
                                                String aPath)
        Parameters:
        aScheme - The Scheme (e.g. HTTP or HTTPS) to be used for the destination URL.
        aHost - The host to which the destination URL is to point to.
        aPort - The port to be used when connecting to the host.
        aPath - The path on the host to which the base destination URL is to point to.
        Returns:
        The RestResponseResult which is used by your request.
      • onPost

        public static RestResponseResult onPost​(org.refcodes.data.Scheme aScheme,
                                                String aHost,
                                                String aPath,
                                                org.refcodes.web.FormFields aQueryFields,
                                                Object aRequest)
        Parameters:
        aScheme - The Scheme (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 a HttpMethod.POST request.
        Returns:
        The RestResponseResult which is used by your request.
      • onPost

        public static RestResponseResult onPost​(org.refcodes.data.Scheme aScheme,
                                                String aHost,
                                                String aPath,
                                                org.refcodes.web.FormFields aQueryFields,
                                                org.refcodes.web.RequestHeaderFields aHeaderFields,
                                                Object aRequest)
        Parameters:
        aScheme - The Scheme (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 a HttpMethod.POST request.
        Returns:
        The RestResponseResult which is used by your request.
      • onPost

        public static RestResponseResult onPost​(org.refcodes.data.Scheme aScheme,
                                                String aHost,
                                                String aPath,
                                                org.refcodes.web.FormFields aQueryFields,
                                                org.refcodes.web.RequestHeaderFields aHeaderFields)
        Parameters:
        aScheme - The Scheme (e.g. HTTP or HTTPS) to be used for the destination URL.
        aHost - The host to which the destination URL is to point to.
        aPath - The path on the host to which the base destination URL is to point to.
        aQueryFields - The Query-Fields to be used for the HTTP Query-String.
        aHeaderFields - The HTTP-Header's fields to be used for the request.
        Returns:
        The RestResponseResult which is used by your request.
      • onPost

        public static RestResponseResult onPost​(org.refcodes.data.Scheme aScheme,
                                                String aHost,
                                                String aPath,
                                                org.refcodes.web.FormFields aQueryFields)
        Parameters:
        aScheme - The Scheme (e.g. HTTP or HTTPS) to be used for the destination URL.
        aHost - The host to which the destination URL is to point to.
        aPath - The path on the host to which the base destination URL is to point to.
        aQueryFields - The Query-Fields to be used for the HTTP Query-String.
        Returns:
        The RestResponseResult which is used by your request.
      • onPost

        public static RestResponseResult onPost​(org.refcodes.data.Scheme aScheme,
                                                String aHost,
                                                String aPath,
                                                Object aRequest)
        Parameters:
        aScheme - The Scheme (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 a HttpMethod.POST request.
        Returns:
        The RestResponseResult which is used by your request.
      • onPost

        public static RestResponseResult onPost​(org.refcodes.data.Scheme aScheme,
                                                String aHost,
                                                String aPath,
                                                org.refcodes.web.RequestHeaderFields aHeaderFields,
                                                Object aRequest)
        Parameters:
        aScheme - The Scheme (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 a HttpMethod.POST request.
        Returns:
        The RestResponseResult which is used by your request.
      • onPost

        public static RestResponseResult onPost​(org.refcodes.data.Scheme aScheme,
                                                String aHost,
                                                String aPath,
                                                org.refcodes.web.RequestHeaderFields aHeaderFields)
        Parameters:
        aScheme - The Scheme (e.g. HTTP or HTTPS) to be used for the destination URL.
        aHost - The host to which the destination URL is to point to.
        aPath - The path on the host to which the base destination URL is to point to.
        aHeaderFields - The HTTP-Header's fields to be used for the request.
        Returns:
        The RestResponseResult which is used by your request.
      • onPost

        public static RestResponseResult onPost​(org.refcodes.data.Scheme aScheme,
                                                String aHost,
                                                String aPath)
        Parameters:
        aScheme - The Scheme (e.g. HTTP or HTTPS) to be used for the destination URL.
        aHost - The host to which the destination URL is to point to.
        aPath - The path on the host to which the base destination URL is to point to.
        Returns:
        The RestResponseResult which is used by your request.
      • onPost

        public static RestResponseResult onPost​(String aLocator,
                                                org.refcodes.web.FormFields aQueryFields,
                                                org.refcodes.web.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 a HttpMethod.POST request.
        Returns:
        The RestResponseResult which 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,
                                                org.refcodes.web.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 a HttpMethod.POST request.
        Returns:
        The RestResponseResult which is used by your request.
      • onPost

        public static RestResponseResult onPost​(String aProtocol,
                                                String aHost,
                                                int aPort,
                                                String aPath,
                                                org.refcodes.web.FormFields aQueryFields,
                                                org.refcodes.web.RequestHeaderFields aHeaderFields,
                                                Object aRequest)
        Parameters:
        aProtocol - The protocol (e.g. HTTP or HTTPS) including the specific part (such as "//" for "http://") to be used for the destination URL: For HTTP, provide "http://", for HTTPS, provide "https://".
        aHost - The host to which the destination URL is to point to.
        aPort - The port to be used when connecting to the host.
        aPath - The path on the host to which the base destination URL is to point to.
        aQueryFields - The Query-Fields to be used for the HTTP Query-String.
        aHeaderFields - The HTTP-Header's fields to be used for the request.
        aRequest - The body to be sent with the request (e.g. when doing a HttpMethod.POST request.
        Returns:
        The RestResponseResult which is used by your request.
      • onPost

        public static RestResponseResult onPost​(String aProtocol,
                                                String aHost,
                                                int aPort,
                                                String aPath,
                                                org.refcodes.web.FormFields aQueryFields,
                                                org.refcodes.web.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 RestResponseResult which is used by your request.
      • onPost

        public static RestResponseResult onPost​(String aProtocol,
                                                String aHost,
                                                int aPort,
                                                String aPath,
                                                org.refcodes.web.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 RestResponseResult which 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 a HttpMethod.POST request.
        Returns:
        The RestResponseResult which is used by your request.
      • onPost

        public static RestResponseResult onPost​(String aProtocol,
                                                String aHost,
                                                int aPort,
                                                String aPath,
                                                org.refcodes.web.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 a HttpMethod.POST request.
        Returns:
        The RestResponseResult which is used by your request.
      • onPost

        public static RestResponseResult onPost​(String aProtocol,
                                                String aHost,
                                                int aPort,
                                                String aPath,
                                                org.refcodes.web.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 RestResponseResult which is used by your request.
      • onPost

        public static RestResponseResult onPost​(String aProtocol,
                                                String aHost,
                                                int aPort,
                                                String aPath)
        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 RestResponseResult which is used by your request.
      • onPost

        public static RestResponseResult onPost​(String aProtocol,
                                                String aHost,
                                                String aPath,
                                                org.refcodes.web.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 a HttpMethod.POST request.
        Returns:
        The RestResponseResult which is used by your request.
      • onPost

        public static RestResponseResult onPost​(String aProtocol,
                                                String aHost,
                                                String aPath,
                                                org.refcodes.web.FormFields aQueryFields,
                                                org.refcodes.web.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 a HttpMethod.POST request.
        Returns:
        The RestResponseResult which is used by your request.
      • onPost

        public static RestResponseResult onPost​(String aProtocol,
                                                String aHost,
                                                String aPath,
                                                org.refcodes.web.FormFields aQueryFields,
                                                org.refcodes.web.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 RestResponseResult which is used by your request.
      • onPost

        public static RestResponseResult onPost​(String aProtocol,
                                                String aHost,
                                                String aPath,
                                                org.refcodes.web.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 RestResponseResult which 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 a HttpMethod.POST request.
        Returns:
        The RestResponseResult which is used by your request.
      • onPost

        public static RestResponseResult onPost​(String aProtocol,
                                                String aHost,
                                                String aPath,
                                                org.refcodes.web.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 a HttpMethod.POST request.
        Returns:
        The RestResponseResult which is used by your request.
      • onPost

        public static RestResponseResult onPost​(String aProtocol,
                                                String aHost,
                                                String aPath,
                                                org.refcodes.web.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 RestResponseResult which is used by your request.
      • onPost

        public static RestResponseResult onPost​(String aProtocol,
                                                String aHost,
                                                String aPath)
        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 RestResponseResult which is used by your request.