Class HttpBodyRequest

    • Constructor Detail

      • HttpBodyRequest

        public HttpBodyRequest​(HttpMethod _method,
                               String _queryUrl,
                               Map<String,​String> _headers,
                               String _body)
        Create a request with explicit body
        Parameters:
        _method - The HTTP method to use. Can be PUT, POST, DELETE and PATCH
        _queryUrl - The http url to create the HTTP Request. Expect a fully qualified absolute Url
        _headers - The key-value map of all http headers to be sent
        _body - The object to be sent as body after serialization
      • HttpBodyRequest

        public HttpBodyRequest​(HttpMethod _method,
                               String _queryUrl,
                               Map<String,​String> _headers,
                               String _body,
                               String _username,
                               String _password)
        Create a request with explicit body
        Parameters:
        _method - The HTTP method to use. Can be PUT, POST, DELETE and PATCH
        _queryUrl - The http url to create the HTTP Request. Expect a fully qualified absolute Url
        _headers - The key-value map of all http headers to be sent
        _body - The object to be sent as body after serialization
        _username - Username for basic authentication
        _password - Password for basic authentication
    • Method Detail

      • getBody

        public String getBody()
        Body for the http request
        Returns:
        the request body as a string