クラス BaseHttpMessageHandlerSpec<S extends BaseHttpMessageHandlerSpec<S,E>,E extends AbstractHttpRequestExecutingMessageHandler>
java.lang.ObjectSE
org.springframework.integration.dsl.IntegrationComponentSpec<S,E>
org.springframework.integration.dsl.MessageHandlerSpec<S,E>
org.springframework.integration.http.dsl.BaseHttpMessageHandlerSpec<S,E>
- 型パラメーター:
S
- ターゲットBaseHttpMessageHandlerSpec
実装型。E
- ターゲットAbstractHttpRequestExecutingMessageHandler
実装型。
- 実装されたすべてのインターフェース:
DisposableBean
、FactoryBean<E>
、InitializingBean
、Lifecycle
、Phased
、SmartLifecycle
、ComponentsRegistration
- 既知の直属サブクラス
HttpMessageHandlerSpec
,WebFluxMessageHandlerSpec
public abstract class BaseHttpMessageHandlerSpec<S extends BaseHttpMessageHandlerSpec<S,E>,E extends AbstractHttpRequestExecutingMessageHandler>
extends MessageHandlerSpec<S,E>
implements ComponentsRegistration
- 導入:
- 5.0
- 作成者:
- Artem Bilan, Shiliang Li
フィールドのサマリー
クラス org.springframework.integration.dsl.IntegrationComponentSpec から継承されたフィールド
logger, PARSER, target
インターフェース org.springframework.beans.factory.FactoryBean から継承されたフィールド
OBJECT_TYPE_ATTRIBUTE
インターフェース org.springframework.context.SmartLifecycle から継承されたフィールド
DEFAULT_PHASE
コンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明文字列型のペイロードをバイトに変換するために使用する文字セット名を指定します。encodingMode
(DefaultUriBuilderFactory.EncodingMode encodingMode) uri 構築にはDefaultUriBuilderFactory.EncodingMode
を指定します。expectedResponseType
(ClassSE<?> expectedResponseType) REST リクエストの予想されるレスポンス型を指定します。expectedResponseType
(ParameterizedTypeReference<?> expectedResponseType) REST リクエストの予想されるレスポンス型にParameterizedTypeReference
を指定します。expectedResponseTypeExpression
(Expression expectedResponseTypeExpression) SpELExpression
を指定して、期待されるレスポンスの型を判別します。式の戻り値は、完全修飾クラス名を表すClass
SE またはString
SE のインスタンスである可能性があります。<P> S
expectedResponseTypeFunction
(FunctionSE<Message<P>, ?> expectedResponseTypeFunction) protected S
expectReply
(boolean expectReply) extractPayload
(boolean extractPayload) リクエスト本文の準備時に送信メッセージのペイロードを抽出するかどうかを指定します。extractResponseBody
(boolean extractResponseBody) 応答メッセージのペイロード用にResponseEntity
の本文を抽出するフラグ。headerMapper
(HeaderMapper<HttpHeaders> headerMapper) HTTP ヘッダーとMessageHeaders
の間のマッピング時に使用するHeaderMapper
を設定します。httpMethod
(HttpMethod httpMethod) リクエストにはHttpMethod
を指定します。httpMethodExpression
(Expression httpMethodExpression) SpELExpression
を指定して、実行時にHttpMethod
を決定します。<P> S
httpMethodFunction
(FunctionSE<Message<P>, ?> httpMethodFunction) Function
SE を指定して、実行時にHttpMethod
を決定します。protected abstract boolean
mappedRequestHeaders
(StringSE... patterns) マップするリクエストヘッダーのパターン配列を提供します。mappedResponseHeaders
(StringSE... patterns) マップするレスポンスヘッダーのパターン配列を提供します。transferCookies
(boolean transferCookies) レスポンスのSet-Cookie
ヘッダーを、その後のメッセージの対話でCookie
ヘッダーとして転送する場合は、true
に設定します。uriVariable
(StringSE variable, StringSE expression) uri テンプレート変数の値 SpEL 式を指定します。<P> S
uriVariable
(StringSE variable, FunctionSE<Message<P>, ?> valueFunction) Function
SE を指定して、uri テンプレート変数の値を評価します。uriVariable
(StringSE variable, Expression expression) Expression
を指定して、uri テンプレート変数の値を評価します。uriVariableExpressions
(MapSE<StringSE, Expression> uriVariableExpressions) URI テンプレートの変数プレースホルダーを置き換えるときに、送信メッセージに対して評価するように URI 変数式のマップを設定します。uriVariablesExpression
(StringSE uriVariablesExpression) SpEL 式を指定して、リクエストメッセージに対して実行時に URI 変数のMap
SE を評価します。uriVariablesExpression
(Expression uriVariablesExpression) SpEL 式を指定して、リクエストメッセージに対して実行時に URI 変数のMap
SE を評価します。<P> S
uriVariablesFunction
(FunctionSE<Message<P>, MapSE<StringSE, ?>> uriVariablesFunction) Function
SE を指定して、リクエストメッセージに対して実行時に URI 変数のMap
SE を評価します。クラス org.springframework.integration.dsl.IntegrationComponentSpec から継承されたメソッド
_this, afterPropertiesSet, destroy, doGet, getId, getObject, getObjectType, getPhase, id, isAutoStartup, isRunning, start, stop, stop
クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSE
インターフェース org.springframework.beans.factory.FactoryBean から継承されたメソッド
isSingleton
コンストラクターの詳細
BaseHttpMessageHandlerSpec
メソッドの詳細
expectReply
encodingMode
uri 構築にはDefaultUriBuilderFactory.EncodingMode
を指定します。- パラメーター:
encodingMode
- uri の構築に使用します。- 戻り値:
- スペック
- 導入:
- 5.3
httpMethodExpression
SpELExpression
を指定して、実行時にHttpMethod
を決定します。- パラメーター:
httpMethodExpression
- メソッド式。- 戻り値:
- スペック
httpMethodFunction
Function
SE を指定して、実行時にHttpMethod
を決定します。- 型パラメーター:
P
- ペイロード型。- パラメーター:
httpMethodFunction
- HTTP メソッドFunction
SE。- 戻り値:
- スペック
httpMethod
リクエストにはHttpMethod
を指定します。デフォルトの方法はPOST
です。- パラメーター:
httpMethod
- 使用するHttpMethod
。- 戻り値:
- スペック
extractPayload
リクエスト本文の準備時に送信メッセージのペイロードを抽出するかどうかを指定します。それ以外の場合、メッセージインスタンス自体は直列化されます。デフォルト値はtrue
です。- パラメーター:
extractPayload
- ペイロードを抽出する必要がある場合は true。- 戻り値:
- スペック
charset
expectedResponseType
expectedResponseType
REST リクエストの予想されるレスポンス型にParameterizedTypeReference
を指定します。- パラメーター:
expectedResponseType
- 予想される型のParameterizedTypeReference
。- 戻り値:
- スペック
expectedResponseTypeExpression
SpELExpression
を指定して、期待されるレスポンスの型を判別します。式の戻り値は、完全修飾クラス名を表すClass
SE またはString
SE のインスタンスである可能性があります。- パラメーター:
expectedResponseTypeExpression
- 予期されるレスポンス型の式。- 戻り値:
- スペック
expectedResponseTypeFunction
- 型パラメーター:
P
- ペイロード型。- パラメーター:
expectedResponseTypeFunction
- 予想されるレスポンス型Function
SE。- 戻り値:
- スペック
headerMapper
HTTP ヘッダーとMessageHeaders
の間のマッピング時に使用するHeaderMapper
を設定します。- パラメーター:
headerMapper
- ヘッダーマッパー。- 戻り値:
- スペック
mappedRequestHeaders
mappedResponseHeaders
uriVariableExpressions
URI テンプレートの変数プレースホルダーを置き換えるときに、送信メッセージに対して評価するように URI 変数式のマップを設定します。- パラメーター:
uriVariableExpressions
- URI 変数式。- 戻り値:
- 現在の仕様。
- 関連事項:
uriVariable
Expression
を指定して、uri テンプレート変数の値を評価します。- パラメーター:
variable
- uri テンプレート変数。expression
- teuri テンプレート変数の値を評価する式。- 戻り値:
- 現在の仕様。
- 関連事項:
uriVariable
uriVariable
Function
SE を指定して、uri テンプレート変数の値を評価します。- 型パラメーター:
P
- ペイロード型。- パラメーター:
variable
- uri テンプレート変数。valueFunction
- uri テンプレート変数の値を評価するためのFunction
SE。- 戻り値:
- 現在の仕様。
- 関連事項:
uriVariablesExpression
uriVariablesExpression
SpEL 式を指定して、リクエストメッセージに対して実行時に URI 変数のMap
SE を評価します。- パラメーター:
uriVariablesExpression
- 使用します。- 戻り値:
- 現在の仕様。
- 関連事項:
uriVariablesFunction
Function
SE を指定して、リクエストメッセージに対して実行時に URI 変数のMap
SE を評価します。- 型パラメーター:
P
- ペイロード型。- パラメーター:
uriVariablesFunction
- 使用するFunction
SE。- 戻り値:
- 現在の仕様。
- 関連事項:
transferCookies
レスポンスのSet-Cookie
ヘッダーをメッセージの後続の対話でCookie
ヘッダーとして転送する場合は、true
に設定します。デフォルトは false です。- パラメーター:
transferCookies
- transferCookies を設定します。- 戻り値:
- 現在の仕様。
extractResponseBody
応答メッセージのペイロード用にResponseEntity
の本文を抽出するフラグ。デフォルトは true です。- パラメーター:
extractResponseBody
-ResponseEntity
全体またはその本文のみを含む返信メッセージを作成します。- 戻り値:
- 現在の仕様。
- 導入:
- 5.5
getComponentsToRegister
- 次で指定:
- インターフェース
ComponentsRegistration
のgetComponentsToRegister
isClientSet
protected abstract boolean isClientSet()