public class GraphQLHandlerOptions extends Object
GraphQLHandler
.Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_REQUEST_BATCHING_ENABLED
Whether request batching should be enabled by default = false.
|
static boolean |
DEFAULT_REQUEST_MULTIPART_ENABLED
Whether a multipart request should be enabled by default = false
|
Constructor and Description |
---|
GraphQLHandlerOptions()
Default constructor.
|
GraphQLHandlerOptions(GraphQLHandlerOptions other)
Copy constructor.
|
GraphQLHandlerOptions(JsonObject json)
Constructor to create options from JSON.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isRequestBatchingEnabled() |
boolean |
isRequestMultipartEnabled() |
GraphQLHandlerOptions |
setRequestBatchingEnabled(boolean requestBatchingEnabled)
Whether request batching should be enabled.
|
GraphQLHandlerOptions |
setRequestMultipartEnabled(boolean requestMultipartEnabled)
Whether request multipart should be enabled.
|
JsonObject |
toJson() |
public static final boolean DEFAULT_REQUEST_BATCHING_ENABLED
public static final boolean DEFAULT_REQUEST_MULTIPART_ENABLED
public GraphQLHandlerOptions()
public GraphQLHandlerOptions(GraphQLHandlerOptions other)
other
- the options to copypublic GraphQLHandlerOptions(JsonObject json)
json
- the JSONpublic JsonObject toJson()
public boolean isRequestBatchingEnabled()
public GraphQLHandlerOptions setRequestBatchingEnabled(boolean requestBatchingEnabled)
false
.requestBatchingEnabled
- true to enable request batching, false otherwisepublic boolean isRequestMultipartEnabled()
public GraphQLHandlerOptions setRequestMultipartEnabled(boolean requestMultipartEnabled)
false
.requestMultipartEnabled
- true to enable request multipart, false otherwiseCopyright © 2024 Eclipse. All rights reserved.