ObjectParser
instead.@Deprecated public interface HttpParser
Implementations should normally be thread-safe.
Modifier and Type | Method and Description |
---|---|
String |
getContentType()
Deprecated.
Returns the content type.
|
<T> T |
parse(HttpResponse response,
Class<T> dataClass)
Deprecated.
Parses the given HTTP response into a new instance of the the given data class of key/value
pairs.
|
String getContentType()
<T> T parse(HttpResponse response, Class<T> dataClass) throws IOException
How the parsing is performed is not restricted by this interface, and is instead defined by the
concrete implementation. Implementations should check
HttpResponse.isSuccessStatusCode()
to know whether they are parsing a success or error
response.
IOException
Copyright © 2011-2012 Google. All Rights Reserved.