Class GraphQLHandlerOptions
java.lang.Object
io.vertx.ext.web.handler.graphql.GraphQLHandlerOptions
Options for configuring the
GraphQLHandler.- Author:
- Thomas Segismont
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanWhether request batching should be enabled by default = false.static final booleanWhether a multipart request should be enabled by default = false -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.Constructor to create options from JSON.Copy constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleansetRequestBatchingEnabled(boolean requestBatchingEnabled) Whether request batching should be enabled.setRequestMultipartEnabled(boolean requestMultipartEnabled) Whether request multipart should be enabled.toJson()
-
Field Details
-
DEFAULT_REQUEST_BATCHING_ENABLED
public static final boolean DEFAULT_REQUEST_BATCHING_ENABLEDWhether request batching should be enabled by default = false.- See Also:
-
DEFAULT_REQUEST_MULTIPART_ENABLED
public static final boolean DEFAULT_REQUEST_MULTIPART_ENABLEDWhether a multipart request should be enabled by default = false- See Also:
-
-
Constructor Details
-
GraphQLHandlerOptions
public GraphQLHandlerOptions()Default constructor. -
GraphQLHandlerOptions
Copy constructor.- Parameters:
other- the options to copy
-
GraphQLHandlerOptions
Constructor to create options from JSON.- Parameters:
json- the JSON
-
-
Method Details
-
toJson
- Returns:
- a JSON representation of these options
-
isRequestBatchingEnabled
public boolean isRequestBatchingEnabled()- Returns:
- true if request batching should be enabled, false otherwise
-
setRequestBatchingEnabled
Whether request batching should be enabled. Defaults tofalse.- Parameters:
requestBatchingEnabled- true to enable request batching, false otherwise- Returns:
- a reference to this, so the API can be used fluently
-
isRequestMultipartEnabled
public boolean isRequestMultipartEnabled()- Returns:
- true if request multipart should be enabled, false otherwise
-
setRequestMultipartEnabled
Whether request multipart should be enabled. Defaults tofalse.- Parameters:
requestMultipartEnabled- true to enable request multipart, false otherwise- Returns:
- a reference to this, so the API can be used fluently
-