インターフェースの使用
org.springframework.http.ResponseEntity.BodyBuilder
ResponseEntity.BodyBuilder を使用するパッケージ
org.springframework.http 内の ResponseEntity.BodyBuilder 使用
修飾子と型メソッド説明static ResponseEntity.BodyBuilder
ResponseEntity.accepted()
ACCEPTED ステータスのビルダーを作成します。static ResponseEntity.BodyBuilder
ResponseEntity.badRequest()
BAD_REQUEST ステータスのビルダーを作成します。ResponseEntity.BodyBuilder.contentLength
(long contentLength) Content-Length
ヘッダーで指定されているように、本文の長さをバイト単位で設定します。ResponseEntity.BodyBuilder.contentType
(MediaType contentType) Content-Type
ヘッダーで指定されているように、本文のメディア型を設定します。static ResponseEntity.BodyBuilder
CREATED ステータスおよび指定された URI に設定された場所ヘッダーを使用して、新しいビルダーを作成します。static ResponseEntity.BodyBuilder
ResponseEntity.internalServerError()
INTERNAL_SERVER_ERROR ステータスのビルダーを作成します。static ResponseEntity.BodyBuilder
ResponseEntity.ok()
ステータスを OK に設定してビルダーを作成します。static ResponseEntity.BodyBuilder
ResponseEntity.status
(int status) 指定されたステータスでビルダーを作成します。static ResponseEntity.BodyBuilder
ResponseEntity.status
(HttpStatusCode status) 指定されたステータスでビルダーを作成します。static ResponseEntity.BodyBuilder
ResponseEntity.unprocessableEntity()
UNPROCESSABLE_ENTITY ステータスのビルダーを作成します。