public class WebFluxInboundEndpoint extends BaseHttpInboundEndpoint implements WebHandler
MessagingGatewaySupport
implementation for Spring WebFlux HTTP requests execution.HandlerResultHandlerSupport
,
EnableWebFlux
IntegrationManagement.ManagementOverrides
activeCount, JAXB_PRESENT, NON_READABLE_BODY_HTTP_METHODS, ROME_TOOLS_PRESENT
messagingTemplate
lifecycleCondition, lifecycleLock
EXPRESSION_PARSER, logger
METER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAME
DEFAULT_PHASE
Constructor and Description |
---|
WebFluxInboundEndpoint() |
WebFluxInboundEndpoint(boolean expectReply) |
Modifier and Type | Method and Description |
---|---|
String |
getComponentType()
Subclasses may implement this method to provide component type information.
|
reactor.core.publisher.Mono<Void> |
handle(ServerWebExchange exchange) |
void |
setCodecConfigurer(ServerCodecConfigurer codecConfigurer)
A
ServerCodecConfigurer for the request readers and response writers. |
void |
setReactiveAdapterRegistry(ReactiveAdapterRegistry adapterRegistry)
A registry of adapters to adapt a Reactive Streams
Publisher to/from. |
void |
setRequestedContentTypeResolver(RequestedContentTypeResolver requestedContentTypeResolver)
A strategy to resolve the requested media types for a
ServerWebExchange . |
afterShutdown, beforeShutdown, createEvaluationContext, evaluateHttpStatus, getCrossOrigin, getExtractReplyPayload, getHeaderExpressions, getHeaderMapper, getIntegrationPatternType, getPayloadExpression, getRequestMapping, getRequestPayloadType, getStatusCodeExpression, getValidator, isExpectReply, isReadable, onInit, resolveHttpStatusFromHeaders, setCrossOrigin, setExtractReplyPayload, setHeaderExpressions, setHeaderMapper, setPayloadExpression, setRequestMapping, setRequestPayloadType, setRequestPayloadTypeClass, setStatusCodeExpression, setStatusCodeExpressionString, setValidator, validate
buildErrorMessage, buildSendTimer, destroy, doStart, doStop, getErrorChannel, getErrorMessageAttributes, getManagedName, getManagedType, getOverrides, getReplyChannel, getRequestChannel, isLoggingEnabled, receive, receive, receiveMessage, receiveMessage, registerMetricsCaptor, registerReplyMessageCorrelatorIfNecessary, send, sendAndReceive, sendAndReceiveMessage, sendAndReceiveMessageReactive, sendTimer, setErrorChannel, setErrorChannelName, setErrorMessageStrategy, setErrorOnTimeout, setLoggingEnabled, setManagedName, setManagedType, setReplyChannel, setReplyChannelName, setReplyMapper, setReplyTimeout, setRequestChannel, setRequestChannelName, setRequestMapper, setRequestTimeout, setShouldTrack
doStop, getPhase, getRole, isActive, isAutoStartup, isRunning, setAutoStartup, setPhase, setRole, start, stop, stop
afterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentName, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getThisAs
getBeanName, getComponentName
public WebFluxInboundEndpoint()
public WebFluxInboundEndpoint(boolean expectReply)
public void setCodecConfigurer(ServerCodecConfigurer codecConfigurer)
ServerCodecConfigurer
for the request readers and response writers.
By default the ServerCodecConfigurer.create()
factory is used.codecConfigurer
- the ServerCodecConfigurer
to use.public void setRequestedContentTypeResolver(RequestedContentTypeResolver requestedContentTypeResolver)
ServerWebExchange
.
A HeaderContentTypeResolver
is used by default.requestedContentTypeResolver
- the RequestedContentTypeResolver
to use.public void setReactiveAdapterRegistry(ReactiveAdapterRegistry adapterRegistry)
Publisher
to/from.adapterRegistry
- the ReactiveAdapterRegistry
to use.public String getComponentType()
IntegrationObjectSupport
getComponentType
in interface NamedComponent
getComponentType
in class BaseHttpInboundEndpoint
public reactor.core.publisher.Mono<Void> handle(ServerWebExchange exchange)
handle
in interface WebHandler