public static class SimpleHttp.Response extends Object
| Constructor and Description |
|---|
Response(org.apache.http.HttpResponse response) |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
asJson() |
<T> T |
asJson(Class<T> type) |
<T> T |
asJson(com.fasterxml.jackson.core.type.TypeReference<T> type) |
String |
asString() |
void |
close() |
int |
getStatus() |
public int getStatus()
throws IOException
IOExceptionpublic com.fasterxml.jackson.databind.JsonNode asJson()
throws IOException
IOExceptionpublic <T> T asJson(Class<T> type) throws IOException
IOExceptionpublic <T> T asJson(com.fasterxml.jackson.core.type.TypeReference<T> type)
throws IOException
IOExceptionpublic String asString() throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionCopyright © 2017 JBoss by Red Hat. All rights reserved.