クラス DelegatingDecompressingPostProcessor
java.lang.ObjectSE
org.springframework.amqp.support.postprocessor.DelegatingDecompressingPostProcessor
- 実装済みのインターフェース一覧:
MessagePostProcessor,Ordered
public class DelegatingDecompressingPostProcessor
extends ObjectSE
implements MessagePostProcessor, Ordered
コンテンツのエンコーディングに応じて、その
MessagePostProcessor の 1 つに委譲する MessagePostProcessor。デフォルトで gzip, zip, deflate をサポートします。- 導入:
- 1.4.2
- 作成者:
- Gary Russell, David Diehl, Ngoc Nhan
フィールド概要
インターフェース org.springframework.core.Ordered から継承されたフィールド
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCEコンストラクター概要
コンストラクターコンストラクター説明alwaysDecompress フラグを true に設定して、デフォルトの解凍プログラム (gzip、zip、deflate) を使用してインスタンスを構築します。方法の概要
修飾子と型メソッド説明voidaddDecompressor(StringSE contentEncoding, MessagePostProcessor decompressor) メッセージポストプロセッサーを解凍 MessageProcessors のマップに追加します。intgetOrder()postProcessMessage(Message message) メッセージを変更 (または置換) します。removeDecompressor(StringSE contentEncoding) このエンコーディングのデコンプレッサを削除します。MessageProperties.SPRING_AUTO_DECOMPRESSヘッダーが true の場合でも、コンテンツは解凍されません。voidsetDecompressors(MapSE<StringSE, MessagePostProcessor> decompressors) すべての減圧装置を交換してください。voidsetOrder(int order) 順序を設定します。クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSEインターフェース org.springframework.amqp.core.MessagePostProcessor から継承されたメソッド
postProcessMessage, postProcessMessage
コンストラクターの詳細
DelegatingDecompressingPostProcessor
public DelegatingDecompressingPostProcessor()alwaysDecompress フラグを true に設定して、デフォルトの解凍プログラム (gzip、zip、deflate) を使用してインスタンスを構築します。
メソッドの詳細
getOrder
public int getOrder()setOrder
public void setOrder(int order) 順序を設定します。- パラメーター:
order- オーダー。- 関連事項:
addDecompressor
メッセージポストプロセッサーを解凍 MessageProcessors のマップに追加します。- パラメーター:
contentEncoding- コンテンツのエンコーディング ;content-encodingプロパティが一致するか、このキーで始まり、その後に ":" が続く場合、メッセージはこのポストプロセッサーで解凍されます。decompressor- 解凍MessagePostProcessor。
removeDecompressor
このエンコーディングのデコンプレッサを削除します。MessageProperties.SPRING_AUTO_DECOMPRESSヘッダーが true の場合でも、コンテンツは解凍されません。- パラメーター:
contentEncoding- コンテンツのエンコーディング。- 戻り値:
- 存在する場合は解凍器。
setDecompressors
すべての減圧装置を交換してください。- パラメーター:
decompressors- デコンプレッサ。
postProcessMessage
インターフェースからコピーされた説明:MessagePostProcessorメッセージを変更 (または置換) します。- 次で指定:
- インターフェース
MessagePostProcessorのpostProcessMessage - パラメーター:
message- メッセージ。- 戻り値:
- メッセージ。
- 例外:
AmqpException- 例外。