public class GsonRequestBuilder<T> extends Object implements RequestBuilder<T>
| Modifier and Type | Field and Description |
|---|---|
static String |
CONTENT_TYPE |
| Constructor and Description |
|---|
GsonRequestBuilder() |
GsonRequestBuilder(com.google.gson.Gson gson) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBody(T data)
This method creates the body of a request for a Pipe to use.
|
String |
getContentType() |
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) |
MarshallingConfig |
getMarshallingConfig()
The marshalling config sets options for reading and processing data
|
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) |
void |
setMarshallingConfig(MarshallingConfig marshallingConfig) |
public static final String CONTENT_TYPE
public GsonRequestBuilder()
public GsonRequestBuilder(com.google.gson.Gson gson)
public byte[] getBody(T data)
RequestBuildergetBody in interface RequestBuilder<T>data - an object to form a body out of.@Deprecated public com.google.gson.Gson getGson()
PipeConfig.setGsonBuilder(com.google.gson.GsonBuilder)@Deprecated public void setGson(com.google.gson.Gson gson)
PipeConfig.setGsonBuilder(com.google.gson.GsonBuilder)gson - the gson serializer to usepublic String getContentType()
getContentType in interface RequestBuilder<T>public MarshallingConfig getMarshallingConfig()
getMarshallingConfig in interface RequestBuilder<T>public void setMarshallingConfig(MarshallingConfig marshallingConfig)
Copyright © 2014 JBoss by Red Hat. All rights reserved.