クラス HttpHeaderInterceptor
java.lang.ObjectSE
org.springframework.boot.devtools.remote.client.HttpHeaderInterceptor
- 実装されているすべてのインターフェース:
ClientHttpRequestInterceptor
ClientHttpRequestInterceptor は、任意の HTTP ヘッダーに値を入力します。例: セキュリティの目的で X-AUTH-TOKEN と値を提供するために使用される場合があります。- 導入:
- 1.3.0
- 作成者:
- Rob Winch
コンストラクターの概要
コンストラクターコンストラクター説明HttpHeaderInterceptor(StringSE name, StringSE value) 新しいHttpHeaderInterceptorインスタンスを作成します。方法の概要
クラス ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSEインターフェース ClientHttpRequestInterceptor から継承されたメソッド
andThen, apply
コンストラクターの詳細
HttpHeaderInterceptor
新しいHttpHeaderInterceptorインスタンスを作成します。- パラメーター:
name- 設定するヘッダー名。null または空にすることはできません。value- 設定するヘッダー値。null または空にすることはできません。
メソッドの詳細
intercept
public ClientHttpResponse intercept(HttpRequest request, byte[] body, ClientHttpRequestExecution execution) throws IOExceptionSE - 次で指定:
- インターフェース
ClientHttpRequestInterceptorのintercept - 例外:
IOExceptionSE