Class QHttpResponse

java.lang.Object
com.kingsrook.qqq.backend.module.api.actions.QHttpResponse

public class QHttpResponse extends Object
class to contain httpResponse data from closable responses
  • Constructor Details

    • QHttpResponse

      public QHttpResponse()
      Default Constructor for qHttpResponse
    • QHttpResponse

      public QHttpResponse(org.apache.http.HttpResponse httpResponse, boolean readContentAsBytes) throws Exception
      Constructor for QHttpResponse that allows reading content as bytes
      Throws:
      Exception
    • QHttpResponse

      public QHttpResponse(org.apache.http.HttpResponse httpResponse) throws Exception
      Constructor for qHttpResponse
      Throws:
      Exception
  • Method Details

    • getStatusCode

      public Integer getStatusCode()
      Getter for statusCode
    • setStatusCode

      public void setStatusCode(Integer statusCode)
      Setter for statusCode
    • getStatusProtocolVersion

      public String getStatusProtocolVersion()
      Getter for statusProtocolVersion
    • setStatusProtocolVersion

      public void setStatusProtocolVersion(String statusProtocolVersion)
      Setter for statusProtocolVersion
    • getStatusReasonPhrase

      public String getStatusReasonPhrase()
      Getter for statusReasonPhrase
    • setStatusReasonPhrase

      public void setStatusReasonPhrase(String statusReasonPhrase)
      Setter for statusReasonPhrase
    • getHeaderList

      public List<org.apache.http.Header> getHeaderList()
      Getter for headerList
    • setHeaderList

      public void setHeaderList(List<org.apache.http.Header> headerList)
      Setter for headerList
    • getContent

      public String getContent()
      Getter for content
    • setContent

      public void setContent(String content)
      Setter for content
    • withContent

      public QHttpResponse withContent(String content)
      Fluent setter for content
    • withStatusCode

      public QHttpResponse withStatusCode(Integer statusCode)
      Fluent setter for statusCode
    • withStatusProtocolVersion

      public QHttpResponse withStatusProtocolVersion(String statusProtocolVersion)
      Fluent setter for statusProtocolVersion
    • withStatusReasonPhrase

      public QHttpResponse withStatusReasonPhrase(String statusReasonPhrase)
      Fluent setter for statusReasonPhrase
    • withHeaderList

      public QHttpResponse withHeaderList(List<org.apache.http.Header> headerList)
      Fluent setter for headerList
    • getContentBytes

      public byte[] getContentBytes()
      Getter for contentBytes
    • setContentBytes

      public void setContentBytes(byte[] contentBytes)
      Setter for contentBytes
    • withContentBytes

      public QHttpResponse withContentBytes(byte[] contentBytes)
      Fluent setter for contentBytes