パッケージ org.springframework.http
インターフェース ResponseEntity.BodyBuilder
- すべてのスーパーインターフェース:
- ResponseEntity.HeadersBuilder<ResponseEntity.BodyBuilder>
- 含まれているクラス:
- ResponseEntity<T>
public static interface ResponseEntity.BodyBuilder
extends ResponseEntity.HeadersBuilder<ResponseEntity.BodyBuilder>
 レスポンスエンティティに本文を追加するビルダーを定義します。
- 導入:
- 4.1
- メソッドのサマリー修飾子と型メソッド説明- <T> ResponseEntity<T>- body- (T body) レスポンスエンティティの本体を設定して返します。- contentLength- (long contentLength) - Content-Lengthヘッダーで指定されているように、本文の長さをバイト単位で設定します。- contentType- (MediaType contentType) - Content-Typeヘッダーで指定されているように、本文のメディア型を設定します。- インターフェース org.springframework.http.ResponseEntity.HeadersBuilder から継承されたメソッド- allow, build, cacheControl, eTag, header, headers, headers, lastModified, lastModified, lastModified, location, varyBy
- メソッドの詳細- contentLength- Content-Lengthヘッダーで指定されているように、本文の長さをバイト単位で設定します。- パラメーター:
- contentLength- コンテンツの長さ
- 戻り値:
- このビルダー
- 関連事項:
 
- contentType- Content-Typeヘッダーで指定されているように、本文のメディア型を設定します。- パラメーター:
- contentType- コンテンツ型
- 戻り値:
- このビルダー
- 関連事項:
 
- bodyレスポンスエンティティの本体を設定して返します。- 型パラメーター:
- T- 体の種類
- パラメーター:
- body- レスポンスエンティティの本体
- 戻り値:
- 構築されたレスポンスエンティティ