public class HttpResponse extends Object
HttpRESTUtils| Modifier and Type | Field and Description |
|---|---|
String |
responseBody
the body of the response
|
int |
responseCode
The http response code
|
Map<String,String[]> |
responseHeaders
The map of the response headers,
this may be null
|
String |
responseMessage
The response message
|
| Constructor and Description |
|---|
HttpResponse(int responseCode) |
HttpResponse(int responseCode,
String responseMessage,
String responseBody,
Map<String,String[]> responseHeaders) |
| Modifier and Type | Method and Description |
|---|---|
String |
getResponseBody() |
int |
getResponseCode() |
Map<String,String[]> |
getResponseHeaders() |
String |
getResponseMessage() |
void |
setResponseBody(String responseBody) |
void |
setResponseCode(int responseCode) |
void |
setResponseHeaders(Map<String,String[]> responseHeaders) |
void |
setResponseMessage(String responseMessage) |
public int responseCode
public String responseMessage
public String responseBody
public int getResponseCode()
public void setResponseCode(int responseCode)
public String getResponseMessage()
public void setResponseMessage(String responseMessage)
public String getResponseBody()
public void setResponseBody(String responseBody)
Copyright © 2007–2018 CARET, University of Cambridge. All rights reserved.