AeroGear Android Library 1.1.0

org.jboss.aerogear.android.impl.pipeline
Class GsonResponseParser<T>

java.lang.Object
  extended by org.jboss.aerogear.android.impl.pipeline.GsonResponseParser<T>
All Implemented Interfaces:
ResponseParser<T>

public class GsonResponseParser<T>
extends Object
implements ResponseParser<T>


Constructor Summary
GsonResponseParser()
           
GsonResponseParser(com.google.gson.Gson gson)
           
 
Method Summary
 com.google.gson.Gson getGson()
          Deprecated. This method exists to support another deprecated method while we transition off of it. PipeConfig.setGsonBuilder(com.google.gson.GsonBuilder)
 T[] handleArrayResponse(String response, Class<T[]> responseType)
           
 T handleResponse(String response, Class<T> responseType)
           
 void setGson(com.google.gson.Gson gson)
          Deprecated. This method exists to support another deprecated method while we transition off of it. PipeConfig.setGsonBuilder(com.google.gson.GsonBuilder)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GsonResponseParser

public GsonResponseParser()

GsonResponseParser

public GsonResponseParser(com.google.gson.Gson gson)
Method Detail

handleResponse

public T handleResponse(String response,
                        Class<T> responseType)
Specified by:
handleResponse in interface ResponseParser<T>

handleArrayResponse

public T[] handleArrayResponse(String response,
                               Class<T[]> responseType)
Specified by:
handleArrayResponse in interface ResponseParser<T>

getGson

@Deprecated
public com.google.gson.Gson getGson()
Deprecated. This method exists to support another deprecated method while we transition off of it. PipeConfig.setGsonBuilder(com.google.gson.GsonBuilder)


setGson

@Deprecated
public void setGson(com.google.gson.Gson gson)
Deprecated. This method exists to support another deprecated method while we transition off of it. PipeConfig.setGsonBuilder(com.google.gson.GsonBuilder)


AeroGear Android Library 1.1.0

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.