Class WebFluxMessageHandlerSpec
java.lang.Object
org.springframework.integration.dsl.IntegrationComponentSpec<S,H>
 
org.springframework.integration.dsl.MessageHandlerSpec<S,E>
 
org.springframework.integration.http.dsl.BaseHttpMessageHandlerSpec<WebFluxMessageHandlerSpec,WebFluxRequestExecutingMessageHandler>
 
org.springframework.integration.webflux.dsl.WebFluxMessageHandlerSpec
- All Implemented Interfaces:
- DisposableBean,- FactoryBean<WebFluxRequestExecutingMessageHandler>,- InitializingBean,- Lifecycle,- Phased,- SmartLifecycle,- ComponentsRegistration
public class WebFluxMessageHandlerSpec
extends BaseHttpMessageHandlerSpec<WebFluxMessageHandlerSpec,WebFluxRequestExecutingMessageHandler> 
The 
BaseHttpMessageHandlerSpec implementation for the WebFluxRequestExecutingMessageHandler.- Since:
- 5.0
- Author:
- Shiliang Li, Artem Bilan, Abhijit Sarkar, Gary Russell
- See Also:
- 
Field SummaryFieldsFields inherited from class org.springframework.integration.dsl.IntegrationComponentSpeclogger, PARSER, targetFields inherited from interface org.springframework.beans.factory.FactoryBeanOBJECT_TYPE_ATTRIBUTEFields inherited from interface org.springframework.context.SmartLifecycleDEFAULT_PHASE
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedWebFluxMessageHandlerSpec(String uri, WebClient webClient) protectedWebFluxMessageHandlerSpec(URI uri, WebClient webClient) protectedWebFluxMessageHandlerSpec(Expression uriExpression, WebClient webClient) 
- 
Method SummaryModifier and TypeMethodDescriptionbodyExtractor(BodyExtractor<?, ? super ClientHttpResponse> bodyExtractor) Specify aBodyExtractoras an alternative to theexpectedResponseTypeto allow to get low-level access to the receivedClientHttpResponse.protected WebFluxMessageHandlerSpecexpectReply(boolean expectReply) protected booleanpublisherElementType(Class<?> publisherElementType) Configure a type for a requestPublisherelements.publisherElementType(ParameterizedTypeReference<?> publisherElementType) Configure aParameterizedTypeReferencefor a requestPublisherelements.publisherElementTypeExpression(Expression publisherElementTypeExpression) Configure a SpEL expression to evaluate a requestPublisherelements type at runtime against a request message.publisherElementTypeFunction(Function<Message<P>, ?> typeFunction) Configure aFunctionto evaluate a requestPublisherelements type at runtime against a request message.replyPayloadToFlux(boolean replyPayloadToFlux) The boolean flag to identify if the reply payload should be as aFluxfrom the response body or as resolved value from theMonoof the response body.Methods inherited from class org.springframework.integration.http.dsl.BaseHttpMessageHandlerSpeccharset, encodingMode, expectedResponseType, expectedResponseType, expectedResponseTypeExpression, expectedResponseTypeFunction, extractPayload, extractResponseBody, getComponentsToRegister, headerMapper, httpMethod, httpMethodExpression, httpMethodFunction, mappedRequestHeaders, mappedResponseHeaders, transferCookies, uriVariable, uriVariable, uriVariable, uriVariableExpressions, uriVariablesExpression, uriVariablesExpression, uriVariablesFunctionMethods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec_this, afterPropertiesSet, destroy, doGet, getId, getObject, getObjectType, getPhase, id, isAutoStartup, isRunning, start, stop, stopMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.FactoryBeanisSingleton
- 
Field Details- 
webClient
 
- 
- 
Constructor Details- 
WebFluxMessageHandlerSpec
- 
WebFluxMessageHandlerSpec
- 
WebFluxMessageHandlerSpec
 
- 
- 
Method Details- 
replyPayloadToFluxThe boolean flag to identify if the reply payload should be as aFluxfrom the response body or as resolved value from theMonoof the response body. Defaults tofalse- simple value is pushed downstream. Makes sense whenexpectedResponseTypeis configured.- Parameters:
- replyPayloadToFlux- represent reply payload as a- Fluxor as a value from the- Mono.
- Returns:
- the spec
- Since:
- 5.0.1
- See Also:
 
- 
bodyExtractorpublic WebFluxMessageHandlerSpec bodyExtractor(BodyExtractor<?, ? super ClientHttpResponse> bodyExtractor) Specify aBodyExtractoras an alternative to theexpectedResponseTypeto allow to get low-level access to the receivedClientHttpResponse.- Parameters:
- bodyExtractor- the- BodyExtractorto use.
- Returns:
- the spec
- Since:
- 5.0.1
- See Also:
 
- 
publisherElementTypeConfigure a type for a requestPublisherelements.- Parameters:
- publisherElementType- the type of the request- Publisherelements.
- Returns:
- the spec
- Since:
- 5.2
- See Also:
 
- 
publisherElementTypepublic WebFluxMessageHandlerSpec publisherElementType(ParameterizedTypeReference<?> publisherElementType) Configure aParameterizedTypeReferencefor a requestPublisherelements.- Parameters:
- publisherElementType- the type of the request- Publisherelements.
- Returns:
- the spec
- Since:
- 5.2
- See Also:
 
- 
publisherElementTypeFunctionpublic <P> WebFluxMessageHandlerSpec publisherElementTypeFunction(Function<Message<P>, ?> typeFunction) Configure aFunctionto evaluate a requestPublisherelements type at runtime against a request message.- Type Parameters:
- P- the expected payload type.
- Parameters:
- typeFunction- the- Functionto evaluate a type for the request- Publisherelements.
- Returns:
- the spec
- Since:
- 5.2
- See Also:
 
- 
publisherElementTypeExpressionpublic WebFluxMessageHandlerSpec publisherElementTypeExpression(Expression publisherElementTypeExpression) Configure a SpEL expression to evaluate a requestPublisherelements type at runtime against a request message.- Parameters:
- publisherElementTypeExpression- the expression to evaluate a type for the request- Publisherelements.
- Returns:
- the spec
- Since:
- 5.2
- See Also:
 
- 
isClientSetprotected boolean isClientSet()- Specified by:
- isClientSetin class- BaseHttpMessageHandlerSpec<WebFluxMessageHandlerSpec,- WebFluxRequestExecutingMessageHandler> 
 
- 
expectReply
 
-