public interface InvocationHandler
Invocation handler that allows execution of GraphQL requests without a WebServer.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
Fluent API builder to configure the invocation handler. -
Method Summary
Modifier and TypeMethodDescriptionConfigured set of exceptions that are blacklisted.static InvocationHandler.Builder
builder()
Fluent API builder to configure the invocation handler.static InvocationHandler
create
(graphql.schema.GraphQLSchema schema) Create a handler for GraphQL schema.Configured default error message.Execute a GraphQL query.Execute a GraphQL query.The schema of this GraphQL endpoint.Configured set of exceptions that are whitelisted.
-
Method Details
-
create
Create a handler for GraphQL schema.- Parameters:
schema
- schema to use- Returns:
- a new invocation handler
-
builder
Fluent API builder to configure the invocation handler.- Returns:
- a new builder
-
execute
Execute a GraphQL query.- Parameters:
query
- query string- Returns:
- GraphQL result
-
execute
Execute a GraphQL query.- Parameters:
query
- query stringoperationName
- operation namevariables
- variables to use (optional)- Returns:
- GraphQL result
-
schemaString
String schemaString()The schema of this GraphQL endpoint.- Returns:
- schema as a string
-
defaultErrorMessage
String defaultErrorMessage()Configured default error message.- Returns:
- default error message
-
blacklistedExceptions
Configured set of exceptions that are blacklisted.- Returns:
- blacklisted exception class set
-
whitelistedExceptions
Configured set of exceptions that are whitelisted.- Returns:
- whitelisted exception class set
-