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
IOException
public com.fasterxml.jackson.databind.JsonNode asJson() throws IOException
IOException
public <T> T asJson(Class<T> type) throws IOException
IOException
public <T> T asJson(com.fasterxml.jackson.core.type.TypeReference<T> type) throws IOException
IOException
public String asString() throws IOException
IOException
public String getFirstHeader(String name) throws IOException
IOException
public List<String> getHeader(String name) throws IOException
IOException
public void close() throws IOException
IOException
Copyright © 2021 JBoss by Red Hat. All rights reserved.