public class GsonResponseParser<T> extends Object implements ResponseParser<T>
| Constructor and Description |
|---|
GsonResponseParser() |
GsonResponseParser(com.google.gson.Gson gson) |
| Modifier and Type | Method and Description |
|---|---|
MarshallingConfig |
getMarshallingConfig()
The marshalling config sets options for reading and processing data
|
List<T> |
handleResponse(HeaderAndBody httpResponse,
Class<T> responseType)
UnMarshall a response and return an object array.
|
void |
setMarshallingConfig(MarshallingConfig marshallingConfig) |
public GsonResponseParser()
public GsonResponseParser(com.google.gson.Gson gson)
public List<T> handleResponse(HeaderAndBody httpResponse, Class<T> responseType)
ResponseParserhandleResponse in interface ResponseParser<T>httpResponse - the data from the serverresponseType - the type to marshal topublic MarshallingConfig getMarshallingConfig()
getMarshallingConfig in interface ResponseParser<T>public void setMarshallingConfig(MarshallingConfig marshallingConfig)
Copyright © 2015 JBoss by Red Hat. All rights reserved.