public abstract class ExchangeFilterFunctions extends ObjectSE
ExchangeFilterFunction
の組み込み実装へのアクセスを提供する静的ファクトリメソッド 修飾子と型 | クラスと説明 |
---|---|
static class | ExchangeFilterFunctions.Credentials 使用すべきではありません。 Spring 5.1 の時点で、リクエストの構築中に HttpHeaders.setBasicAuth(String, String) を使用することを推奨。 |
修飾子と型 | フィールドと説明 |
---|---|
static StringSE | BASIC_AUTHENTICATION_CREDENTIALS_ATTRIBUTE 使用すべきではありません。 Spring 5.1 の時点で、リクエストの構築中に HttpHeaders.setBasicAuth(String, String) を使用することを推奨。 |
コンストラクターと説明 |
---|
ExchangeFilterFunctions() |
修飾子と型 | メソッドと説明 |
---|---|
static ExchangeFilterFunction | basicAuthentication() 使用すべきではありません。 Spring 5.1 の時点で、リクエストの構築中に HttpHeaders.setBasicAuth(String, String) を使用することを推奨。 |
static ExchangeFilterFunction | basicAuthentication(StringSE username, StringSE password) HttpHeaders.setBasicAuth(String) および HttpHeaders.encodeBasicAuth(String, String, Charset) を介してリクエストヘッダーに HTTP 基本認証を適用するフィルターを返します。 |
static ExchangeFilterFunction | limitResponseSize(long maxByteCount) レスポンス本文から指定されたバイト数まで消費し、さらにデータが到着した場合はキャンセルします。 |
static ExchangeFilterFunction | statusError(PredicateSE<HttpStatus> statusPredicate, FunctionSE<ClientResponse,? extends ThrowableSE> exceptionFunction) 指定された HttpStatus 述語が一致したときにエラー信号を生成するフィルターを返します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
@DeprecatedSE public static final StringSE BASIC_AUTHENTICATION_CREDENTIALS_ATTRIBUTE
HttpHeaders.setBasicAuth(String, String)
を使用することを推奨しています。basicAuthentication()
の ExchangeFilterFunctions.Credentials
を使用したリクエスト属性の名前。public static ExchangeFilterFunction limitResponseSize(long maxByteCount)
maxByteCount
- バイト数としての制限 public static ExchangeFilterFunction statusError(PredicateSE<HttpStatus> statusPredicate, FunctionSE<ClientResponse,? extends ThrowableSE> exceptionFunction)
HttpStatus
述語が一致したときにエラー信号を生成するフィルターを返します。statusPredicate
- HTTP ステータスをチェックする述語 exceptionFunction
- 例外を作成する関数 public static ExchangeFilterFunction basicAuthentication(StringSE username, StringSE password)
HttpHeaders.setBasicAuth(String)
および HttpHeaders.encodeBasicAuth(String, String, Charset)
を介してリクエストヘッダーに HTTP 基本認証を適用するフィルターを返します。username
- ユーザー名 password
- パスワード HttpHeaders.encodeBasicAuth(String, String, Charset)
, HttpHeaders.setBasicAuth(String)
@DeprecatedSE public static ExchangeFilterFunction basicAuthentication()
HttpHeaders.setBasicAuth(String, String)
を使用することを推奨しています。ExchangeFilterFunctions.Credentials