public class HttpHeaderInterceptor extends ObjectSE implements ClientHttpRequestInterceptor
ClientHttpRequestInterceptor
は、任意の HTTP ヘッダーに値を入力します。例: セキュリティの目的で X-AUTH-TOKEN と値を提供するために使用される場合があります。コンストラクターと説明 |
---|
HttpHeaderInterceptor(StringSE name, StringSE value) 新しい HttpHeaderInterceptor インスタンスを作成します。 |
修飾子と型 | メソッドと説明 |
---|---|
ClientHttpResponse | intercept(HttpRequest request, byte[] body, ClientHttpRequestExecution execution) |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public HttpHeaderInterceptor(StringSE name, StringSE value)
HttpHeaderInterceptor
インスタンスを作成します。name
- 設定するヘッダー名。null または空にすることはできません。value
- 設定するヘッダー値。null または空にすることはできません。public ClientHttpResponse intercept(HttpRequest request, byte[] body, ClientHttpRequestExecution execution) throws IOExceptionSE
ClientHttpRequestInterceptor
の intercept
IOExceptionSE