public class VraptorGsonBuilder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected com.google.gson.GsonBuilder |
builder |
Constructor and Description |
---|
VraptorGsonBuilder(java.util.Collection<com.google.gson.JsonSerializer<?>> serializers,
java.util.Collection<com.google.gson.ExclusionStrategy> exclusions) |
Modifier and Type | Method and Description |
---|---|
com.google.gson.Gson |
create() |
java.lang.String |
getAlias() |
void |
indented() |
boolean |
isWithoutRoot() |
void |
setAlias(java.lang.String alias) |
void |
setExclusionStrategies(com.google.gson.ExclusionStrategy... strategies) |
void |
setWithoutRoot(boolean withoutRoot) |
public VraptorGsonBuilder(java.util.Collection<com.google.gson.JsonSerializer<?>> serializers, java.util.Collection<com.google.gson.ExclusionStrategy> exclusions)
public boolean isWithoutRoot()
public void setWithoutRoot(boolean withoutRoot)
public java.lang.String getAlias()
public void setAlias(java.lang.String alias)
public void indented()
public void setExclusionStrategies(com.google.gson.ExclusionStrategy... strategies)
public com.google.gson.Gson create()
Copyright © 2013 Caelum. All Rights Reserved.