public class RestResponse extends Object
| Constructor and Description |
|---|
RestResponse() |
| Modifier and Type | Method and Description |
|---|---|
String |
getContent() |
String |
getContentType() |
Exception |
getException() |
com.fasterxml.jackson.databind.ObjectMapper |
getMapper() |
byte[] |
getRawBytes() |
int |
getStatusCode() |
void |
setException(Exception exception) |
void |
setHttpURLConnection(HttpURLConnection httpConnection) |
com.fasterxml.jackson.databind.JsonNode |
toJson() |
public void setHttpURLConnection(HttpURLConnection httpConnection)
public String getContentType()
public int getStatusCode()
throws IOException
IOExceptionpublic Exception getException()
public void setException(Exception exception)
public String getContent() throws IOException
IOExceptionpublic byte[] getRawBytes()
throws IOException
IOExceptionpublic com.fasterxml.jackson.databind.JsonNode toJson()
throws IOException
IOExceptionpublic com.fasterxml.jackson.databind.ObjectMapper getMapper()
Copyright © 2018. All rights reserved.