Class HttpClientResponse

java.lang.Object
org.eclipse.dirigible.api.v3.http.client.HttpClientResponse

public class HttpClientResponse
extends Object
The Class HttpClientResponse.
  • Constructor Details

  • Method Details

    • getStatusCode

      public int getStatusCode()
      Gets the status code.
      Returns:
      the status code
    • setStatusCode

      public void setStatusCode​(int statusCode)
      Sets the status code.
      Parameters:
      statusCode - the new status code
    • getStatusMessage

      public String getStatusMessage()
      Gets the status message.
      Returns:
      the status message
    • setStatusMessage

      public void setStatusMessage​(String statusMessage)
      Sets the status message.
      Parameters:
      statusMessage - the new status message
    • getData

      public byte[] getData()
      Gets the data.
      Returns:
      the data
    • setData

      public void setData​(byte[] data)
      Sets the data.
      Parameters:
      data - the new data
    • getText

      public String getText()
      Gets the text.
      Returns:
      the text
    • setText

      public void setText​(String text)
      Sets the text.
      Parameters:
      text - the new text
    • getProtocol

      public String getProtocol()
      Gets the protocol.
      Returns:
      the protocol
    • setProtocol

      public void setProtocol​(String protocol)
      Sets the protocol.
      Parameters:
      protocol - the new protocol
    • getHeaders

      public List<HttpClientHeader> getHeaders()
      Gets the headers.
      Returns:
      the headers
    • setHeaders

      public void setHeaders​(List<HttpClientHeader> headers)
      Sets the headers.
      Parameters:
      headers - the new headers
    • isBinary

      public boolean isBinary()
      Checks if is binary.
      Returns:
      true, if is binary
    • setBinary

      public void setBinary​(boolean binary)
      Sets the binary.
      Parameters:
      binary - the new binary