public static interface ResponseEntity.BodyBuilder extends ResponseEntity.HeadersBuilder<ResponseEntity.BodyBuilder>
| 修飾子と型 | メソッドと説明 |
|---|---|
<T> ResponseEntity<T> | body(T body) レスポンスエンティティの本体を設定して返します。 |
ResponseEntity.BodyBuilder | contentLength(long contentLength)Content-Length ヘッダーで指定されているように、本文の長さをバイト単位で設定します。 |
ResponseEntity.BodyBuilder | contentType(MediaType contentType)Content-Type ヘッダーで指定されているように、本文のメディア型を設定します。 |
allow, build, cacheControl, eTag, header, headers, headers, lastModified, lastModified, lastModified, location, varyByResponseEntity.BodyBuilder contentLength(long contentLength)
Content-Length ヘッダーで指定されているように、本文の長さをバイト単位で設定します。contentLength - コンテンツの長さ HttpHeaders.setContentLength(long)ResponseEntity.BodyBuilder contentType(MediaType contentType)
Content-Type ヘッダーで指定されているように、本文のメディア型を設定します。contentType - コンテンツ型 HttpHeaders.setContentType(MediaType)<T> ResponseEntity<T> body(@Nullable T body)
T - 体の種類 body - レスポンスエンティティの本体