Class BatchInputPreProcessResult

java.lang.Object
graphql.kickstart.servlet.input.BatchInputPreProcessResult

public class BatchInputPreProcessResult extends 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 Details

    • BatchInputPreProcessResult

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

      public BatchInputPreProcessResult(int statusCode, String messsage)
  • Method Details

    • 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 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.