public class JsonBodyReader extends Object implements BodyReader
Constructor and Description |
---|
JsonBodyReader() |
Modifier and Type | Method and Description |
---|---|
boolean |
canRead(com.ning.http.client.Response response) |
<T> T |
readEntity(com.ning.http.client.Response resp,
Class<T> entityClass) |
<T> T |
readEntity(com.ning.http.client.Response resp,
Class<T> entityClass,
String charset) |
<T> T |
readEntity(com.ning.http.client.Response resp,
com.fasterxml.jackson.core.type.TypeReference valueTypeRef) |
<T> T |
readEntity(com.ning.http.client.Response resp,
com.fasterxml.jackson.core.type.TypeReference valueTypeRef,
String charset) |
public boolean canRead(com.ning.http.client.Response response)
canRead
in interface BodyReader
public <T> T readEntity(com.ning.http.client.Response resp, Class<T> entityClass) throws IOException
readEntity
in interface BodyReader
IOException
public <T> T readEntity(com.ning.http.client.Response resp, Class<T> entityClass, String charset) throws IOException
readEntity
in interface BodyReader
IOException
public <T> T readEntity(com.ning.http.client.Response resp, com.fasterxml.jackson.core.type.TypeReference valueTypeRef) throws IOException
readEntity
in interface BodyReader
IOException
public <T> T readEntity(com.ning.http.client.Response resp, com.fasterxml.jackson.core.type.TypeReference valueTypeRef, String charset) throws IOException
readEntity
in interface BodyReader
IOException
Copyright © 2009–2014. All rights reserved.