クラス AbstractReplyProducingMessageHandler
java.lang.ObjectSE
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.handler.MessageHandlerSupport
org.springframework.integration.handler.AbstractMessageHandler
org.springframework.integration.handler.AbstractMessageProducingHandler
org.springframework.integration.handler.AbstractReplyProducingMessageHandler
- 実装されたすべてのインターフェース:
org.reactivestreams.Subscriber<Message<?>>
、Aware
、BeanClassLoaderAware
、BeanFactoryAware
、BeanNameAware
、DisposableBean
、InitializingBean
、ApplicationContextAware
、Ordered
、ExpressionCapable
、Orderable
、MessageProducer
、HeaderPropagationAware
、IntegrationPattern
、NamedComponent
、IntegrationManagement
、TrackableComponent
、MessageHandler
、reactor.core.CoreSubscriber<Message<?>>
- 既知の直属サブクラス
AbstractAmqpOutboundEndpoint
、AbstractHttpRequestExecutingMessageHandler
、AbstractMessageSplitter
、AbstractRemoteFileOutboundGateway
、AbstractReplyProducingPostProcessingMessageHandler
、AbstractWebServiceOutboundGateway
、BarrierMessageHandler
、BridgeHandler
、CamelMessageHandler
、CassandraMessageHandler
、ContentEnricher
、DelayHandler
、FileWritingMessageHandler
、GatewayMessageHandler
、GraphQlMessageHandler
、JdbcOutboundGateway
、JmsOutboundGateway
、JpaOutboundGateway
、KafkaProducerMessageHandler
、MessageTransformingHandler
、MongoDbOutboundGateway
、OperationInvokingMessageHandler
、RedisOutboundGateway
、RedisQueueOutboundGateway
、ReplyProducingMessageHandlerWrapper
、RSocketOutboundGateway
、ScatterGatherHandler
、ServiceActivatingHandler
、StoredProcOutboundGateway
、TcpOutboundGateway
public abstract class AbstractReplyProducingMessageHandler
extends AbstractMessageProducingHandler
implements BeanClassLoaderAware
返信を生成できる MessageHandlers の基本クラス。
- 作成者:
- Mark Fisher, Iwein Fuld, Oleg Zhurakousky, Gary Russell, Artem Bilan, David Liu, Trung Pham, Christian Tzolov
ネストされたクラスのサマリー
ネストされたクラスインターフェース org.springframework.integration.support.management.IntegrationManagement から継承されたネストクラス / インターフェース
IntegrationManagement.ManagementOverrides
フィールドサマリー
クラス org.springframework.integration.handler.AbstractMessageProducingHandler から継承されたフィールド
messagingTemplate
クラス org.springframework.integration.context.IntegrationObjectSupport から継承されたフィールド
EXPRESSION_PARSER, logger
インターフェース org.springframework.integration.support.management.IntegrationManagement から継承されたフィールド
METER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAME
インターフェース org.springframework.core.Ordered から継承されたフィールド
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
コンストラクターのサマリー
コンストラクターメソッドのサマリー
修飾子と型メソッド説明protected void
doInit()
protected ObjectSE
doInvokeAdvisedRequestHandler
(Message<?> message) protected ClassLoaderSE
このコンポーネントが実装するパターン型を返します。protected boolean
protected final void
handleMessageInternal
(Message<?> message) protected abstract ObjectSE
handleRequestMessage
(Message<?> requestMessage) サブクラスはこのメソッドを実装して、リクエストメッセージを処理する必要があります。protected boolean
protected final void
onInit()
サブクラスは、初期化ロジック用にこれを実装できます。void
setAdviceChain
(ListSE<Advice> adviceChain) handleRequestMessage(Message)
メソッドをプロキシするAdvice
のリストを構成します。void
setBeanClassLoader
(ClassLoaderSE beanClassLoader) void
setRequiresReply
(boolean requiresReply) 返信が必要かどうかのフラグ。クラス org.springframework.integration.handler.AbstractMessageProducingHandler から継承されたメソッド
addNotPropagatedHeaders, createOutputMessage, getNotPropagatedHeaders, getOutputChannel, isAsync, messageBuilderForReply, produceOutput, resolveErrorChannel, sendErrorMessage, sendOutput, sendOutputs, setAsync, setNotPropagatedHeaders, setOutputChannel, setOutputChannelName, setSendTimeout, setupMessageProcessor, shouldCopyRequestHeaders, shouldSplitOutput, updateNotPropagatedHeaders
クラス org.springframework.integration.handler.AbstractMessageHandler から継承されたメソッド
handleMessage, onComplete, onError, onNext, onSubscribe, setObservationConvention
クラス org.springframework.integration.handler.MessageHandlerSupport から継承されたメソッド
buildSendTimer, destroy, getComponentType, getManagedName, getManagedType, getMetricsCaptor, getObservationRegistry, getOrder, getOverrides, isLoggingEnabled, isObserved, registerMetricsCaptor, registerObservationRegistry, sendTimer, setLoggingEnabled, setManagedName, setManagedType, setOrder, setShouldTrack, shouldTrack
クラス org.springframework.integration.context.IntegrationObjectSupport から継承されたメソッド
afterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentName, getConversionService, getExpression, getIntegrationProperties, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toString
クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, wait, waitSE, waitSE
インターフェース reactor.core.CoreSubscriber から継承されたメソッド
currentContext
インターフェース org.springframework.integration.support.management.IntegrationManagement から継承されたメソッド
getThisAs
インターフェース org.springframework.integration.support.context.NamedComponent から継承されたメソッド
getBeanName, getComponentName
コンストラクターの詳細
AbstractReplyProducingMessageHandler
public AbstractReplyProducingMessageHandler()
メソッドの詳細
setRequiresReply
public void setRequiresReply(boolean requiresReply) 返信が必要かどうかのフラグ。true の場合、受信メッセージは応答メッセージの送信につながる必要があります。false の場合、受信メッセージにより、返信メッセージが送信される場合があります。デフォルトは false です。- パラメーター:
requiresReply
- 返信が必要な場合は true。
getRequiresReply
protected boolean getRequiresReply()setAdviceChain
handleRequestMessage(Message)
メソッドをプロキシするAdvice
のリストを構成します。- パラメーター:
adviceChain
- 使用するAdvice
のリスト。
hasAdviceChain
protected boolean hasAdviceChain()setBeanClassLoader
- 次で指定:
- インターフェース
BeanClassLoaderAware
のsetBeanClassLoader
getBeanClassLoader
getIntegrationPatternType
インターフェースからコピーされた説明:IntegrationPattern
このコンポーネントが実装するパターン型を返します。- 次で指定:
- インターフェース
IntegrationPattern
のgetIntegrationPatternType
- オーバーライド:
- クラス
MessageHandlerSupport
のgetIntegrationPatternType
- 戻り値:
- このコンポーネントが実装する
IntegrationPatternType
onInit
protected final void onInit()クラスからコピーされた説明:IntegrationObjectSupport
サブクラスは、初期化ロジック用にこれを実装できます。- オーバーライド:
- クラス
AbstractMessageProducingHandler
のonInit
doInit
protected void doInit()handleMessageInternal
- 次で指定:
- クラス
AbstractMessageHandler
のhandleMessageInternal
doInvokeAdvisedRequestHandler
handleRequestMessage
サブクラスはこのメソッドを実装して、リクエストメッセージを処理する必要があります。戻り値は、メッセージ、MessageBuilder、任意のプレーンオブジェクトです。基本クラスは、これらの開始点のいずれかからの返信メッセージの最終的な作成を処理します。戻り値が null の場合、メッセージフローはここで終了します。- パラメーター:
requestMessage
- リクエストメッセージ。- 戻り値:
- メッセージを処理した結果、または
null