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 のセットを設定します。 |
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(CookieEE cookie) 指定された Cookie をレスポンスに追加します。 |
EntityResponse.Builder<T> | cookies(ConsumerSE<MultiValueMap<StringSE, CookieEE>> cookiesConsumer) 指定されたコンシューマーでこのレスポンスの Cookie を操作します。 |
EntityResponse.Builder<T> | eTag(StringSE etag)ETag ヘッダーで指定されているように、本文のエンティティタグを設定します。 |
EntityResponse.Builder<T> | header(StringSE headerName, StringSE... headerValues) 指定された名前に指定されたヘッダー値を追加します。 |
EntityResponse.Builder<T> | headers(ConsumerSE<HttpHeaders> headersConsumer) 指定されたコンシューマーでこのレスポンスのヘッダーを操作します。 |
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(ConsumerSE<HttpHeaders> headersConsumer)
HttpHeaders メソッドを使用したりできます。headersConsumer - HttpHeaders を消費する関数 EntityResponse.Builder<T> status(HttpStatus status)
status - レスポンスステータス EntityResponse.Builder<T> status(int status)
status - レスポンスステータス EntityResponse.Builder<T> cookie(CookieEE cookie)
cookie - 追加する CookieEntityResponse.Builder<T> cookies(ConsumerSE<MultiValueMap<StringSE,CookieEE>> 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<T> build()