com.kobylynskyi.graphql.codegen.extension.GrowingIOConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of graphql-java-codegen Show documentation
Show all versions of graphql-java-codegen Show documentation
Java Code Generator based on GraphQL schema
The newest version!
package com.kobylynskyi.graphql.codegen.extension;
import java.util.Map;
/**
* @author [email protected]
* @version 1.0, 2020/10/22
*/
public class GrowingIOConfig {
private Integer responseProjectionMaxDepth = 3;
private String graphQLServerHost;
private Map headers;
public GrowingIOConfig(String graphQLServerHost) {
this.graphQLServerHost = graphQLServerHost;
}
public GrowingIOConfig(String graphQLServerHost, Map headers) {
this.graphQLServerHost = graphQLServerHost;
this.headers = headers;
}
public GrowingIOConfig(String graphQLServerHost, Integer responseProjectionMaxDepth) {
this.responseProjectionMaxDepth = responseProjectionMaxDepth;
this.graphQLServerHost = graphQLServerHost;
}
public GrowingIOConfig(String graphQLServerHost, Integer responseProjectionMaxDepth, Map headers) {
this.responseProjectionMaxDepth = responseProjectionMaxDepth;
this.graphQLServerHost = graphQLServerHost;
this.headers = headers;
}
private GrowingIOConfig() {
}
public Integer getResponseProjectionMaxDepth() {
return responseProjectionMaxDepth;
}
public String getGraphQLServerHost() {
return graphQLServerHost;
}
public Map getHeaders() {
return headers;
}
}