Class SimpleHttp.Response
- java.lang.Object
- 
- org.keycloak.broker.provider.util.SimpleHttp.Response
 
- 
- All Implemented Interfaces:
- AutoCloseable
 - Enclosing class:
- SimpleHttp
 
 public static class SimpleHttp.Response extends Object implements AutoCloseable 
- 
- 
Constructor SummaryConstructors Constructor Description Response(org.apache.http.HttpResponse response)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNodeasJson()<T> TasJson(com.fasterxml.jackson.core.type.TypeReference<T> type)<T> TasJson(Class<T> type)StringasString()voidclose()org.apache.http.Header[]getAllHeaders()org.apache.http.entity.ContentTypegetContentType()CharsetgetContentTypeCharset()StringgetFirstHeader(String name)List<String>getHeader(String name)intgetStatus()
 
- 
- 
- 
Method Detail- 
getStatuspublic int getStatus() throws IOException- Throws:
- IOException
 
 - 
asJsonpublic com.fasterxml.jackson.databind.JsonNode asJson() throws IOException- Throws:
- IOException
 
 - 
asJsonpublic <T> T asJson(Class<T> type) throws IOException - Throws:
- IOException
 
 - 
asJsonpublic <T> T asJson(com.fasterxml.jackson.core.type.TypeReference<T> type) throws IOException- Throws:
- IOException
 
 - 
asStringpublic String asString() throws IOException - Throws:
- IOException
 
 - 
getFirstHeaderpublic String getFirstHeader(String name) throws IOException - Throws:
- IOException
 
 - 
getHeaderpublic List<String> getHeader(String name) throws IOException - Throws:
- IOException
 
 - 
getAllHeaderspublic org.apache.http.Header[] getAllHeaders() throws IOException- Throws:
- IOException
 
 - 
getContentTypepublic org.apache.http.entity.ContentType getContentType() throws IOException- Throws:
- IOException
 
 - 
getContentTypeCharsetpublic Charset getContentTypeCharset() throws IOException - Throws:
- IOException
 
 - 
closepublic void close() throws IOException- Specified by:
- closein interface- AutoCloseable
- Throws:
- IOException
 
 
- 
 
-