Class GraphQlSupport.Builder

    • Method Detail

      • invocationHandler

        public GraphQlSupport.Builder invocationHandler​(InvocationHandler handler)
        InvocationHandler to execute GraphQl requests.
        Parameters:
        handler - handler to use
        Returns:
        updated builder instance
      • webContext

        public GraphQlSupport.Builder webContext​(String path)
        Set a new root context for REST API of graphQL.
        Parameters:
        path - context to use
        Returns:
        updated builder instance
      • schemaUri

        public GraphQlSupport.Builder schemaUri​(String uri)
        Configure URI that will serve the GraphQL schema under the context root.
        Parameters:
        uri - URI of the schema
        Returns:
        updated builder instance
      • crossOriginConfig

        public GraphQlSupport.Builder crossOriginConfig​(CrossOriginConfig crossOriginConfig)
        Set the CORS config from the specified CrossOriginConfig object.
        Parameters:
        crossOriginConfig - CrossOriginConfig containing CORS set-up
        Returns:
        updated builder instance
      • executor

        public GraphQlSupport.Builder executor​(ExecutorService executor)
        Executor service to use for GraphQL processing.
        Parameters:
        executor - executor service
        Returns:
        updated builder instance