T - ビルダー型への自己参照 public static interface EntityResponse.Builder<T>EntityResponse のビルダーを定義します。| 修飾子と型 | メソッドと説明 |
|---|---|
EntityResponse.Builder<T> | allow(HttpMethod... allowedMethods)Allow ヘッダーの指定に従って、許可された HTTP methods のセットを設定します。 |
EntityResponse.Builder<T> | allow(SetSE<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(ConsumerSE<MultiValueMap<StringSE, ResponseCookie>> cookiesConsumer) 指定されたコンシューマーでこのレスポンスの Cookie を操作します。 |
EntityResponse.Builder<T> | eTag(StringSE etag)ETag ヘッダーで指定されているように、本文のエンティティタグを設定します。 |
EntityResponse.Builder<T> | header(StringSE headerName, StringSE... headerValues) 指定された名前に指定されたヘッダー値を追加します。 |
EntityResponse.Builder<T> | headers(HttpHeaders headers) 指定されたヘッダーをエンティティのヘッダーマップにコピーします。 |
EntityResponse.Builder<T> | hint(StringSE key, ObjectSE value) 本体の直列化方法をカスタマイズするには、 Jackson2CodecSupport.JSON_VIEW_HINT のような直列化のヒントを追加します。 |
EntityResponse.Builder<T> | hints(ConsumerSE<MapSE<StringSE, ObjectSE>> hintsConsumer) 指定されたコンシューマーで直列化のヒントをカスタマイズします。 |
EntityResponse.Builder<T> | lastModified(InstantSE lastModified)Last-Modified ヘッダーの指定に従って、リソースが最後に変更された時刻を設定します。 |
EntityResponse.Builder<T> | lastModified(ZonedDateTimeSE lastModified)Last-Modified ヘッダーの指定に従って、リソースが最後に変更された時刻を設定します。 |
EntityResponse.Builder<T> | location(URISE location)Location ヘッダーの指定に従って、リソースの場所を設定します。 |
EntityResponse.Builder<T> | status(HttpStatus status)HTTP ステータスを設定します。 |
EntityResponse.Builder<T> | status(int status)HTTP ステータスを設定します。 |
EntityResponse.Builder<T> | varyBy(StringSE... requestHeaders)1 つ以上のリクエストヘッダー名を構成します(例: |
EntityResponse.Builder<T> header(StringSE headerName, StringSE... 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(ConsumerSE<MultiValueMap<StringSE,ResponseCookie>> cookiesConsumer)
MultiValueMap メソッドを使用したりできます。cookiesConsumer - クッキーを消費する関数 EntityResponse.Builder<T> allow(HttpMethod... allowedMethods)
Allow ヘッダーの指定に従って、許可された HTTP methods のセットを設定します。allowedMethods - 許可されたメソッド HttpHeaders.setAllow(Set)EntityResponse.Builder<T> allow(SetSE<HttpMethod> allowedMethods)
Allow ヘッダーの指定に従って、許可された HTTP methods のセットを設定します。allowedMethods - 許可されたメソッド HttpHeaders.setAllow(Set)EntityResponse.Builder<T> eTag(StringSE etag)
ETag ヘッダーで指定されているように、本文のエンティティタグを設定します。etag - 新しいエンティティタグ HttpHeaders.setETag(String)EntityResponse.Builder<T> lastModified(ZonedDateTimeSE lastModified)
Last-Modified ヘッダーの指定に従って、リソースが最後に変更された時刻を設定します。日付は、1970 年 1 月 1 日 GMT からのミリ秒数として指定する必要があります。
lastModified - 最終更新日 HttpHeaders.setLastModified(long)EntityResponse.Builder<T> lastModified(InstantSE lastModified)
Last-Modified ヘッダーの指定に従って、リソースが最後に変更された時刻を設定します。日付は、1970 年 1 月 1 日 GMT からのミリ秒数として指定する必要があります。
lastModified - 最終更新日 HttpHeaders.setLastModified(long)EntityResponse.Builder<T> location(URISE 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(StringSE... 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(StringSE key, ObjectSE value)
Jackson2CodecSupport.JSON_VIEW_HINT のような直列化のヒントを追加します。key - ヒントキー value - ヒント値 EntityResponse.Builder<T> hints(ConsumerSE<MapSE<StringSE,ObjectSE>> hintsConsumer)
hintsConsumer - ヒントを消費する関数 reactor.core.publisher.Mono<EntityResponse<T>> build()