Class HttpClientResponse
java.lang.Object
org.eclipse.dirigible.api.v3.http.client.HttpClientResponse
public class HttpClientResponse extends Object
The Class HttpClientResponse.
-
Constructor Summary
Constructors Constructor Description HttpClientResponse() -
Method Summary
Modifier and Type Method Description byte[]getData()Gets the data.List<HttpClientHeader>getHeaders()Gets the headers.StringgetProtocol()Gets the protocol.intgetStatusCode()Gets the status code.StringgetStatusMessage()Gets the status message.StringgetText()Gets the text.booleanisBinary()Checks if is binary.voidsetBinary(boolean binary)Sets the binary.voidsetData(byte[] data)Sets the data.voidsetHeaders(List<HttpClientHeader> headers)Sets the headers.voidsetProtocol(String protocol)Sets the protocol.voidsetStatusCode(int statusCode)Sets the status code.voidsetStatusMessage(String statusMessage)Sets the status message.voidsetText(String text)Sets the text.
-
Constructor Details
-
HttpClientResponse
public HttpClientResponse()
-
-
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
Gets the status message.- Returns:
- the status message
-
setStatusMessage
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
Gets the text.- Returns:
- the text
-
setText
Sets the text.- Parameters:
text- the new text
-
getProtocol
Gets the protocol.- Returns:
- the protocol
-
setProtocol
Sets the protocol.- Parameters:
protocol- the new protocol
-
getHeaders
Gets the headers.- Returns:
- the headers
-
setHeaders
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
-