S
- 仕様型への自己参照 public static interface WebTestClient.RequestHeadersSpec<S extends WebTestClient.RequestHeadersSpec<S>>
修飾子と型 | メソッドと説明 |
---|---|
S | accept(MediaType... acceptableMediaTypes) Accept ヘッダーで指定されているように、受け入れ可能なメディア型のリストを設定します。 |
S | acceptCharset(CharsetSE... acceptableCharsets) Accept-Charset ヘッダーで指定されているように、受け入れ可能な文字SEセットのリストを設定します。 |
S | attribute(StringSE name, ObjectSE value) 指定された名前の属性に指定された値を設定します。 |
S | attributes(ConsumerSE<MapSE<StringSE, ObjectSE>> attributesConsumer) 指定されたコンシューマーでリクエスト属性を操作します。 |
S | cookie(StringSE name, StringSE value) 指定された名前と値で Cookie を追加します。 |
S | cookies(ConsumerSE<MultiValueMap<StringSE, StringSE>> cookiesConsumer) 指定されたコンシューマーでこのリクエストの Cookie を操作します。 |
WebTestClient.ResponseSpec | exchange() リクエストボディなしで交換を実行します。 |
S | header(StringSE headerName, StringSE... headerValues) 指定された名前に、指定された単一のヘッダー値を追加します。 |
S | headers(ConsumerSE<HttpHeaders> headersConsumer) 指定されたコンシューマーでリクエストのヘッダーを操作します。 |
S | ifModifiedSince(ZonedDateTimeSE ifModifiedSince) If-Modified-Since ヘッダーの値を設定します。 |
S | ifNoneMatch(StringSE... ifNoneMatches) If-None-Match ヘッダーの値を設定します。 |
S accept(MediaType... acceptableMediaTypes)
Accept
ヘッダーで指定されているように、受け入れ可能なメディア型のリストを設定します。acceptableMediaTypes
- 許容されるメディア型 S acceptCharset(CharsetSE... acceptableCharsets)
Accept-Charset
ヘッダーで指定されているように、受け入れ可能な文字SEセットのリストを設定します。acceptableCharsets
- 許容される文字セット S cookie(StringSE name, StringSE value)
name
- クッキー名 value
- クッキー値 S cookies(ConsumerSE<MultiValueMap<StringSE,StringSE>> cookiesConsumer)
MultiValueMap
メソッドを使用したりできます。cookiesConsumer
- Cookie マップを使用する関数 S ifModifiedSince(ZonedDateTimeSE ifModifiedSince)
If-Modified-Since
ヘッダーの値を設定します。日付は、1970 年 1 月 1 日 GMT からのミリ秒数として指定する必要があります。
ifModifiedSince
- ヘッダーの新しい値 S ifNoneMatch(StringSE... ifNoneMatches)
If-None-Match
ヘッダーの値を設定します。ifNoneMatches
- ヘッダーの新しい値 S header(StringSE headerName, StringSE... headerValues)
headerName
- ヘッダー名 headerValues
- ヘッダー値 S headers(ConsumerSE<HttpHeaders> headersConsumer)
HttpHeaders
メソッドを使用したりできます。headersConsumer
- HttpHeaders
を消費する関数 S attribute(StringSE name, ObjectSE value)
name
- 追加する属性の名前 value
- 追加する属性の値 S attributes(ConsumerSE<MapSE<StringSE,ObjectSE>> attributesConsumer)
attributesConsumer
- 属性を使用する関数 WebTestClient.ResponseSpec exchange()