org.jboss.aerogear.android.impl.pipeline
Class GsonRequestBuilder<T>
java.lang.Object
org.jboss.aerogear.android.impl.pipeline.GsonRequestBuilder<T>
- All Implemented Interfaces:
- RequestBuilder<T>
public class GsonRequestBuilder<T>
- extends Object
- implements RequestBuilder<T>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONTENT_TYPE
public static final String CONTENT_TYPE
- See Also:
- Constant Field Values
GsonRequestBuilder
public GsonRequestBuilder()
GsonRequestBuilder
public GsonRequestBuilder(com.google.gson.Gson gson)
getBody
public byte[] getBody(T data)
- Description copied from interface:
RequestBuilder
- This method creates the body of a request for a Pipe to use.
This is basically a serialization style operation.
- Specified by:
getBody in interface RequestBuilder<T>
- Parameters:
data - an object to form a body out of.
- Returns:
- A request body which represents the data parameter
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)
getContentType
public String getContentType()
- Specified by:
getContentType in interface RequestBuilder<T>
- Returns:
- the Content-Type header to be sent to the server.
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.