Class GraphQLHandlerOptions

java.lang.Object
io.vertx.ext.web.handler.graphql.GraphQLHandlerOptions

public class GraphQLHandlerOptions extends Object
Options for configuring the GraphQLHandler.
Author:
Thomas Segismont
  • Field Details

    • DEFAULT_REQUEST_BATCHING_ENABLED

      public static final boolean DEFAULT_REQUEST_BATCHING_ENABLED
      Whether request batching should be enabled by default = false.
      See Also:
    • DEFAULT_REQUEST_MULTIPART_ENABLED

      public static final boolean DEFAULT_REQUEST_MULTIPART_ENABLED
      Whether a multipart request should be enabled by default = false
      See Also:
  • Constructor Details

    • GraphQLHandlerOptions

      public GraphQLHandlerOptions()
      Default constructor.
    • GraphQLHandlerOptions

      public GraphQLHandlerOptions(GraphQLHandlerOptions other)
      Copy constructor.
      Parameters:
      other - the options to copy
    • GraphQLHandlerOptions

      public GraphQLHandlerOptions(JsonObject json)
      Constructor to create options from JSON.
      Parameters:
      json - the JSON
  • Method Details

    • toJson

      public JsonObject toJson()
      Returns:
      a JSON representation of these options
    • isRequestBatchingEnabled

      public boolean isRequestBatchingEnabled()
      Returns:
      true if request batching should be enabled, false otherwise
    • setRequestBatchingEnabled

      public GraphQLHandlerOptions setRequestBatchingEnabled(boolean requestBatchingEnabled)
      Whether request batching should be enabled. Defaults to false.
      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

      public GraphQLHandlerOptions setRequestMultipartEnabled(boolean requestMultipartEnabled)
      Whether request multipart should be enabled. Defaults to false.
      Parameters:
      requestMultipartEnabled - true to enable request multipart, false otherwise
      Returns:
      a reference to this, so the API can be used fluently