S - ターゲット BaseHttpMessageHandlerSpec 実装型。E - ターゲット AbstractHttpRequestExecutingMessageHandler 実装型。public abstract class BaseHttpMessageHandlerSpec<S extends BaseHttpMessageHandlerSpec<S,E>,E extends AbstractHttpRequestExecutingMessageHandler> extends MessageHandlerSpec<S,E> implements ComponentsRegistration
PARSER, targetloggerDEFAULT_PHASEOBJECT_TYPE_ATTRIBUTE| コンストラクターと説明 |
|---|
BaseHttpMessageHandlerSpec(E handler) |
| 修飾子と型 | メソッドと説明 |
|---|---|
S | charset(StringSE charset) 文字列型のペイロードをバイトに変換するために使用する文字セット名を指定します。 |
S | encodeUri(boolean encodeUri) 使用すべきではありません。 |
S | encodingMode(DefaultUriBuilderFactory.EncodingMode encodingMode)uri 構築には DefaultUriBuilderFactory.EncodingMode を指定します。 |
S | expectedResponseType(ClassSE<?> expectedResponseType)REST リクエストの予想されるレスポンス型を指定します。 |
S | expectedResponseType(ParameterizedTypeReference<?> expectedResponseType)REST リクエストの予想されるレスポンス型に ParameterizedTypeReference を指定します。 |
S | expectedResponseTypeExpression(Expression expectedResponseTypeExpression)SpEL Expression を指定して、期待されるレスポンスの型を判別します。式の戻り値は、完全修飾クラス名を表す ClassSE または StringSE のインスタンスである可能性があります。 |
<P> S | expectedResponseTypeFunction(java.util.function.FunctionSE<Message<P>,?> expectedResponseTypeFunction) |
protected S | expectReply(boolean expectReply) |
S | extractPayload(boolean extractPayload) リクエスト本文の準備時に送信メッセージのペイロードを抽出するかどうかを指定します。 |
MapSE<ObjectSE, StringSE> | getComponentsToRegister() |
S | headerMapper(HeaderMapper<HttpHeaders> headerMapper)HTTP ヘッダーと MessageHeaders の間のマッピング時に使用する HeaderMapper を設定します。 |
S | httpMethod(HttpMethod httpMethod) リクエストには HttpMethod を指定します。 |
S | httpMethodExpression(Expression httpMethodExpression)SpEL Expression を指定して、実行時に HttpMethod を決定します。 |
<P> S | httpMethodFunction(java.util.function.FunctionSE<Message<P>,?> httpMethodFunction)FunctionSE を指定して、実行時に HttpMethod を決定します。 |
protected abstract boolean | isClientSet() |
S | mappedRequestHeaders(StringSE... patterns) マップするリクエストヘッダーのパターン配列を提供します。 |
S | mappedResponseHeaders(StringSE... patterns) マップするレスポンスヘッダーのパターン配列を提供します。 |
S | transferCookies(boolean transferCookies) レスポンスの Set-Cookie ヘッダーを、その後のメッセージの対話で Cookie ヘッダーとして転送する場合は、true に設定します。 |
S | uriVariable(StringSE variable, Expression expression)Expression を指定して、uri テンプレート変数の値を評価します。 |
<P> S | uriVariable(StringSE variable, java.util.function.FunctionSE<Message<P>,?> valueFunction)FunctionSE を指定して、uri テンプレート変数の値を評価します。 |
S | uriVariable(StringSE variable, StringSE expression)uri テンプレート変数の値 SpEL 式を指定します。 |
S | uriVariableExpressions(MapSE<StringSE, Expression> uriVariableExpressions)URI テンプレートの変数プレースホルダーを置き換えるときに、送信メッセージに対して評価するように URI 変数式のマップを設定します。 |
S | uriVariablesExpression(Expression uriVariablesExpression)SpEL 式を指定して、リクエストメッセージに対して実行時に URI 変数の MapSE を評価します。 |
S | uriVariablesExpression(StringSE uriVariablesExpression)SpEL 式を指定して、リクエストメッセージに対して実行時に URI 変数の MapSE を評価します。 |
<P> S | uriVariablesFunction(java.util.function.FunctionSE<Message<P>,MapSE<StringSE,?>> uriVariablesFunction)FunctionSE を指定して、リクエストメッセージに対して実行時に URI 変数の MapSE を評価します。 |
_this, createInstance, destroyInstance, doGet, get, getId, getObjectType, getPhase, id, isAutoStartup, isRunning, start, stop, stopafterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingletoncloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic BaseHttpMessageHandlerSpec(E handler)
protected S expectReply(boolean expectReply)
@DeprecatedSE public S encodeUri(boolean encodeUri)
uriVariables の展開後、基盤となる実装を介してリクエストを送信する前に、実際の URI をエンコードするかどうかを指定します。デフォルト値は true です。encodeUri - URI をエンコードする必要がある場合は true。public S encodingMode(DefaultUriBuilderFactory.EncodingMode encodingMode)
DefaultUriBuilderFactory.EncodingMode を指定します。encodingMode - uri の構築に使用します。public S httpMethodExpression(Expression httpMethodExpression)
Expression を指定して、実行時に HttpMethod を決定します。httpMethodExpression - メソッド式。public <P> S httpMethodFunction(java.util.function.FunctionSE<Message<P>,?> httpMethodFunction)
FunctionSE を指定して、実行時に HttpMethod を決定します。P - ペイロード型。httpMethodFunction - HTTP メソッド FunctionSE。public S httpMethod(HttpMethod httpMethod)
HttpMethod を指定します。デフォルトの方法は POST です。httpMethod - 使用する HttpMethod。public S extractPayload(boolean extractPayload)
true です。extractPayload - ペイロードを抽出する必要がある場合は true。public S charset(StringSE charset)
UTF-8 です。charset - 文字セット。public S expectedResponseType(ClassSE<?> expectedResponseType)
expectedResponseType - 期待される型。public S expectedResponseType(ParameterizedTypeReference<?> expectedResponseType)
ParameterizedTypeReference を指定します。expectedResponseType - 予想される型の ParameterizedTypeReference。public S expectedResponseTypeExpression(Expression expectedResponseTypeExpression)
Expression を指定して、期待されるレスポンスの型を判別します。式の戻り値は、完全修飾クラス名を表す ClassSE または StringSE のインスタンスである可能性があります。expectedResponseTypeExpression - 予期されるレスポンス型の式。public <P> S expectedResponseTypeFunction(java.util.function.FunctionSE<Message<P>,?> expectedResponseTypeFunction)
P - ペイロード型。expectedResponseTypeFunction - 予想されるレスポンス型 FunctionSE。public S headerMapper(HeaderMapper<HttpHeaders> headerMapper)
MessageHeaders の間のマッピング時に使用する HeaderMapper を設定します。headerMapper - ヘッダーマッパー。public S mappedRequestHeaders(StringSE... patterns)
patterns - マップするリクエストヘッダーのパターン。DefaultHttpHeaderMapper.setOutboundHeaderNames(String[])public S mappedResponseHeaders(StringSE... patterns)
patterns - マップするレスポンスヘッダーのパターン。DefaultHttpHeaderMapper.setInboundHeaderNames(String[])public S uriVariableExpressions(MapSE<StringSE,Expression> uriVariableExpressions)
uriVariableExpressions - URI 変数式。AbstractHttpRequestExecutingMessageHandler.setUriVariableExpressions(Map)public S uriVariable(StringSE variable, Expression expression)
Expression を指定して、uri テンプレート変数の値を評価します。variable - uri テンプレート変数。expression - teuri テンプレート変数の値を評価する式。AbstractHttpRequestExecutingMessageHandler.setUriVariableExpressions(Map), ValueExpression, LiteralExpressionpublic S uriVariable(StringSE variable, StringSE expression)
variable - uri テンプレート変数。expression - teuri テンプレート変数の値を評価する式。AbstractHttpRequestExecutingMessageHandler.setUriVariableExpressions(Map)public <P> S uriVariable(StringSE variable, java.util.function.FunctionSE<Message<P>,?> valueFunction)
FunctionSE を指定して、uri テンプレート変数の値を評価します。P - ペイロード型。variable - uri テンプレート変数。valueFunction - uri テンプレート変数の値を評価するための FunctionSE。AbstractHttpRequestExecutingMessageHandler.setUriVariableExpressions(Map)public S uriVariablesExpression(StringSE uriVariablesExpression)
MapSE を評価します。uriVariablesExpression - 使用します。AbstractHttpRequestExecutingMessageHandler.setUriVariablesExpression(Expression)public S uriVariablesExpression(Expression uriVariablesExpression)
MapSE を評価します。uriVariablesExpression - 使用します。AbstractHttpRequestExecutingMessageHandler.setUriVariablesExpression(Expression)public <P> S uriVariablesFunction(java.util.function.FunctionSE<Message<P>,MapSE<StringSE,?>> uriVariablesFunction)
FunctionSE を指定して、リクエストメッセージに対して実行時に URI 変数の MapSE を評価します。P - ペイロード型。uriVariablesFunction - 使用する FunctionSE。AbstractHttpRequestExecutingMessageHandler.setUriVariablesExpression(Expression)public S transferCookies(boolean transferCookies)
Set-Cookie ヘッダーを、その後のメッセージの対話で Cookie ヘッダーとして転送する場合は、true に設定します。transferCookies - transferCookies を設定します。public MapSE<ObjectSE,StringSE> getComponentsToRegister()
ComponentsRegistration の getComponentsToRegister protected abstract boolean isClientSet()