インターフェースの使用
org.springframework.web.reactive.function.server.EntityResponse.Builder
パッケージ
説明
Spring のリアクティブ環境用の関数 Web フレームワークを構成する型を提供します。
org.springframework.web.reactive.function.server 内の EntityResponse.Builder 使用
修飾子と型メソッド説明EntityResponse.Builder.allow
(SetSE<HttpMethod> allowedMethods) Allow
ヘッダーの指定に従って、許可されたHTTP methods
のセットを設定します。EntityResponse.Builder.allow
(HttpMethod... allowedMethods) Allow
ヘッダーの指定に従って、許可されたHTTP methods
のセットを設定します。EntityResponse.Builder.cacheControl
(CacheControl cacheControl) HTTP 1.1Cache-Control
ヘッダーで指定されているように、リソースのキャッシュディレクティブを設定します。EntityResponse.Builder.contentLength
(long contentLength) Content-Length
ヘッダーで指定されているように、本文の長さをバイト単位で設定します。EntityResponse.Builder.contentType
(MediaType contentType) Content-Type
ヘッダーで指定されているように、本文のメディア型を設定します。EntityResponse.Builder.cookie
(ResponseCookie cookie) 指定された Cookie をレスポンスに追加します。EntityResponse.Builder.cookies
(ConsumerSE<MultiValueMap<StringSE, ResponseCookie>> cookiesConsumer) 指定されたコンシューマーでこのレスポンスの Cookie を操作します。ETag
ヘッダーで指定されているように、本文のエンティティタグを設定します。static <T> EntityResponse.Builder<T>
EntityResponse.fromObject
(T body) 指定されたオブジェクトでビルダーを作成します。static <T> EntityResponse.Builder<T>
EntityResponse.fromProducer
(T producer, ClassSE<?> elementClass) 指定されたプロデューサーでビルダーを作成します。static <T> EntityResponse.Builder<T>
EntityResponse.fromProducer
(T producer, ParameterizedTypeReference<?> typeReference) 指定されたプロデューサーでビルダーを作成します。static <T,
P extends Publisher<T>>
EntityResponse.Builder<P>EntityResponse.fromPublisher
(P publisher, ClassSE<T> elementClass) 指定されたパブリッシャーでビルダーを作成します。static <T,
P extends Publisher<T>>
EntityResponse.Builder<P>EntityResponse.fromPublisher
(P publisher, ParameterizedTypeReference<T> typeReference) 指定されたパブリッシャーでビルダーを作成します。指定された名前に指定されたヘッダー値を追加します。EntityResponse.Builder.headers
(ConsumerSE<HttpHeaders> headersConsumer) 指定されたコンシューマーでこのエンティティのヘッダーを操作します。EntityResponse.Builder.headers
(HttpHeaders headers) 指定されたヘッダーをエンティティのヘッダーマップにコピーします。本体の直列化方法をカスタマイズするには、Jackson2CodecSupport.JSON_VIEW_HINT
のような直列化のヒントを追加します。EntityResponse.Builder.hints
(ConsumerSE<MapSE<StringSE, ObjectSE>> hintsConsumer) 指定されたコンシューマーで直列化のヒントをカスタマイズします。EntityResponse.Builder.lastModified
(InstantSE lastModified) Last-Modified
ヘッダーの指定に従って、リソースが最後に変更された時刻を設定します。EntityResponse.Builder.lastModified
(ZonedDateTimeSE lastModified) Last-Modified
ヘッダーの指定に従って、リソースが最後に変更された時刻を設定します。Location
ヘッダーの指定に従って、リソースの場所を設定します。EntityResponse.Builder.status
(int status) HTTP ステータスを設定します。EntityResponse.Builder.status
(HttpStatusCode status) HTTP ステータスを設定します。1 つ以上のリクエストヘッダー名を構成します(例: