Class BatchInputPreProcessResult


  • public class BatchInputPreProcessResult
    extends java.lang.Object
    Wraps the result of pre processing a batch. Allows customization of the response code and message if the batch isn't to be executed.
    • Constructor Detail

      • BatchInputPreProcessResult

        public BatchInputPreProcessResult​(graphql.kickstart.execution.input.GraphQLBatchedInvocationInput graphQLBatchedInvocationInput)
      • BatchInputPreProcessResult

        public BatchInputPreProcessResult​(int statusCode,
                                          java.lang.String messsage)
    • Method Detail

      • isExecutable

        public boolean isExecutable()
        Returns:
        If the servlet should try executing this batched input
      • getBatchedInvocationInput

        public graphql.kickstart.execution.input.GraphQLBatchedInvocationInput getBatchedInvocationInput()
        Returns:
        the batched input the servlet will try to execute.
      • getStatusMessage

        public java.lang.String getStatusMessage()
        Returns:
        status message the servlet will use if isExecutable is false.
      • getStatusCode

        public int getStatusCode()
        Returns:
        status code the servlet will use if if isExecutable is false.