public class ResponseCache
extends java.lang.Object
| Constructor and Description |
|---|
ResponseCache(org.apache.http.HttpResponse response) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.http.entity.ContentType |
getContentType() |
java.lang.String |
getEntity() |
com.google.gson.JsonElement |
getEntityAsJson() |
com.google.gson.JsonArray |
getEntityAsJsonArray() |
com.google.gson.JsonObject |
getEntityAsJsonObject() |
org.apache.http.Header |
getFirstHeader(java.lang.String name) |
org.springframework.http.HttpStatus |
getSpringHttpStatus() |
int |
getStatus() |
public ResponseCache(org.apache.http.HttpResponse response)
throws java.io.IOException
java.io.IOExceptionpublic int getStatus()
public org.springframework.http.HttpStatus getSpringHttpStatus()
public java.lang.String getEntity()
public com.google.gson.JsonElement getEntityAsJson()
throws java.io.IOException
java.io.IOExceptionpublic com.google.gson.JsonObject getEntityAsJsonObject()
throws java.io.IOException
java.io.IOExceptionpublic com.google.gson.JsonArray getEntityAsJsonArray()
throws java.io.IOException
java.io.IOExceptionpublic org.apache.http.entity.ContentType getContentType()
public org.apache.http.Header getFirstHeader(java.lang.String name)