Interface RemoteConnectorResponse

All Known Implementing Classes:
RemoteConnectorResponseImpl

public interface RemoteConnectorResponse
Helper wrapper around a Remote Response, for a request that was executed by RemoteConnectorService.
Since:
4.0.2
Author:
Nick Burch
  • Method Details

    • getRequest

      Returns:
      The request that generated this response
    • getStatus

      int getStatus()
      Returns:
      The HTTP Status Code for the response
    • getRawContentType

      String getRawContentType()
      Returns:
      The raw response content type, if available
    • getContentType

      String getContentType()
      Returns:
      The mimetype of the response content, if available
    • getCharset

      String getCharset()
      Returns:
      The charset of the response content, if available
    • getResponseHeaders

      org.apache.commons.httpclient.Header[] getResponseHeaders()
      Returns:
      All of the response headers
    • getResponseBodyAsStream

      InputStream getResponseBodyAsStream() throws IOException
      Returns:
      The response data, as a stream
      Throws:
      IOException
    • getResponseBodyAsBytes

      byte[] getResponseBodyAsBytes() throws IOException
      Returns:
      The response data, as a byte array
      Throws:
      IOException
    • getResponseBodyAsString

      String getResponseBodyAsString() throws IOException
      Returns:
      The response as a string, based on the response content type charset
      Throws:
      IOException