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