B - ビルダーサブクラス public static interface ServerResponse.HeadersBuilder<B extends ServerResponse.HeadersBuilder<B>>| 修飾子と型 | メソッドと説明 |
|---|---|
B | allow(HttpMethod... allowedMethods)Allow ヘッダーの指定に従って、許可された HTTP methods のセットを設定します。 |
B | allow(SetSE<HttpMethod> allowedMethods)Allow ヘッダーの指定に従って、許可された HTTP methods のセットを設定します。 |
ServerResponse | build() ボディのないレスポンスエンティティを構築します。 |
ServerResponse | build(BiFunctionSE<HttpServletRequestEE, HttpServletResponseEE, ModelAndView> writeFunction) カスタム書き込み関数を使用してレスポンスエンティティを構築します。 |
B | cacheControl(CacheControl cacheControl)HTTP 1.1 Cache-Control ヘッダーで指定されているように、リソースのキャッシュディレクティブを設定します。 |
B | cookie(CookieEE cookie) 指定された Cookie をレスポンスに追加します。 |
B | cookies(ConsumerSE<MultiValueMap<StringSE, CookieEE>> cookiesConsumer) 指定されたコンシューマーでこのレスポンスの Cookie を操作します。 |
B | eTag(StringSE eTag)ETag ヘッダーで指定されているように、本文のエンティティタグを設定します。 |
B | header(StringSE headerName, StringSE... headerValues) 指定された名前に指定されたヘッダー値を追加します。 |
B | headers(ConsumerSE<HttpHeaders> headersConsumer) 指定されたコンシューマーでこのレスポンスのヘッダーを操作します。 |
B | lastModified(InstantSE lastModified)Last-Modified ヘッダーの指定に従って、リソースが最後に変更された時刻を設定します。 |
B | lastModified(ZonedDateTimeSE lastModified)Last-Modified ヘッダーの指定に従って、リソースが最後に変更された時刻を設定します。 |
B | location(URISE location)Location ヘッダーの指定に従って、リソースの場所を設定します。 |
B | varyBy(StringSE... requestHeaders)1 つ以上のリクエストヘッダー名を構成します(例: |
B header(StringSE headerName, StringSE... headerValues)
headerName - ヘッダー名 headerValues - ヘッダー値 HttpHeaders.add(String, String)B headers(ConsumerSE<HttpHeaders> headersConsumer)
HttpHeaders メソッドを使用したりできます。headersConsumer - HttpHeaders を消費する関数 B cookies(ConsumerSE<MultiValueMap<StringSE,CookieEE>> cookiesConsumer)
MultiValueMap メソッドを使用したりできます。cookiesConsumer - クッキーを消費する関数 B allow(HttpMethod... allowedMethods)
Allow ヘッダーの指定に従って、許可された HTTP methods のセットを設定します。allowedMethods - 許可されたメソッド HttpHeaders.setAllow(Set)B allow(SetSE<HttpMethod> allowedMethods)
Allow ヘッダーの指定に従って、許可された HTTP methods のセットを設定します。allowedMethods - 許可されたメソッド HttpHeaders.setAllow(Set)B eTag(StringSE eTag)
ETag ヘッダーで指定されているように、本文のエンティティタグを設定します。eTag - 新しいエンティティタグ HttpHeaders.setETag(String)B lastModified(ZonedDateTimeSE lastModified)
Last-Modified ヘッダーの指定に従って、リソースが最後に変更された時刻を設定します。lastModified - 最終更新日 HttpHeaders.setLastModified(long)B lastModified(InstantSE lastModified)
Last-Modified ヘッダーの指定に従って、リソースが最後に変更された時刻を設定します。lastModified - 最終更新日 HttpHeaders.setLastModified(long)B location(URISE location)
Location ヘッダーの指定に従って、リソースの場所を設定します。location - 場所 HttpHeaders.setLocation(URI)B cacheControl(CacheControl cacheControl)
Cache-Control ヘッダーで指定されているように、リソースのキャッシュディレクティブを設定します。CacheControl インスタンスは CacheControl.maxAge(3600).cachePublic().noTransform() のように構築できます。
cacheControl - キャッシュ関連の HTTP レスポンスヘッダーのビルダー B varyBy(StringSE... requestHeaders)
requestHeaders - リクエストヘッダー名 ServerResponse build()
ServerResponse build(BiFunctionSE<HttpServletRequestEE,HttpServletResponseEE,ModelAndView> writeFunction)
writeFunction - HttpServletResponseEE への書き込みに使用される関数