Index
A B C D E F G H I J L M N O P Q R S T U V W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- AbstractCustomJacksonDeserializer<T> - Class in com.graphql_java_generator.client.response
-
Jackson Deserializer for Custom Scalar.
- AbstractCustomJacksonDeserializer(AbstractCustomJacksonDeserializer<?>, boolean, Class<?>, GraphQLScalarType) - Constructor for class com.graphql_java_generator.client.response.AbstractCustomJacksonDeserializer
- AbstractCustomJacksonDeserializer(Class<?>, GraphQLScalarType) - Constructor for class com.graphql_java_generator.client.response.AbstractCustomJacksonDeserializer
-
The constructor, for non list field.
- AbstractGraphQLRequest - Class in com.graphql_java_generator.client.request
-
This class contains the description for a GraphQL request that will be sent to the server.
- AbstractGraphQLRequest(String) - Constructor for class com.graphql_java_generator.client.request.AbstractGraphQLRequest
-
Creates the GraphQL request, for a full request.
- AbstractGraphQLRequest(String, RequestType, String, InputParameter...) - Constructor for class com.graphql_java_generator.client.request.AbstractGraphQLRequest
-
Create the instance, from the GraphQL request, for a partial request.
Important note: this constructor SHOULD NOT be called by external application. - addImport(Set<String>, String, String) - Method in class com.graphql_java_generator.GraphqlUtils
-
Adds, if necessary the import calculated from the given parameters, into the given set of imports.
- addTypenameFields() - Method in class com.graphql_java_generator.client.request.Fragment
-
Adds the __typename field into this fragment, and all the subojects it contains.
- appendInputParametersToGraphQLRequests(StringBuilder, List<InputParameter>, Map<String, Object>) - Static method in class com.graphql_java_generator.client.request.InputParameter
- appendToGraphQLRequests(StringBuilder, Map<String, Object>) - Method in class com.graphql_java_generator.client.directive.Directive
-
Appends this current directive into the given
StringBuilder
, to build the GraphQL request - appendToGraphQLRequests(StringBuilder, Map<String, Object>) - Method in class com.graphql_java_generator.client.request.AppliedGlobalFragment
-
Appends to the given
StringBuilder
this fragment usage ("...fragmentName") followed by the directive declarations, if any - appendToGraphQLRequests(StringBuilder, Map<String, Object>) - Method in class com.graphql_java_generator.client.request.Fragment
- appendToGraphQLRequests(StringBuilder, Map<String, Object>, boolean) - Method in class com.graphql_java_generator.client.request.QueryField
-
Append this query field in the
StringBuilder
in which the query is being written. - AppliedGlobalFragment - Class in com.graphql_java_generator.client.request
-
A global Fragment, when applied, has a name and may have one or more directives.
- AppliedGlobalFragment(String, QueryTokenizer) - Constructor for class com.graphql_java_generator.client.request.AppliedGlobalFragment
-
Creates an instance for a global fragment, that has been read in the current
QueryTokenizer
. - ARGUMENT_DEFINITION - com.graphql_java_generator.client.directive.DirectiveLocation
B
- BatchLoaderDelegate<K,V> - Interface in com.graphql_java_generator.server.util
-
BatchLoaderDelegate is the interface that identifies Spring Beans that help using graphql-java java-dataloader.
- BatchLoaderDelegateWithContext<K,V> - Interface in com.graphql_java_generator.server.util
-
BatchLoaderDelegateWithContext is the interface that identifies Spring Beans that help using graphql-java java-dataloader.
- build() - Method in class com.graphql_java_generator.client.request.Builder
-
Returns the built
ObjectResponse
. - Builder - Class in com.graphql_java_generator.client.request
-
This builder is provided for compatibility of existing code, that would have been developed before the 1.6 release.
- Builder(Class<? extends AbstractGraphQLRequest>) - Constructor for class com.graphql_java_generator.client.request.Builder
-
This Builder allows to build a Full request, that is request as you can execute in the graphiql interface.
- Builder(Class<? extends AbstractGraphQLRequest>, String, RequestType, InputParameter...) - Constructor for class com.graphql_java_generator.client.request.Builder
-
This Builder allows to build a Partial request, that is a request for only one query/mutation/subscription.
- buildRequest(Map<String, Object>) - Method in class com.graphql_java_generator.client.request.AbstractGraphQLRequest
C
- checkFieldOfGraphQLType(String, Boolean, Class<?>) - Method in class com.graphql_java_generator.client.GraphqlClientUtils
-
Check if the given field is owned by the class of this
ObjectResponse
. - checkIsScalar(Field, Boolean) - Method in class com.graphql_java_generator.client.GraphqlClientUtils
-
This method checks whether the given field (as an attribute) of the given class is a GraphQL scalar, or not, depending on shouldBeScalar.
- checkIsScalar(String, Method, Boolean) - Method in class com.graphql_java_generator.client.GraphqlClientUtils
-
This method checks whether the given field (as a method: getter, query...) of the given class is a GraphQL scalar, or not, depending on shouldBeScalar.
- checkName(String) - Method in class com.graphql_java_generator.client.GraphqlClientUtils
-
Checks that the given GraphQL name is valid.
- checkNextToken(String) - Method in class com.graphql_java_generator.client.request.QueryTokenizer
-
Checks if the next meaningful token is the expected string that is given.
- checkNextTokenStartsWith(String) - Method in class com.graphql_java_generator.client.request.QueryTokenizer
-
Checks if the next meaningful token starts by the expected string that is given.
- code - Variable in class com.graphql_java_generator.client.response.Extension
- column - Variable in class com.graphql_java_generator.client.response.Location
- com.graphql_java_generator - package com.graphql_java_generator
- com.graphql_java_generator.annotation - package com.graphql_java_generator.annotation
-
All annotations used by the GraphQL-generator client part
- com.graphql_java_generator.client - package com.graphql_java_generator.client
- com.graphql_java_generator.client.directive - package com.graphql_java_generator.client.directive
- com.graphql_java_generator.client.request - package com.graphql_java_generator.client.request
-
This package contains all the classes used to generate the requests toward the GraphQL server.
- com.graphql_java_generator.client.response - package com.graphql_java_generator.client.response
-
All classes about the management of the response, coming from the GraphQL server
- com.graphql_java_generator.customscalars - package com.graphql_java_generator.customscalars
-
This package provide "as is" some
GraphQLScalarType
s. - com.graphql_java_generator.exception - package com.graphql_java_generator.exception
- com.graphql_java_generator.server.util - package com.graphql_java_generator.server.util
- concatStreams(Class<T>, boolean, T, T, T, List<? extends T>...) - Method in class com.graphql_java_generator.GraphqlUtils
-
Concatenate a non limited number of lists into a stream.
- CustomScalar - Class in com.graphql_java_generator.customscalars
-
This class represents a custom scalar, with all the information to allow proper execution of the generated code
- CustomScalar(GraphQLScalarType, Class<?>) - Constructor for class com.graphql_java_generator.customscalars.CustomScalar
- customScalarRegistry - Static variable in class com.graphql_java_generator.customscalars.CustomScalarRegistryImpl
-
As we may have or not have Spring at runtime, we manually manage a singleton.
- CustomScalarRegistry - Interface in com.graphql_java_generator.customscalars
-
Registry for all
GraphQLScalarType
available. - CustomScalarRegistryImpl - Class in com.graphql_java_generator.customscalars
- CustomScalarRegistryImpl() - Constructor for class com.graphql_java_generator.customscalars.CustomScalarRegistryImpl
D
- data - Variable in class com.graphql_java_generator.client.response.JsonResponseWrapper
-
This contains the data coming from the GraphQL part.
- Date - Static variable in class com.graphql_java_generator.customscalars.GraphQLScalarTypeDate
-
Custom Scalar for Date management.
- DateTime - Static variable in class com.graphql_java_generator.customscalars.GraphQLScalarTypeDateTime
-
Custom Scalar for DateTime management.
- description - Variable in class com.graphql_java_generator.client.response.Error
- deserialize(JsonParser, DeserializationContext) - Method in class com.graphql_java_generator.client.response.AbstractCustomJacksonDeserializer
- Directive - Class in com.graphql_java_generator.client.directive
-
This object can represent both: A directive definition, as defined in the GraphQL schema, or as a standard GraphQL directive (skip, include, deprecated).
- Directive() - Constructor for class com.graphql_java_generator.client.directive.Directive
-
Default constructor, used by the generated DirectiveRegistryInitialize
- Directive(QueryTokenizer) - Constructor for class com.graphql_java_generator.client.directive.Directive
-
Create a Directive from a
QueryTokenizer
. - DirectiveLocation - Enum in com.graphql_java_generator.client.directive
-
All possible directive locations
- directiveRegistry - Static variable in class com.graphql_java_generator.client.directive.DirectiveRegistryImpl
-
As we may have or not have Spring at runtime, we manually manage a singleton.
- DirectiveRegistry - Interface in com.graphql_java_generator.client.directive
-
Registry for all GraphQL directives that are available, that is: the GraphQL standard directives and the ones that are defined in the GraphQL schema.
- DirectiveRegistryImpl - Class in com.graphql_java_generator.client.directive
- DirectiveRegistryImpl() - Constructor for class com.graphql_java_generator.client.directive.DirectiveRegistryImpl
E
- EMPTY_DELIMITERS - Static variable in class com.graphql_java_generator.client.request.QueryTokenizer
-
The list of character that can separate tokens, and that has no meaning.
- ENUM - com.graphql_java_generator.client.directive.DirectiveLocation
- ENUM_VALUE - com.graphql_java_generator.client.directive.DirectiveLocation
- Error - Class in com.graphql_java_generator.client.response
-
The error POJO, mapped from the GraphQL server response, when an error occurs
- Error() - Constructor for class com.graphql_java_generator.client.response.Error
- errors - Variable in class com.graphql_java_generator.client.response.JsonResponseWrapper
- errorType - Variable in class com.graphql_java_generator.client.response.Error
- exec(Class<T>, Map<String, Object>) - Method in class com.graphql_java_generator.client.request.AbstractGraphQLRequest
-
This method executes the current GraphQL as a query or mutation GraphQL request, and return its response mapped in the relevant POJO.
- exec(Map<String, Object>, SubscriptionCallback<T>, String, Class<R>, Class<T>) - Method in class com.graphql_java_generator.client.request.AbstractGraphQLRequest
-
Execution of the given subscription GraphQL request, and return its response mapped in the relevant POJO.
- execute(AbstractGraphQLRequest, Map<String, Object>, SubscriptionCallback<T>, String, Class<R>, Class<T>) - Method in interface com.graphql_java_generator.client.QueryExecutor
-
Executes the given subscription GraphQL request, and returns the relevant
WebSocketClient
. - execute(AbstractGraphQLRequest, Map<String, Object>, SubscriptionCallback<T>, String, Class<R>, Class<T>) - Method in class com.graphql_java_generator.client.QueryExecutorImpl
-
Executes the given subscription GraphQL request, and returns the relevant
WebSocketClient
. - execute(AbstractGraphQLRequest, Map<String, Object>, Class<R>) - Method in interface com.graphql_java_generator.client.QueryExecutor
-
Execution of the given query or mutation GraphQL request, and return its response mapped in the relevant POJO.
- execute(AbstractGraphQLRequest, Map<String, Object>, Class<R>) - Method in class com.graphql_java_generator.client.QueryExecutorImpl
-
Execution of the given query or mutation GraphQL request, and return its response mapped in the relevant POJO.
- Extension - Class in com.graphql_java_generator.client.response
- Extension() - Constructor for class com.graphql_java_generator.client.response.Extension
- extensions - Variable in class com.graphql_java_generator.client.response.Error
F
- FIELD - com.graphql_java_generator.client.directive.DirectiveLocation
- FIELD_DEFINITION - com.graphql_java_generator.client.directive.DirectiveLocation
- fieldName() - Method in annotation type com.graphql_java_generator.annotation.GraphQLNonScalar
-
The name of the field's attribute, as defined in the GraphQL schema.
- fieldName() - Method in annotation type com.graphql_java_generator.annotation.GraphQLScalar
-
The name of the field's attribute, as defined in the GraphQL schema.
- Fragment - Class in com.graphql_java_generator.client.request
- Fragment(QueryTokenizer, String, boolean, Class<?>) - Constructor for class com.graphql_java_generator.client.request.Fragment
-
Reads a Fragment definition, from the current
QueryTokenizer
. - FRAGMENT_DEFINITION - com.graphql_java_generator.client.directive.DirectiveLocation
- FRAGMENT_SPREAD - com.graphql_java_generator.client.directive.DirectiveLocation
- from(String) - Static method in class com.graphql_java_generator.server.util.QueryParameters
G
- generatesBindVariableValuesMap(Object[]) - Method in class com.graphql_java_generator.client.GraphqlClientUtils
-
This method retrieves the couple of name and values given in these parameters, stores them in a map where the key is the param name, and the value is the value of the
Map
. - getAlias() - Method in class com.graphql_java_generator.client.request.QueryField
- getArgument(Object, String, String, Class<?>) - Method in class com.graphql_java_generator.GraphqlUtils
-
This method returns a GraphQL argument into the relevant Java object, within a data fetcher, from what has been parsed by the graphql-java engine from the incoming JSON request
- getArguments() - Method in class com.graphql_java_generator.client.directive.Directive
- getBindParameterName() - Method in class com.graphql_java_generator.client.request.InputParameter
- getCamelCase(String) - Method in class com.graphql_java_generator.GraphqlUtils
-
Convert the given name, to a camel case name.
- getClass(String, String) - Method in class com.graphql_java_generator.GraphqlUtils
-
Retrieves a class for a given classname.
- getClassSimpleName(String) - Method in class com.graphql_java_generator.GraphqlUtils
-
Extract the simple name for a class (without the package name), from its full class name (with the package name)
- getClazz() - Method in class com.graphql_java_generator.client.request.QueryField
- getCustomScalar(String) - Method in interface com.graphql_java_generator.customscalars.CustomScalarRegistry
-
Retrieves the registered
GraphQLScalarType
for this GraphQL CustomScalar. - getCustomScalar(String) - Method in class com.graphql_java_generator.customscalars.CustomScalarRegistryImpl
- getDeclaredField(Class<?>, String, boolean) - Method in class com.graphql_java_generator.GraphqlUtils
-
Returns a
Field
from the given class. - getDirective(String) - Method in interface com.graphql_java_generator.client.directive.DirectiveRegistry
-
Retrieves the registered
GraphQLScalarType
for this GraphQL CustomScalar. - getDirective(String) - Method in class com.graphql_java_generator.client.directive.DirectiveRegistryImpl
-
Retrieves the registered
GraphQLScalarType
for this GraphQL CustomScalar. - getDirectiveDefinition() - Method in class com.graphql_java_generator.client.directive.Directive
-
Returns the definition for this GraphQL directive
- getDirectiveLocations() - Method in class com.graphql_java_generator.client.directive.Directive
- getFieldName() - Method in interface com.graphql_java_generator.GraphQLField
-
Returns the field name of the field
- getFields() - Method in class com.graphql_java_generator.client.request.QueryField
- getFieldType(Class<?>, String, boolean) - Method in class com.graphql_java_generator.GraphqlUtils
-
Retrieves the class of the fieldName field of the owningClass class.
- getFragments() - Method in class com.graphql_java_generator.client.request.AbstractGraphQLRequest
- getGetter(Class<?>, Field) - Method in class com.graphql_java_generator.GraphqlUtils
-
Retrieves the getter for the given field on the given field
- getGraphQLClassesPackageName() - Method in class com.graphql_java_generator.client.request.AbstractGraphQLRequest
-
This method returns the package name, where the GraphQL generated classes are.
- getGraphQLCustomScalarType(AccessibleObject) - Method in class com.graphql_java_generator.client.GraphqlClientUtils
-
This method retrieves the
GraphQLScalarType
for a custom scalar field or method. - getGraphQLScalarType() - Method in class com.graphql_java_generator.client.request.InputParameter
- getGraphQLScalarType() - Method in class com.graphql_java_generator.customscalars.CustomScalar
- getGraphQLScalarType(String) - Method in interface com.graphql_java_generator.customscalars.CustomScalarRegistry
-
Retrieves the registered
GraphQLScalarType
for this GraphQL CustomScalar. - getGraphQLScalarType(String) - Method in class com.graphql_java_generator.customscalars.CustomScalarRegistryImpl
- getGraphQLType() - Method in interface com.graphql_java_generator.GraphQLField
-
Returns the GraphQL class which declares the field
- getGraphQLType(Directive, Class<?>, String, String) - Method in class com.graphql_java_generator.client.GraphqlClientUtils
-
Retrieves the
GraphQLScalarType
from this input parameter, if this parameter is a Custom Scalar - getGraphQLType(AccessibleObject) - Method in class com.graphql_java_generator.client.GraphqlClientUtils
-
Returns the Class indicated as the value for the graphqlType attribute of the GraphQLScalar or GraphQLNonScalar annotation
- getGraphQLTypeFromName(String) - Method in class com.graphql_java_generator.client.GraphqlClientUtils
-
Returns the GraphQL type for this object
- getGraphQLTypeName() - Method in class com.graphql_java_generator.customscalars.CustomScalar
- getGraphQLTypeNameFromClass(Class<?>) - Method in class com.graphql_java_generator.client.GraphqlClientUtils
-
Retrieves the GraphQL type name (as defined in the GraphQL schema), from the GraphQL annotation added in the generated code by the plugin.
- getInstanceConfiguration() - Method in class com.graphql_java_generator.client.request.AbstractGraphQLRequest
-
This gets the configuration for this instance.
- getJavaName(String) - Method in class com.graphql_java_generator.GraphqlUtils
-
Returns a valid java identifier for the given name.
- getMethod(String, Class<?>, Class<?>...) - Method in class com.graphql_java_generator.GraphqlUtils
-
Retrieves the asked method, from its name, class and parameters.
- getMutation() - Method in class com.graphql_java_generator.client.request.AbstractGraphQLRequest
- getMutationContext() - Method in class com.graphql_java_generator.client.request.AbstractGraphQLRequest
-
Retrieved the
QueryField
for the mutation (that is the mutation type coming from the GraphQL schema) from the concrete class. - getName() - Method in class com.graphql_java_generator.client.directive.Directive
- getName() - Method in class com.graphql_java_generator.client.request.Fragment
- getName() - Method in class com.graphql_java_generator.client.request.InputParameter
- getName() - Method in class com.graphql_java_generator.client.request.QueryField
- getName() - Method in interface com.graphql_java_generator.server.util.BatchLoaderDelegate
-
The name of this BatchLoaderDelegate, as can be retrieved from the
DataLoaderRegistry
. - getName() - Method in interface com.graphql_java_generator.server.util.BatchLoaderDelegateWithContext
-
The name of this BatchLoaderDelegate, as can be retrieved from the
DataLoaderRegistry
. - getOperationName() - Method in class com.graphql_java_generator.server.util.QueryParameters
- getOwningClazz() - Method in class com.graphql_java_generator.client.request.QueryField
- getPackageName() - Method in class com.graphql_java_generator.client.directive.Directive
-
Returns the package name where the code for this directive has been generated.
- getPackageName(String) - Method in class com.graphql_java_generator.GraphqlUtils
-
Extract the package name for a class, from its full class name (with the package name)
- getPascalCase(String) - Method in class com.graphql_java_generator.GraphqlUtils
-
Convert the given name, which is supposed to be in camel case (for instance: thisIsCamelCase) to a pascal case string (for instance: ThisIsCamelCase).
- getQuery() - Method in class com.graphql_java_generator.client.request.AbstractGraphQLRequest
- getQuery() - Method in class com.graphql_java_generator.server.util.QueryParameters
- getQueryContext() - Method in class com.graphql_java_generator.client.request.AbstractGraphQLRequest
-
Retrieved the
QueryField
for the query (that is the query type coming from the GraphQL schema) from the concrete class. - getQueryExecutor() - Method in class com.graphql_java_generator.client.GraphQLConfiguration
-
Retrieves the
QueryExecutor
for this GraphQL configuration - getQueryName() - Method in class com.graphql_java_generator.client.request.AbstractGraphQLRequest
- getRequestType() - Method in class com.graphql_java_generator.client.request.AbstractGraphQLRequest
- getSetter(Class<T>, Field) - Method in class com.graphql_java_generator.GraphqlUtils
-
Retrieves the setter for the given field on the given field
- getStaticConfiguration() - Static method in class com.graphql_java_generator.client.request.AbstractGraphQLRequest
-
This gets the default configuration, that will apply if no local configuration has been defined for this instance.
- getSubscription() - Method in class com.graphql_java_generator.client.request.AbstractGraphQLRequest
- getSubscriptionContext() - Method in class com.graphql_java_generator.client.request.AbstractGraphQLRequest
-
Retrieved the
QueryField
for the subscription (that is the subscription type coming from the GraphQL schema) from the concrete class. - getTypeName() - Method in class com.graphql_java_generator.client.request.Fragment
- getValue() - Method in class com.graphql_java_generator.client.request.InputParameter
- getValueAsText(Value<?>) - Method in class com.graphql_java_generator.GraphqlUtils
-
Returns the given value, as text, as it can be written into a generated GraphQL schema.
A str string default value will be returned as "str",a JEDI enum value will be returned as JEDI, ... - getValueClazz() - Method in class com.graphql_java_generator.customscalars.CustomScalar
- getValueForGraphqlQuery(Map<String, Object>) - Method in class com.graphql_java_generator.client.request.InputParameter
-
Returns the parameter, as it should be written in the GraphQL query.
- getVariables() - Method in class com.graphql_java_generator.server.util.QueryParameters
- GRAPHQL_MARKER - Static variable in interface com.graphql_java_generator.client.QueryExecutor
- GRAPHQL_MUTATION_MARKER - Static variable in interface com.graphql_java_generator.client.QueryExecutor
- GRAPHQL_QUERY_MARKER - Static variable in interface com.graphql_java_generator.client.QueryExecutor
- GRAPHQL_SUBSCRIPTION_MARKER - Static variable in interface com.graphql_java_generator.client.QueryExecutor
- graphqlClientUtils - Static variable in class com.graphql_java_generator.client.GraphqlClientUtils
-
A singleton without Spring
- GraphqlClientUtils - Class in com.graphql_java_generator.client
- GraphqlClientUtils() - Constructor for class com.graphql_java_generator.client.GraphqlClientUtils
- GraphQLConfiguration - Class in com.graphql_java_generator.client
-
This class contains a GraphQL configuration for the GraphQL client.
- GraphQLConfiguration(String) - Constructor for class com.graphql_java_generator.client.GraphQLConfiguration
-
This constructor expects the URI of the GraphQL server.
- GraphQLConfiguration(String, SSLContext, HostnameVerifier) - Constructor for class com.graphql_java_generator.client.GraphQLConfiguration
-
This constructor expects the URI of the GraphQL server.
- GraphQLConfiguration(String, Client, ObjectMapper) - Constructor for class com.graphql_java_generator.client.GraphQLConfiguration
-
This constructor expects the URI of the GraphQL server and a configured JAX-RS client that gives the opportunity to customise the REST request
For example: http://my.server.com/graphql - GraphQLDirective - Annotation Type in com.graphql_java_generator.annotation
- GraphQLEnumType - Annotation Type in com.graphql_java_generator.annotation
- GraphQLField - Interface in com.graphql_java_generator
-
Common interface implemented by all GraphQL POJO field name enumerations.
- GraphQLInputParameters - Annotation Type in com.graphql_java_generator.annotation
-
This class indicates that this field has at least one input parameter.
- GraphQLInputType - Annotation Type in com.graphql_java_generator.annotation
-
This annotation marks all generated classes that are generated to match a GraphQL input type, as defined in the GraphQL schema.
- GraphQLInterfaceType - Annotation Type in com.graphql_java_generator.annotation
- GraphQLInternalErrorException - Exception in com.graphql_java_generator.exception
-
Thrown when an internal error of the GraphQL generator occurs
- GraphQLInternalErrorException(String) - Constructor for exception com.graphql_java_generator.exception.GraphQLInternalErrorException
- GraphQLInternalErrorException(String, Throwable) - Constructor for exception com.graphql_java_generator.exception.GraphQLInternalErrorException
- GraphQLNonScalar - Annotation Type in com.graphql_java_generator.annotation
-
This annotation marks all fields in the generated classes, that are non scalar.
- GraphQLObjectType - Annotation Type in com.graphql_java_generator.annotation
- GraphQLQuery - Annotation Type in com.graphql_java_generator.annotation
-
This annotation marks all generated classes that are queries/mutations/subscription, as defined in the GraphQL schema.
- GraphQLRequestExecutionException - Exception in com.graphql_java_generator.exception
-
Thrown when an error occurs during the request execution.
- GraphQLRequestExecutionException(String) - Constructor for exception com.graphql_java_generator.exception.GraphQLRequestExecutionException
- GraphQLRequestExecutionException(String, Throwable) - Constructor for exception com.graphql_java_generator.exception.GraphQLRequestExecutionException
- GraphQLRequestPreparationException - Exception in com.graphql_java_generator.exception
-
Thrown when an error occurs during the request preparation.
- GraphQLRequestPreparationException(String) - Constructor for exception com.graphql_java_generator.exception.GraphQLRequestPreparationException
- GraphQLRequestPreparationException(String, Throwable) - Constructor for exception com.graphql_java_generator.exception.GraphQLRequestPreparationException
- GraphQLResponseParseException - Exception in com.graphql_java_generator.exception
-
Thrown when the client could not parse the GraphQL response.
- GraphQLResponseParseException(String) - Constructor for exception com.graphql_java_generator.exception.GraphQLResponseParseException
- GraphQLResponseParseException(String, Throwable) - Constructor for exception com.graphql_java_generator.exception.GraphQLResponseParseException
- GraphQLScalar - Annotation Type in com.graphql_java_generator.annotation
-
This annotation marks all fields in the generated classes, that are standard GraphQL scalar.
- GraphQLScalarTypeDate - Class in com.graphql_java_generator.customscalars
-
A proposed Date scalar, that stores dates in String, formatted as: YYYY-MM-DD
This Scalar is proposed to be used, for integration testing (checks that the plugin correctly manages Custom Scalars, see samples) and with more documentation to help people to create their own Custom Scalar implementations. - GraphQLScalarTypeDate() - Constructor for class com.graphql_java_generator.customscalars.GraphQLScalarTypeDate
- GraphQLScalarTypeDateTime - Class in com.graphql_java_generator.customscalars
-
A proposed DateTime scalar, that stores dates in String, formatted as: 2019-07-03T20:47:55Z
This Scalar is proposed to be used, for integration testing (checks that the plugin correctly manages Custom Scalars, see samples) and with more documentation to help people to create their own Custom Scalar implementations. - GraphQLScalarTypeDateTime() - Constructor for class com.graphql_java_generator.customscalars.GraphQLScalarTypeDateTime
- GraphQLScalarTypeIDClient - Class in com.graphql_java_generator.customscalars
-
ID are managed as String, on client side.
- GraphQLScalarTypeIDClient() - Constructor for class com.graphql_java_generator.customscalars.GraphQLScalarTypeIDClient
- GraphQLScalarTypeIDServer - Class in com.graphql_java_generator.customscalars
-
ID are managed as UUID, on server side.
- GraphQLScalarTypeIDServer() - Constructor for class com.graphql_java_generator.customscalars.GraphQLScalarTypeIDServer
- GraphQLScalarTypeString - Class in com.graphql_java_generator.customscalars
-
Useless String scalar.
It's used both as a sample, to be completed by a developper, according to his/her needs, and for the use in some tests of the plugin logic (like in the Shopify sample, to handle (badly) various scalar as based on strings).
It's actually a bad management, as this custom scalars does nothing, but read basic strings. - GraphQLScalarTypeString() - Constructor for class com.graphql_java_generator.customscalars.GraphQLScalarTypeString
- graphQLTypeSimpleName() - Method in annotation type com.graphql_java_generator.annotation.GraphQLNonScalar
-
The name of the Scalar type, as defined in the GraphQL schema, without indication of list or mandatory.
- graphQLTypeSimpleName() - Method in annotation type com.graphql_java_generator.annotation.GraphQLScalar
-
The name of the Scalar type, as defined in the GraphQL schema, without indication of list or mandatory.
- GraphQLUnionType - Annotation Type in com.graphql_java_generator.annotation
- graphqlUtils - Static variable in class com.graphql_java_generator.GraphqlUtils
-
This singleton is usable in default method, within interfaces
- GraphqlUtils - Class in com.graphql_java_generator
- GraphqlUtils() - Constructor for class com.graphql_java_generator.GraphqlUtils
H
- hasMoreTokens() - Method in class com.graphql_java_generator.client.request.QueryTokenizer
-
Indicates if there are next non empty tokens in the list.
- hasMoreTokens(boolean) - Method in class com.graphql_java_generator.client.request.QueryTokenizer
-
Indicates if there are next non empty tokens in the list.
I
- ID - Static variable in class com.graphql_java_generator.customscalars.GraphQLScalarTypeIDClient
-
UUID are managed as String, on client side.
- ID - Static variable in class com.graphql_java_generator.customscalars.GraphQLScalarTypeIDServer
-
UUID are managed as String, on client side.
- INLINE_FRAGMENT - com.graphql_java_generator.client.directive.DirectiveLocation
- INPUT_FIELD_DEFINITION - com.graphql_java_generator.client.directive.DirectiveLocation
- INPUT_OBJECT - com.graphql_java_generator.client.directive.DirectiveLocation
- InputParameter - Class in com.graphql_java_generator.client.request
-
Contains an input parameter, to be sent to a query (mutation...).
- INTERFACE - com.graphql_java_generator.client.directive.DirectiveLocation
- invokeGetter(Object, String) - Method in class com.graphql_java_generator.GraphqlUtils
-
Invoke the getter for the given field name, on the given object.
- invokeMethod(Method, Object, Object...) - Method in class com.graphql_java_generator.GraphqlUtils
-
Invoke the given setter on the given object, with the given value.
- invokeMethod(String, Object) - Method in class com.graphql_java_generator.GraphqlUtils
-
Calls the 'methodName' method on the given object.
- invokeSetter(Object, Field, Object) - Method in class com.graphql_java_generator.GraphqlUtils
-
Invoke the setter for the given field, on the given object.
- invokeSetter(Object, String, Object) - Method in class com.graphql_java_generator.GraphqlUtils
-
Invoke the setter for the
Field
of the given name, on the given object. - isJavaReservedWords(String) - Method in class com.graphql_java_generator.GraphqlUtils
-
Returns true if name is a reserved java keyword
- isMandatory() - Method in class com.graphql_java_generator.client.request.InputParameter
- isQueryLevel() - Method in class com.graphql_java_generator.client.request.QueryField
-
Indicates whether this field is a query/mutation/subscription or not
- isScalar() - Method in class com.graphql_java_generator.client.request.QueryField
-
Indicates whether this field is a scalar or not.
- isScalar(AccessibleObject) - Method in class com.graphql_java_generator.client.GraphqlClientUtils
-
Indicates whether the given class is a scalar or not
- iterableConcreteClassToListInterface(Iterable<? extends I>) - Method in class com.graphql_java_generator.GraphqlUtils
-
Transform an
Iterable
(which can be aList
) of a concrete class, into aList
of the I interface or superclass. - iterableToList(Iterable<I>) - Method in class com.graphql_java_generator.GraphqlUtils
-
Transform an
Iterable
(which can be aList
), into aList
of items of the same type.
J
- JAVA_KEYWORD_PREFIX - Static variable in class com.graphql_java_generator.GraphqlUtils
- javaClass() - Method in annotation type com.graphql_java_generator.annotation.GraphQLNonScalar
-
Contains the java data type that is has used to store the data, on both the client and the server side.
- javaClass() - Method in annotation type com.graphql_java_generator.annotation.GraphQLScalar
-
Contains the java data type that is has used to store the data, on both the client and the server side.
- JsonKit - Class in com.graphql_java_generator.server.util
-
This example code chose to use GSON as its JSON parser.
- JsonKit() - Constructor for class com.graphql_java_generator.server.util.JsonKit
- JsonResponseWrapper - Class in com.graphql_java_generator.client.response
- JsonResponseWrapper() - Constructor for class com.graphql_java_generator.client.response.JsonResponseWrapper
L
- line - Variable in class com.graphql_java_generator.client.response.Location
- Location - Class in com.graphql_java_generator.client.response
- Location() - Constructor for class com.graphql_java_generator.client.response.Location
- locations - Variable in class com.graphql_java_generator.client.response.Error
M
- MEANINGFUL_DELIMITERS - Static variable in class com.graphql_java_generator.client.request.QueryTokenizer
- message - Variable in class com.graphql_java_generator.client.response.Error
- mutation - com.graphql_java_generator.annotation.RequestType
- MUTATION - com.graphql_java_generator.client.directive.DirectiveLocation
N
- name() - Method in annotation type com.graphql_java_generator.annotation.GraphQLDirective
-
The name of the Directive, as defined in the GraphQL schema.
- name() - Method in annotation type com.graphql_java_generator.annotation.GraphQLQuery
-
The name of the query/mutation/subscription, that is represented by the annotated java class, as defined in the GraphQL schema.
- names() - Method in annotation type com.graphql_java_generator.annotation.GraphQLInputParameters
-
Contains the list of the names for each of the input parameters of this field.
- newBindParameter(String, String, boolean) - Static method in class com.graphql_java_generator.client.request.InputParameter
-
Creates and returns a new instance of
InputParameter
, which is bound to a bind variable. - newBindParameter(String, String, boolean, GraphQLScalarType) - Static method in class com.graphql_java_generator.client.request.InputParameter
-
Creates and returns a new instance of
InputParameter
, which is bound to a bind variable. - newHardCodedParameter(String, Object) - Static method in class com.graphql_java_generator.client.request.InputParameter
-
Creates and returns a new instance of
InputParameter
, which value is given, and can not be changed afterwards - newHardCodedParameter(String, Object, boolean, GraphQLScalarType) - Static method in class com.graphql_java_generator.client.request.InputParameter
-
Creates and returns a new instance of
InputParameter
, which value is given, and can not be changed afterwards. - nextToken() - Method in class com.graphql_java_generator.client.request.QueryTokenizer
-
Returns the next token, which may or may not be an empty one, depending on returnEmptyDelimiters.
- nextToken(boolean) - Method in class com.graphql_java_generator.client.request.QueryTokenizer
-
Returns the next token, which may or may not be an empty one, depending on returnEmptyDelimiters
O
- OBJECT - com.graphql_java_generator.client.directive.DirectiveLocation
- ObjectResponse - Class in com.graphql_java_generator.client.request
-
This useless class is here only for compatibility with existing code, developped before the 1.6 release.
- ObjectResponse(String) - Constructor for class com.graphql_java_generator.client.request.ObjectResponse
- ObjectResponse(String, RequestType, String, InputParameter...) - Constructor for class com.graphql_java_generator.client.request.ObjectResponse
- onClose(int, String) - Method in interface com.graphql_java_generator.client.SubscriptionCallback
-
A callback to make the program aware of the end of the subscription channel.
- onClose(int, String) - Method in class com.graphql_java_generator.client.SubscriptionClientWebSocket
-
Notify the application, when the Web Socket is closed.
- onConnect() - Method in interface com.graphql_java_generator.client.SubscriptionCallback
-
This method is called once the subscription has been submitted to the GraphQL server.
- onConnect(Session) - Method in class com.graphql_java_generator.client.SubscriptionClientWebSocket
-
As soon as the Web Socket is connected, this method executes the subscription GraphQL request
- onError(Throwable) - Method in interface com.graphql_java_generator.client.SubscriptionCallback
-
Whenever an error occurs, at any time of the subscription processing.
- onError(Throwable) - Method in class com.graphql_java_generator.client.SubscriptionClientWebSocket
-
Notify the application, when an error occurs.
- onMessage(String) - Method in class com.graphql_java_generator.client.SubscriptionClientWebSocket
-
Each message is received as text, that is a standard GraphQL response.
- onMessage(T) - Method in interface com.graphql_java_generator.client.SubscriptionCallback
-
This method is called each time a message is sent by the server, for this subscription.
- optionalToObject(Optional<T>) - Method in class com.graphql_java_generator.GraphqlUtils
-
Transform an
Optional
, as returned by Spring Data repositories, into a standard Java, which is null if there is no value.
P
- packageName - Variable in class com.graphql_java_generator.client.request.AbstractGraphQLRequest
-
The package name, where the GraphQL generated classes are.
- parseValueForInputParameter(Object, String, Class<?>) - Method in class com.graphql_java_generator.GraphqlUtils
-
Parse a value, depending on the parameter type.
- path - Variable in class com.graphql_java_generator.client.response.Error
Q
- query - com.graphql_java_generator.annotation.RequestType
- QUERY - com.graphql_java_generator.client.directive.DirectiveLocation
- QueryExecutor - Interface in com.graphql_java_generator.client
-
This class is the query executor : a generic class, reponsible for calling the GraphQL server, and return its response as POJOs.
- QueryExecutorImpl - Class in com.graphql_java_generator.client
-
This class is the query executor : a generic class, reponsible for calling the GraphQL server, for query, mutation and subscription.
It has one major parameter: the GraphQL endpoint. - QueryExecutorImpl(String) - Constructor for class com.graphql_java_generator.client.QueryExecutorImpl
-
This constructor expects the URI of the GraphQL server
For example: http://my.server.com/graphql or https://my.server.com/graphql - QueryExecutorImpl(String, SSLContext, HostnameVerifier) - Constructor for class com.graphql_java_generator.client.QueryExecutorImpl
-
This constructor expects the URI of the GraphQL server.
- QueryExecutorImpl(String, Client, ObjectMapper) - Constructor for class com.graphql_java_generator.client.QueryExecutorImpl
-
This constructor expects the URI of the GraphQL server and a configured JAX-RS client that gives the opportunity to customise the REST request
For example: http://my.server.com/graphql - QueryField - Class in com.graphql_java_generator.client.request
-
This class gives parsing capabilities for the QueryString for one object.
For instance, for the GraphQL query queryType.boards("{id name publiclyAvailable topics(since: \"2018-12-20\"){id}}"), it is created for the field named boards, then the#readTokenizerForResponseDefinition(StringTokenizer)
is called for the whole String. - QueryField(Class<?>, String) - Constructor for class com.graphql_java_generator.client.request.QueryField
-
The constructor, when created by the
Builder
: it must provide the owningClass - QueryField(Class<?>, String, String) - Constructor for class com.graphql_java_generator.client.request.QueryField
-
The constructor, when created by the
Builder
: it must provide the owningClass - QueryParameters - Class in com.graphql_java_generator.server.util
-
Graphql clients can send GET or POST HTTP requests.
- QueryParameters() - Constructor for class com.graphql_java_generator.server.util.QueryParameters
- queryPath - Variable in class com.graphql_java_generator.client.response.Error
- QueryTokenizer - Class in com.graphql_java_generator.client.request
-
This class is responsible to split the GraphQL query into meaningful tokens: the spaces, EOL (...) are removed and the (, @, { (...) are sent as token.
- QueryTokenizer(String) - Constructor for class com.graphql_java_generator.client.request.QueryTokenizer
-
Create a tokenizer for the given GraphQL query
R
- readNextRealToken(String, String) - Method in class com.graphql_java_generator.client.request.QueryTokenizer
-
Reads the next real token, that is the next token that is not a separator
- readTokenizerForInputParameters(QueryTokenizer, Directive, Class<?>, String) - Static method in class com.graphql_java_generator.client.request.InputParameter
-
Reads a list of input parameters, from a
QueryTokenizer
. - readTokenizerForResponseDefinition(QueryTokenizer) - Method in class com.graphql_java_generator.client.request.QueryField
-
Reads the definition of the expected response definition from the server.
- registerAllDirectives() - Method in interface com.graphql_java_generator.client.directive.DirectiveRegistry
-
This method registers all
GraphQLScalarType
that are declared as SpringComponent
. - registerAllDirectives() - Method in class com.graphql_java_generator.client.directive.DirectiveRegistryImpl
-
This method registers all
GraphQLScalarType
that are declared as SpringComponent
. - registerDirective(Directive) - Method in interface com.graphql_java_generator.client.directive.DirectiveRegistry
-
Manually register one GraphQL directive.
- registerDirective(Directive) - Method in class com.graphql_java_generator.client.directive.DirectiveRegistryImpl
-
Manually register one GraphQL directive.
- registerGraphQLScalarType(GraphQLScalarType, Class<?>) - Method in interface com.graphql_java_generator.customscalars.CustomScalarRegistry
-
Manually register one
GraphQLScalarType
. - registerGraphQLScalarType(GraphQLScalarType, Class<?>) - Method in class com.graphql_java_generator.customscalars.CustomScalarRegistryImpl
- RequestType - Enum in com.graphql_java_generator.annotation
- RootResponse - Interface in com.graphql_java_generator.client.response
-
This interface is implemented by the query, mutation and subscription root responses in the generated code.
S
- SCALAR - com.graphql_java_generator.client.directive.DirectiveLocation
- SCHEMA - com.graphql_java_generator.client.directive.DirectiveLocation
- setArguments(List<InputParameter>) - Method in class com.graphql_java_generator.client.directive.Directive
- setDirectiveLocations(List<DirectiveLocation>) - Method in class com.graphql_java_generator.client.directive.Directive
- setGraphQLScalarType(GraphQLScalarType) - Method in class com.graphql_java_generator.customscalars.CustomScalar
- setInstanceConfiguration(GraphQLConfiguration) - Method in class com.graphql_java_generator.client.request.AbstractGraphQLRequest
-
This sets the configuration for this instance.
- setName(String) - Method in class com.graphql_java_generator.client.directive.Directive
- setPackageName(String) - Method in class com.graphql_java_generator.client.directive.Directive
- setStaticConfiguration(GraphQLConfiguration) - Static method in class com.graphql_java_generator.client.request.AbstractGraphQLRequest
-
This sets the default configuration, that will apply if no local configuration has been defined for this instance.
- setValueClazz(Class<?>) - Method in class com.graphql_java_generator.customscalars.CustomScalar
- sourceName - Variable in class com.graphql_java_generator.client.response.Location
- String - Static variable in class com.graphql_java_generator.customscalars.GraphQLScalarTypeString
-
Useless String scalar.
It's used both as a sample, to be completed by a developper, according to his/her needs, and for the use in some tests of the plugin logic (like in the Shopify sample, to handle (badly) various scalar as based on strings).
It's actually a bad management, as this custom scalars does nothing, but read basic strings. - subscription - com.graphql_java_generator.annotation.RequestType
- SUBSCRIPTION - com.graphql_java_generator.client.directive.DirectiveLocation
- SubscriptionCallback<T> - Interface in com.graphql_java_generator.client
-
This interface will receive the notification for each message that comes from a subscription.
- SubscriptionClient - Interface in com.graphql_java_generator.client
-
This interface allows the application to interact with the subscription, once it has subscribed to it.
- SubscriptionClientWebSocket<R,T> - Class in com.graphql_java_generator.client
-
This class implements the Web Socket, as needed by the jetty's Web Socket implementation.
T
- timestamp - Variable in class com.graphql_java_generator.client.response.Extension
- toJsonString(Object) - Static method in class com.graphql_java_generator.server.util.JsonKit
- toMap(String) - Static method in class com.graphql_java_generator.server.util.JsonKit
- toString() - Method in class com.graphql_java_generator.client.response.Error
-
Logs this error to the given
Logger
- toString() - Method in class com.graphql_java_generator.client.response.Location
- type() - Method in annotation type com.graphql_java_generator.annotation.GraphQLQuery
-
The type : query, mutation or subscription, as defined in the GraphQL schema.
- types() - Method in annotation type com.graphql_java_generator.annotation.GraphQLInputParameters
-
Contains the list of the types for each of the input parameters of this field.
U
- UNION - com.graphql_java_generator.client.directive.DirectiveLocation
- unsubscribe() - Method in interface com.graphql_java_generator.client.SubscriptionClient
-
Allows the client application to unsubscribe from a previously subscribed subscription.
V
- validationErrorType - Variable in class com.graphql_java_generator.client.response.Error
- value() - Method in annotation type com.graphql_java_generator.annotation.GraphQLEnumType
-
The name of the enum that is represented by the annotated java class, as defined in the GraphQL schema.
- value() - Method in annotation type com.graphql_java_generator.annotation.GraphQLInputType
-
The name of the type that is represented by the annotated java class, as defined in the GraphQL schema.
- value() - Method in annotation type com.graphql_java_generator.annotation.GraphQLInterfaceType
-
The name of the interface that is represented by the annotated java class, as defined in the GraphQL schema.
- value() - Method in annotation type com.graphql_java_generator.annotation.GraphQLObjectType
-
The name of the type that is represented by the annotated java class, as defined in the GraphQL schema.
- value() - Method in annotation type com.graphql_java_generator.annotation.GraphQLUnionType
-
The name of the union that is represented by the annotated java class, as defined in the GraphQL schema.
- valueOf(String) - Static method in enum com.graphql_java_generator.annotation.RequestType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.graphql_java_generator.client.directive.DirectiveLocation
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum com.graphql_java_generator.annotation.RequestType
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.graphql_java_generator.client.directive.DirectiveLocation
-
Returns an array containing the constants of this enum type, in the order they are declared.
W
- withQueryResponseDef(String) - Method in class com.graphql_java_generator.client.request.Builder
-
Builds a
ObjectResponse
from a part of a GraphQL query.
All Classes All Packages