Interface HttpBaseRequest<Q extends HttpBaseRequest<?,?>,R extends ConnectorResponse>

All Superinterfaces:
ConnectorRequest<R>
All Known Subinterfaces:
HttpMethodRequest<Q,R>, HttpRequest, SoapHttpRequest
All Known Implementing Classes:
HttpRequestImpl, SoapHttpRequestImpl

public interface HttpBaseRequest<Q extends HttpBaseRequest<?,?>,R extends ConnectorResponse> extends ConnectorRequest<R>
  • Field Details

  • Method Details

    • url

      Q url(String url)
      Set the url of this request.
      Parameters:
      url - the url to set
      Returns:
      this request
    • getUrl

      String getUrl()
      Returns:
      the url of this request or null if none is set
    • header

      Q header(String field, String value)
      Set a HTTP header for this request.
      Parameters:
      field - HTTP header field
      value - HTTP header value
      Returns:
      this request
    • getHeader

      String getHeader(String field)
      Returns:
      the HTTP header field value of this request or null if not set
    • getHeaders

      Map<String,String> getHeaders()
      Returns:
      the HTTP headers of this request or null if non set
    • contentType

      Q contentType(String contentType)
      Set the content type header for this request.
      Parameters:
      contentType - the content type
      Returns:
      this request
    • getContentType

      String getContentType()
      Returns:
      the content-type of this request or null if non set
    • payload

      Q payload(String payload)
      Set the payload of this request.
      Parameters:
      payload - the payload to set
      Returns:
      this request
    • getPayload

      String getPayload()
      Returns:
      the payload of this request or null if non set
    • method

      Q method(String method)
      Sets the method of this request.
      Parameters:
      method - the method to set
      Returns:
      this request
    • getMethod

      String getMethod()
      Returns:
      the method of this request or null if not set
    • getConfigOptions

      Map<String,Object> getConfigOptions()
      Returns:
      the HTTP configuration options of this request or null if non set
    • getConfigOption

      Object getConfigOption(String field)
      Returns:
      the HTTP configuration option value of this request or null if non set
    • configOption

      Q configOption(String field, Object value)
      Set a HTTP request configuration option for this request.
      Parameters:
      field - HTTP request configuration name
      value - HTTP request configuration value
      Returns:
      this request