T - ビルダー型への自己参照 public static interface EntityResponse.Builder<T>EntityResponse のビルダーを定義します。| 修飾子と型 | メソッドと説明 |
|---|---|
EntityResponse.Builder<T> | allow(HttpMethod... allowedMethods)Allow ヘッダーの指定に従って、許可された HTTP methods のセットを設定します。 |
EntityResponse.Builder<T> | allow(java.util.Set<HttpMethod> allowedMethods)Allow ヘッダーの指定に従って、許可された HTTP methods のセットを設定します。 |
reactor.core.publisher.Mono<EntityResponse<T>> | build() レスポンスを作成します。 |
EntityResponse.Builder<T> | cacheControl(CacheControl cacheControl)HTTP 1.1 Cache-Control ヘッダーで指定されているように、リソースのキャッシュディレクティブを設定します。 |
EntityResponse.Builder<T> | contentLength(long contentLength)Content-Length ヘッダーで指定されているように、本文の長さをバイト単位で設定します。 |
EntityResponse.Builder<T> | contentType(MediaType contentType)Content-Type ヘッダーで指定されているように、本文のメディア型を設定します。 |
EntityResponse.Builder<T> | cookie(ResponseCookie cookie) 指定された Cookie をレスポンスに追加します。 |
EntityResponse.Builder<T> | cookies(java.util.function.Consumer<MultiValueMap<java.lang.String,ResponseCookie>> cookiesConsumer) 指定されたコンシューマーでこのレスポンスの Cookie を操作します。 |
EntityResponse.Builder<T> | eTag(java.lang.String eTag)ETag ヘッダーで指定されているように、本文のエンティティタグを設定します。 |
EntityResponse.Builder<T> | header(java.lang.String headerName, java.lang.String... headerValues) 指定された名前に指定されたヘッダー値を追加します。 |
EntityResponse.Builder<T> | headers(HttpHeaders headers) 指定されたヘッダーをエンティティのヘッダーマップにコピーします。 |
EntityResponse.Builder<T> | hint(java.lang.String key, java.lang.Object value) 本体の直列化方法をカスタマイズするには、 Jackson2CodecSupport.JSON_VIEW_HINT のような直列化のヒントを追加します。 |
EntityResponse.Builder<T> | lastModified(java.time.ZonedDateTime lastModified)Last-Modified ヘッダーの指定に従って、リソースが最後に変更された時刻を設定します。 |
EntityResponse.Builder<T> | location(java.net.URI location)Location ヘッダーの指定に従って、リソースの場所を設定します。 |
EntityResponse.Builder<T> | status(HttpStatus status)HTTP ステータスを設定します。 |
EntityResponse.Builder<T> | status(int status)HTTP ステータスを設定します。 |
EntityResponse.Builder<T> | varyBy(java.lang.String... requestHeaders)1 つ以上のリクエストヘッダー名を構成します(例: |
EntityResponse.Builder<T> header(java.lang.String headerName, java.lang.String... headerValues)
headerName - ヘッダー名 headerValues - ヘッダー値 HttpHeaders.add(String, String)EntityResponse.Builder<T> headers(HttpHeaders headers)
headers - コピー元の既存の HttpHeadersHttpHeaders.add(String, String)EntityResponse.Builder<T> status(HttpStatus status)
status - レスポンスステータス EntityResponse.Builder<T> status(int status)
status - レスポンスステータス EntityResponse.Builder<T> cookie(ResponseCookie cookie)
cookie - 追加する CookieEntityResponse.Builder<T> cookies(java.util.function.Consumer<MultiValueMap<java.lang.String,ResponseCookie>> cookiesConsumer)
MultiValueMap メソッドを使用したりできます。cookiesConsumer - クッキーを消費する関数 EntityResponse.Builder<T> allow(HttpMethod... allowedMethods)
Allow ヘッダーの指定に従って、許可された HTTP methods のセットを設定します。allowedMethods - 許可されたメソッド HttpHeaders.setAllow(Set)EntityResponse.Builder<T> allow(java.util.Set<HttpMethod> allowedMethods)
Allow ヘッダーの指定に従って、許可された HTTP methods のセットを設定します。allowedMethods - 許可されたメソッド HttpHeaders.setAllow(Set)EntityResponse.Builder<T> eTag(java.lang.String eTag)
ETag ヘッダーで指定されているように、本文のエンティティタグを設定します。eTag - 新しいエンティティタグ HttpHeaders.setETag(String)EntityResponse.Builder<T> lastModified(java.time.ZonedDateTime lastModified)
Last-Modified ヘッダーの指定に従って、リソースが最後に変更された時刻を設定します。日付は、1970 年 1 月 1 日 GMT からのミリ秒数として指定する必要があります。
lastModified - 最終更新日 HttpHeaders.setLastModified(long)EntityResponse.Builder<T> location(java.net.URI location)
Location ヘッダーの指定に従って、リソースの場所を設定します。location - 場所 HttpHeaders.setLocation(URI)EntityResponse.Builder<T> cacheControl(CacheControl cacheControl)
Cache-Control ヘッダーで指定されているように、リソースのキャッシュディレクティブを設定します。CacheControl インスタンスは CacheControl.maxAge(3600).cachePublic().noTransform() のように構築できます。
cacheControl - キャッシュ関連の HTTP レスポンスヘッダーのビルダー EntityResponse.Builder<T> varyBy(java.lang.String... requestHeaders)
requestHeaders - リクエストヘッダー名 EntityResponse.Builder<T> contentLength(long contentLength)
Content-Length ヘッダーで指定されているように、本文の長さをバイト単位で設定します。contentLength - コンテンツの長さ HttpHeaders.setContentLength(long)EntityResponse.Builder<T> contentType(MediaType contentType)
Content-Type ヘッダーで指定されているように、本文のメディア型を設定します。contentType - コンテンツ型 HttpHeaders.setContentType(MediaType)EntityResponse.Builder<T> hint(java.lang.String key, java.lang.Object value)
Jackson2CodecSupport.JSON_VIEW_HINT のような直列化のヒントを追加します。key - ヒントキー value - ヒント値 reactor.core.publisher.Mono<EntityResponse<T>> build()