Class GalasaGsonBuilder

java.lang.Object
dev.galasa.framework.spi.utils.GalasaGsonBuilder

public class GalasaGsonBuilder extends Object
  • 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

      public GalasaGsonBuilder registerTypeAdapter(Type type, Object object)
    • setDateFormat

      public GalasaGsonBuilder setDateFormat(String pattern)
    • getBuilder

      public com.google.gson.GsonBuilder getBuilder()
    • getGson

      public com.google.gson.Gson getGson()