Interface RemoteConnectorRequest

All Known Implementing Classes:
RemoteConnectorRequestImpl

public interface RemoteConnectorRequest
Helper wrapper around a Remote Request, to be performed by the RemoteConnectorService. To have one of these created for you, use RemoteConnectorService.buildRequest(String, String)
Since:
4.0.2
Author:
Nick Burch
  • Method Details

    • getURL

      String getURL()
      Returns:
      the URL this request is for
    • getMethod

      String getMethod()
      Returns:
      the HTTP Method this request will execute (eg POST, GET)
    • getContentType

      String getContentType()
      Returns:
      The Content Type of the request
    • setContentType

      void setContentType(String contentType)
      Sets the Content Type to send for the request
    • getRequestBody

      Object getRequestBody()
      Returns the Request Body, for use by the RemoteConnectorService which created this
    • setRequestBody

      void setRequestBody(String body)
    • setRequestBody

      void setRequestBody(byte[] body)
    • setRequestBody

      void setRequestBody(InputStream body)
    • setRequestBody

      void setRequestBody(org.apache.commons.httpclient.methods.RequestEntity body)
    • getRequestHeaders

      org.apache.commons.httpclient.Header[] getRequestHeaders()
    • addRequestHeader

      void addRequestHeader(String name, String value)
    • addRequestHeader

      void addRequestHeader(org.apache.commons.httpclient.Header header)
    • addRequestHeaders

      void addRequestHeaders(org.apache.commons.httpclient.Header[] headers)