D
- 宛先型 public abstract class AbstractMessagingTemplate<D> extends AbstractMessageReceivingTemplate<D> implements MessageRequestReplyOperations<D>
MessageRequestReplyOperations
で定義されているリクエスト / 応答スタイルの操作のサポートを追加する AbstractMessageReceivingTemplate
の拡張。CONVERSION_HINT_HEADER, logger
コンストラクターと説明 |
---|
AbstractMessagingTemplate() |
修飾子と型 | メソッドと説明 |
---|---|
<T> T | convertSendAndReceive(D destination, java.lang.Object request, java.lang.Class<T> targetClass) おそらく MessageConverter を使用して、指定されたリクエストオブジェクトを直列化された形式に変換し、指定された宛先に Message として送信し、応答を受信して、指定されたターゲットクラスの本体を変換します。 |
<T> T | convertSendAndReceive(D destination, java.lang.Object request, java.lang.Class<T> targetClass, MessagePostProcessor postProcessor) おそらく MessageConverter を使用して、指定されたリクエストオブジェクトを直列化された形式に変換し、指定されたポストプロセッサーを適用し、指定された宛先に結果の Message を送信します。 |
<T> T | convertSendAndReceive(D destination, java.lang.Object request, java.util.Map<java.lang.String,java.lang.Object> headers, java.lang.Class<T> targetClass) おそらく MessageConverter を使用して、指定されたリクエストオブジェクトを直列化された形式に変換し、指定されたヘッダーを持つ Message として指定された宛先に送信し、応答を受信して指定されたターゲットクラスの本体を変換します。 |
<T> T | convertSendAndReceive(D destination, java.lang.Object request, java.util.Map<java.lang.String,java.lang.Object> headers, java.lang.Class<T> targetClass, MessagePostProcessor postProcessor) おそらく MessageConverter を使用して、指定されたリクエストオブジェクトを直列化された形式に変換し、指定されたヘッダーでメッセージとしてラップし、指定されたポストプロセッサーを適用し、結果の Message を指定された宛先に送信し、応答を受信して、指定されたターゲットの本体を変換します。クラス。 |
<T> T | convertSendAndReceive(java.lang.Object request, java.lang.Class<T> targetClass) おそらく MessageConverter を使用して、指定されたリクエストオブジェクトを直列化された形式に変換し、Message としてデフォルトの宛先に送信し、応答を受信して、指定されたターゲットクラスの本体を変換します。 |
<T> T | convertSendAndReceive(java.lang.Object request, java.lang.Class<T> targetClass, MessagePostProcessor postProcessor) おそらく MessageConverter を使用して、指定されたリクエストオブジェクトを直列化された形式に変換し、指定されたポストプロセッサーを適用し、結果の Message をデフォルトの宛先に送信し、応答を受信し、指定されたターゲットクラスの本体を変換します |
protected abstract Message<?> | doSendAndReceive(D destination, Message<?> requestMessage) |
Message<?> | sendAndReceive(D destination, Message<?> requestMessage) リクエストメッセージを送信し、指定された宛先から応答を受信します。 |
Message<?> | sendAndReceive(Message<?> requestMessage) リクエストメッセージを送信し、デフォルトの宛先から応答を受信します。 |
doConvert, doReceive, receive, receive, receiveAndConvert, receiveAndConvert
convertAndSend, convertAndSend, convertAndSend, convertAndSend, convertAndSend, convertAndSend, doConvert, doSend, getDefaultDestination, getMessageConverter, getRequiredDefaultDestination, processHeadersToSend, send, send, setDefaultDestination, setMessageConverter
@Nullable public Message<?> sendAndReceive(Message<?> requestMessage)
MessageRequestReplyOperations
MessageRequestReplyOperations<D>
の sendAndReceive
requestMessage
- 送信するメッセージ null
@Nullable public Message<?> sendAndReceive(D destination, Message<?> requestMessage)
MessageRequestReplyOperations
MessageRequestReplyOperations<D>
の sendAndReceive
destination
- 宛先 requestMessage
- 送信するメッセージ null
@Nullable protected abstract Message<?> doSendAndReceive(D destination, Message<?> requestMessage)
@Nullable public <T> T convertSendAndReceive(java.lang.Object request, java.lang.Class<T> targetClass)
MessageRequestReplyOperations
MessageConverter
を使用して、指定されたリクエストオブジェクトを直列化された形式に変換し、Message
としてデフォルトの宛先に送信し、応答を受信して、指定されたターゲットクラスの本体を変換します。MessageRequestReplyOperations<D>
の convertSendAndReceive
request
- 送信するリクエストメッセージのペイロード targetClass
- 応答のペイロードを変換するターゲット型 null
@Nullable public <T> T convertSendAndReceive(D destination, java.lang.Object request, java.lang.Class<T> targetClass)
MessageRequestReplyOperations
MessageConverter
を使用して、指定されたリクエストオブジェクトを直列化された形式に変換し、指定された宛先に Message
として送信し、応答を受信して、指定されたターゲットクラスの本体を変換します。MessageRequestReplyOperations<D>
の convertSendAndReceive
destination
- 宛先 request
- 送信するリクエストメッセージのペイロード targetClass
- 応答のペイロードを変換するターゲット型 null
@Nullable public <T> T convertSendAndReceive(D destination, java.lang.Object request, @Nullable java.util.Map<java.lang.String,java.lang.Object> headers, java.lang.Class<T> targetClass)
MessageRequestReplyOperations
MessageConverter
を使用して、指定されたリクエストオブジェクトを直列化された形式に変換し、指定されたヘッダーを持つ Message
として指定された宛先に送信し、応答を受信して指定されたターゲットクラスの本体を変換します。MessageRequestReplyOperations<D>
の convertSendAndReceive
destination
- 宛先 request
- 送信するリクエストメッセージのペイロード headers
- 送信するリクエストメッセージのヘッダー targetClass
- 応答のペイロードを変換するターゲット型 null
@Nullable public <T> T convertSendAndReceive(java.lang.Object request, java.lang.Class<T> targetClass, @Nullable MessagePostProcessor postProcessor)
MessageRequestReplyOperations
MessageConverter
を使用して、指定されたリクエストオブジェクトを直列化された形式に変換し、指定されたポストプロセッサーを適用し、結果の Message
をデフォルトの宛先に送信し、応答を受信し、指定されたターゲットクラスの本体を変換します MessageRequestReplyOperations<D>
の convertSendAndReceive
request
- 送信するリクエストメッセージのペイロード targetClass
- 応答のペイロードを変換するターゲット型 postProcessor
- リクエストメッセージに適用するポストプロセス null
@Nullable public <T> T convertSendAndReceive(D destination, java.lang.Object request, java.lang.Class<T> targetClass, @Nullable MessagePostProcessor postProcessor)
MessageRequestReplyOperations
MessageConverter
を使用して、指定されたリクエストオブジェクトを直列化された形式に変換し、指定されたポストプロセッサーを適用し、指定された宛先に結果の Message
を送信します。MessageRequestReplyOperations<D>
の convertSendAndReceive
destination
- 宛先 request
- 送信するリクエストメッセージのペイロード targetClass
- 応答のペイロードを変換するターゲット型 postProcessor
- リクエストメッセージに適用するポストプロセス null
@Nullable public <T> T convertSendAndReceive(D destination, java.lang.Object request, @Nullable java.util.Map<java.lang.String,java.lang.Object> headers, java.lang.Class<T> targetClass, @Nullable MessagePostProcessor postProcessor)
MessageRequestReplyOperations
MessageConverter
を使用して、指定されたリクエストオブジェクトを直列化された形式に変換し、指定されたヘッダーでメッセージとしてラップし、指定されたポストプロセッサーを適用し、結果の Message
を指定された宛先に送信し、応答を受信して、指定されたターゲットの本体を変換します。クラス。MessageRequestReplyOperations<D>
の convertSendAndReceive
destination
- 宛先 request
- 送信するリクエストメッセージのペイロード targetClass
- 応答のペイロードを変換するターゲット型 postProcessor
- リクエストメッセージに適用するポストプロセス null