Class GraphQLClientConfig
- java.lang.Object
-
- io.quarkus.smallrye.graphql.client.runtime.GraphQLClientConfig
-
public class GraphQLClientConfig extends Object
-
-
Field Summary
Fields Modifier and Type Field Description Optional<Boolean>allowUnexpectedResponseFieldsAllowing unexpected fields in response.Optional<Boolean>executeSingleResultOperationsOverWebsocketIf true, then queries and mutations will run over the websocket transport rather than pure HTTP.Map<String,String>headersHTTP headers to add when communicating with the target GraphQL service.Map<String,String>initPayloadAdditional payload sent on websocket initialization.Optional<String>keyStoreThe key store location.Optional<String>keyStorePasswordThe key store password.Optional<String>keyStoreTypeThe type of the key store.OptionalIntmaxRedirectsMaximum number of redirects to follow.Optional<String>proxyHostHostname of the proxy to use.Optional<String>proxyPasswordPassword for the proxy to use.OptionalIntproxyPortPort number of the proxy to use.Optional<String>proxyUsernameUsername for the proxy to use.Optional<List<String>>subprotocolsWebSocket subprotocols that should be supported by this client for running GraphQL operations over websockets.Optional<String>trustStoreThe trust store location.Optional<String>trustStorePasswordThe trust store password.Optional<String>trustStoreTypeThe type of the trust store.Optional<String>urlThe URL location of the target GraphQL service.OptionalIntwebsocketInitializationTimeoutMaximum time in milliseconds that will be allowed to wait for the server to acknowledge a websocket connection (send a subprotocol-specific ACK message).
-
Constructor Summary
Constructors Constructor Description GraphQLClientConfig()
-
-
-
Field Detail
-
url
@ConfigItem public Optional<String> url
The URL location of the target GraphQL service.
-
headers
@ConfigItem(name="header") public Map<String,String> headers
HTTP headers to add when communicating with the target GraphQL service.
-
subprotocols
@ConfigItem(defaultValue="graphql-transport-ws") public Optional<List<String>> subprotocols
WebSocket subprotocols that should be supported by this client for running GraphQL operations over websockets. Allowed values are: - `graphql-ws` for the deprecated Apollo protocol - `graphql-transport-ws` for the newer GraphQL over WebSocket protocol (default value) If multiple protocols are provided, the actual protocol to be used will be subject to negotiation with the server.
-
executeSingleResultOperationsOverWebsocket
@ConfigItem public Optional<Boolean> executeSingleResultOperationsOverWebsocket
If true, then queries and mutations will run over the websocket transport rather than pure HTTP. Off by default, because it has higher overhead.
-
websocketInitializationTimeout
@ConfigItem public OptionalInt websocketInitializationTimeout
Maximum time in milliseconds that will be allowed to wait for the server to acknowledge a websocket connection (send a subprotocol-specific ACK message).
-
trustStore
@ConfigItem public Optional<String> trustStore
The trust store location. Can point to either a classpath resource or a file.
-
trustStorePassword
@ConfigItem public Optional<String> trustStorePassword
The trust store password.
-
trustStoreType
@ConfigItem public Optional<String> trustStoreType
The type of the trust store. Defaults to "JKS".
-
keyStore
@ConfigItem public Optional<String> keyStore
The key store location. Can point to either a classpath resource or a file.
-
keyStorePassword
@ConfigItem public Optional<String> keyStorePassword
The key store password.
-
keyStoreType
@ConfigItem public Optional<String> keyStoreType
The type of the key store. Defaults to "JKS".
-
proxyHost
@ConfigItem public Optional<String> proxyHost
Hostname of the proxy to use.
-
proxyPort
@ConfigItem public OptionalInt proxyPort
Port number of the proxy to use.
-
proxyUsername
@ConfigItem public Optional<String> proxyUsername
Username for the proxy to use.
-
proxyPassword
@ConfigItem public Optional<String> proxyPassword
Password for the proxy to use.
-
maxRedirects
@ConfigItem public OptionalInt maxRedirects
Maximum number of redirects to follow.
-
initPayload
@ConfigItem(name="init-payload") public Map<String,String> initPayload
Additional payload sent on websocket initialization.
-
allowUnexpectedResponseFields
@ConfigItem public Optional<Boolean> allowUnexpectedResponseFields
Allowing unexpected fields in response. If true, there will be warning log of an unexpected field. Else it throws an error.
-
-