インターフェースの使用
org.springframework.http.client.ClientHttpRequestInterceptor
ClientHttpRequestInterceptor を使用するパッケージ
パッケージ
説明
クライアント側の HTTP 上の抽象化が含まれています。
このパッケージは、RestTemplate などの高レベルクラスで使用される汎用 HTTP サポートクラスを提供します。
クライアント側の Web サポートのコアパッケージ。
org.springframework.http.client 内の ClientHttpRequestInterceptor 使用
修飾子と型メソッド説明default ClientHttpRequestInterceptorClientHttpRequestInterceptor.andThen(ClientHttpRequestInterceptor interceptor) 最初にthisインターセプターを呼び出し、次に渡されたインターセプターを呼び出す新しいインターセプターを返します。型 ClientHttpRequestInterceptor のパラメーターを持つ org.springframework.http.client のメソッド修飾子と型メソッド説明default ClientHttpRequestInterceptorClientHttpRequestInterceptor.andThen(ClientHttpRequestInterceptor interceptor) 最初にthisインターセプターを呼び出し、次に渡されたインターセプターを呼び出す新しいインターセプターを返します。型の型引数を持つ org.springframework.http.client のコンストラクターパラメーター ClientHttpRequestInterceptor修飾子コンストラクター説明InterceptingClientHttpRequestFactory(ClientHttpRequestFactory requestFactory, @Nullable ListSE<ClientHttpRequestInterceptor> interceptors) 指定されたパラメーターを使用して新しいインスタンスを作成します。InterceptingClientHttpRequestFactory(ClientHttpRequestFactory requestFactory, @Nullable ListSE<ClientHttpRequestInterceptor> interceptors, @Nullable BiPredicateSE<URISE, HttpMethod> bufferingPredicate) レスポンスをバッファリングするかどうかを決定するための追加の述語を持つコンストラクターバリアント。org.springframework.http.client.support 内の ClientHttpRequestInterceptor 使用
修飾子と型クラス説明classカスタムAuthorizationヘッダーがすでに設定されていない限り、特定の HTTP 基本認証のユーザー名 / パスワードのペアを適用するClientHttpRequestInterceptor。型 ClientHttpRequestInterceptor の引数を持つ型を返す org.springframework.http.client.support のメソッド型 ClientHttpRequestInterceptor の型引数を持つ org.springframework.http.client.support のメソッドパラメーター修飾子と型メソッド説明voidInterceptingHttpAccessor.setInterceptors(ListSE<ClientHttpRequestInterceptor> interceptors) このアクセサーが使用するリクエストインターセプターを設定します。org.springframework.test.web.servlet.client 内の ClientHttpRequestInterceptor 使用
型 ClientHttpRequestInterceptor のパラメーターを持つ org.springframework.test.web.servlet.client のメソッド修飾子と型メソッド説明<T extends B>
TRestTestClient.Builder.requestInterceptor(ClientHttpRequestInterceptor interceptor) 指定されたリクエストインターセプターをインターセプターチェーンの最後に追加します。型 ClientHttpRequestInterceptor の型引数を持つ org.springframework.test.web.servlet.client のメソッドパラメーター修飾子と型メソッド説明<T extends B>
TRestTestClient.Builder.requestInterceptors(ConsumerSE<ListSE<ClientHttpRequestInterceptor>> interceptorsConsumer) 指定されたコンシューマーを使用してインターセプタを操作します。org.springframework.web.client 内の ClientHttpRequestInterceptor 使用
型 ClientHttpRequestInterceptor のパラメーターを持つ org.springframework.web.client のメソッド修飾子と型メソッド説明RestClient.Builder.requestInterceptor(ClientHttpRequestInterceptor interceptor) 指定されたリクエストインターセプターをインターセプターチェーンの最後に追加します。型 ClientHttpRequestInterceptor の型引数を持つ org.springframework.web.client のメソッドパラメーター修飾子と型メソッド説明RestClient.Builder.requestInterceptors(ConsumerSE<ListSE<ClientHttpRequestInterceptor>> interceptorsConsumer) 指定されたコンシューマーを使用してインターセプタを操作します。