Package graphql.kickstart.servlet.input
Class BatchInputPreProcessResult
- java.lang.Object
-
- graphql.kickstart.servlet.input.BatchInputPreProcessResult
-
public class BatchInputPreProcessResult extends java.lang.ObjectWraps the result of pre processing a batch. Allows customization of the response code and message if the batch isn't to be executed.
-
-
Constructor Summary
Constructors Constructor Description BatchInputPreProcessResult(int statusCode, java.lang.String messsage)BatchInputPreProcessResult(graphql.kickstart.execution.input.GraphQLBatchedInvocationInput graphQLBatchedInvocationInput)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description graphql.kickstart.execution.input.GraphQLBatchedInvocationInputgetBatchedInvocationInput()intgetStatusCode()java.lang.StringgetStatusMessage()booleanisExecutable()
-
-
-
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.
-
-