public class RestResponseAsByteArray extends Object
Constructor and Description |
---|
RestResponseAsByteArray(byte[] response,
String statusDescription,
int httpStatusCode) |
Modifier and Type | Method and Description |
---|---|
int |
getHttpStatusCode() |
byte[] |
getResponse() |
String |
getStatusDescription() |
void |
setHttpStatusCode(int httpStatusCode) |
void |
setResponse(byte[] response) |
void |
setStatusDescription(String statusDescription) |
String |
toPrettyString() |
String |
toString() |
public RestResponseAsByteArray(byte[] response, String statusDescription, int httpStatusCode)
public byte[] getResponse()
public void setResponse(byte[] response)
response
- the response to setpublic int getHttpStatusCode()
public void setHttpStatusCode(int httpStatusCode)
httpStatusCode
- the httpStatusCode to setpublic String getStatusDescription()
public void setStatusDescription(String statusDescription)
statusDescription
- the statusDescription to setpublic String toPrettyString()
Copyright © 2017. All rights reserved.