Package dev.galasa.framework.spi.utils
Class GalasaGsonBuilder
java.lang.Object
dev.galasa.framework.spi.utils.GalasaGsonBuilder
-
Constructor Summary
ConstructorDescriptionGalasaGsonBuilder
(boolean setPrettyPrinting) Creates a Gson builder to transform objects to JSON for use on the API endpoints. -
Method Summary
Modifier and TypeMethodDescriptioncom.google.gson.GsonBuilder
com.google.gson.Gson
getGson()
registerTypeAdapter
(Type type, Object object) setDateFormat
(String pattern)
-
Constructor Details
-
GalasaGsonBuilder
public GalasaGsonBuilder() -
GalasaGsonBuilder
public GalasaGsonBuilder(boolean setPrettyPrinting) Creates a Gson builder to transform objects to JSON for use on the API endpoints. HTMLEscaping is disabled as when it is enabled it will tranform special characters to their unicode character references
-
-
Method Details
-
registerTypeAdapter
-
setDateFormat
-
getBuilder
public com.google.gson.GsonBuilder getBuilder() -
getGson
public com.google.gson.Gson getGson()
-