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() |
String |
getFirstHeader(String name) |
List<String> |
getHeader(String name) |
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 String getFirstHeader(String name) throws IOException
IOExceptionpublic List<String> getHeader(String name) throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionCopyright © 2021 JBoss by Red Hat. All rights reserved.