HttpHeaders.setBasicAuth(java.lang.String, java.lang.String)
を再利用する BasicAuthenticationInterceptor
を優先し、ここで使用される UTF-8 の代わりにデフォルトの文字セット ISO-8859-1 を共有します @DeprecatedSE public class BasicAuthorizationInterceptor extends ObjectSE implements ClientHttpRequestInterceptor
ClientHttpRequestInterceptor
は、BASIC 認証ヘッダーを適用します。コンストラクターと説明 |
---|
BasicAuthorizationInterceptor(StringSE username, StringSE password) 使用すべきではありません。 指定されたユーザー名とパスワードの BASIC 認証ヘッダーを追加する新しいインターセプターを作成します。 |
修飾子と型 | メソッドと説明 |
---|---|
ClientHttpResponse | intercept(HttpRequest request, byte[] body, ClientHttpRequestExecution execution) 使用すべきではありません。 指定されたリクエストをインターセプトし、レスポンスを返します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public ClientHttpResponse intercept(HttpRequest request, byte[] body, ClientHttpRequestExecution execution) throws IOExceptionSE
ClientHttpRequestInterceptor
ClientHttpRequestExecution
により、インターセプターはチェーン内の次のエンティティにリクエストとレスポンスを渡すことができます。このメソッドの典型的な実装は、次のパターンに従います。
ClientHttpRequestExecution.execute(org.springframework.http.HttpRequest, byte[])
を使用してリクエストを実行 ClientHttpRequestInterceptor
の intercept
request
- メソッド、URI、ヘッダーを含むリクエスト body
- リクエストの本文 execution
- リクエストの実行 IOExceptionSE
- I/O エラーの場合