Class QHttpResponse
java.lang.Object
com.kingsrook.qqq.backend.module.api.actions.QHttpResponse
class to contain httpResponse data from closable responses
-
Constructor Summary
ConstructorsConstructorDescriptionDefault Constructor for qHttpResponseQHttpResponse
(org.apache.http.HttpResponse httpResponse) Constructor for qHttpResponseQHttpResponse
(org.apache.http.HttpResponse httpResponse, boolean readContentAsBytes) Constructor for QHttpResponse that allows reading content as bytes -
Method Summary
Modifier and TypeMethodDescriptionGetter for contentbyte[]
Getter for contentBytesList
<org.apache.http.Header> Getter for headerListGetter for statusCodeGetter for statusProtocolVersionGetter for statusReasonPhrasevoid
setContent
(String content) Setter for contentvoid
setContentBytes
(byte[] contentBytes) Setter for contentBytesvoid
setHeaderList
(List<org.apache.http.Header> headerList) Setter for headerListvoid
setStatusCode
(Integer statusCode) Setter for statusCodevoid
setStatusProtocolVersion
(String statusProtocolVersion) Setter for statusProtocolVersionvoid
setStatusReasonPhrase
(String statusReasonPhrase) Setter for statusReasonPhrasewithContent
(String content) Fluent setter for contentwithContentBytes
(byte[] contentBytes) Fluent setter for contentByteswithHeaderList
(List<org.apache.http.Header> headerList) Fluent setter for headerListwithStatusCode
(Integer statusCode) Fluent setter for statusCodewithStatusProtocolVersion
(String statusProtocolVersion) Fluent setter for statusProtocolVersionwithStatusReasonPhrase
(String statusReasonPhrase) Fluent setter for statusReasonPhrase
-
Constructor Details
-
QHttpResponse
public QHttpResponse()Default Constructor for qHttpResponse -
QHttpResponse
-
QHttpResponse
-
-
Method Details
-
getStatusCode
Getter for statusCode -
setStatusCode
Setter for statusCode -
getStatusProtocolVersion
Getter for statusProtocolVersion -
setStatusProtocolVersion
Setter for statusProtocolVersion -
getStatusReasonPhrase
Getter for statusReasonPhrase -
setStatusReasonPhrase
Setter for statusReasonPhrase -
getHeaderList
Getter for headerList -
setHeaderList
Setter for headerList -
getContent
Getter for content -
setContent
Setter for content -
withContent
Fluent setter for content -
withStatusCode
Fluent setter for statusCode -
withStatusProtocolVersion
Fluent setter for statusProtocolVersion -
withStatusReasonPhrase
Fluent setter for statusReasonPhrase -
withHeaderList
Fluent setter for headerList -
getContentBytes
public byte[] getContentBytes()Getter for contentBytes -
setContentBytes
public void setContentBytes(byte[] contentBytes) Setter for contentBytes -
withContentBytes
Fluent setter for contentBytes
-