Class GraphQlHttpHandler
java.lang.Object
org.springframework.graphql.server.webflux.AbstractGraphQlHttpHandler
org.springframework.graphql.server.webflux.GraphQlHttpHandler
WebFlux.fn Handler for GraphQL over HTTP requests.
- Since:
- 1.0.0
- Author:
- Rossen Stoyanchev, Brian Clozel
-
Field Summary
Fields inherited from class org.springframework.graphql.server.webflux.AbstractGraphQlHttpHandler
logger
-
Constructor Summary
ConstructorDescriptionGraphQlHttpHandler
(WebGraphQlHandler graphQlHandler) Create a new instance.GraphQlHttpHandler
(WebGraphQlHandler graphQlHandler, CodecConfigurer codecConfigurer) Create a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected reactor.core.publisher.Mono<ServerResponse>
prepareResponse
(ServerRequest request, WebGraphQlResponse response) Prepare theServerResponse
for the given GraphQL response.Methods inherited from class org.springframework.graphql.server.webflux.AbstractGraphQlHttpHandler
encode, encodeResponseIfNecessary, handleRequest
-
Constructor Details
-
GraphQlHttpHandler
Create a new instance.- Parameters:
graphQlHandler
- common handler for GraphQL over HTTP requests
-
GraphQlHttpHandler
Create a new instance.- Parameters:
graphQlHandler
- common handler for GraphQL over HTTP requestscodecConfigurer
- codec configurer for JSON encoding and decoding
-
-
Method Details
-
prepareResponse
protected reactor.core.publisher.Mono<ServerResponse> prepareResponse(ServerRequest request, WebGraphQlResponse response) Description copied from class:AbstractGraphQlHttpHandler
Prepare theServerResponse
for the given GraphQL response.- Specified by:
prepareResponse
in classAbstractGraphQlHttpHandler
- Parameters:
request
- the current requestresponse
- the GraphQL response- Returns:
- the server response
-