Package graphql.kickstart.servlet.input
Class BatchInputPreProcessResult
java.lang.Object
graphql.kickstart.servlet.input.BatchInputPreProcessResult
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 Summary
ConstructorsConstructorDescriptionBatchInputPreProcessResult
(int statusCode, String messsage) BatchInputPreProcessResult
(graphql.kickstart.execution.input.GraphQLBatchedInvocationInput graphQLBatchedInvocationInput) -
Method Summary
Modifier and TypeMethodDescriptiongraphql.kickstart.execution.input.GraphQLBatchedInvocationInput
int
boolean
-
Constructor Details
-
BatchInputPreProcessResult
public BatchInputPreProcessResult(graphql.kickstart.execution.input.GraphQLBatchedInvocationInput graphQLBatchedInvocationInput) -
BatchInputPreProcessResult
-
-
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
- 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.
-