Code example for GsonBuilder

Methods: create

    public void setGsonBuilder(GsonBuilder gsonBuilder) {
        if (!(responseParser instanceof GsonResponseParser && requestBuilder instanceof GsonRequestBuilder)) {
            throw new IllegalStateException("responseBuilder is not an instance of GsonResponseBuilder");
        } else { 
            this.gsonBulder = gsonBuilder;
            ((GsonResponseParser) responseParser).setGson(gsonBuilder.create());
            ((GsonRequestBuilder) requestBuilder).setGson(gsonBuilder.create());
     * @return a {@link AuthenticationModule} which will be used for 
     * Authentication. 
    public AuthenticationModule getAuthModule() { 
        return authModule;
     * This value must be set to use Authentication in Pipes build from this 
Experience pair programming with AI  Get Codota for Java