Uses of Interface
org.springframework.http.ResponseEntity.BodyBuilder
Package
Description
Contains a basic abstraction over client/server-side HTTP.
-
Uses of ResponseEntity.BodyBuilder in org.springframework.http
Modifier and TypeMethodDescriptionstatic ResponseEntity.BodyBuilder
ResponseEntity.accepted()
Create a builder with an ACCEPTED status.static ResponseEntity.BodyBuilder
ResponseEntity.badRequest()
Create a builder with a BAD_REQUEST status.ResponseEntity.BodyBuilder.contentLength
(long contentLength) Set the length of the body in bytes, as specified by theContent-Length
header.ResponseEntity.BodyBuilder.contentType
(MediaType contentType) Set the media type of the body, as specified by theContent-Type
header.static ResponseEntity.BodyBuilder
Create a new builder with a CREATED status and a location header set to the given URI.static ResponseEntity.BodyBuilder
ResponseEntity.internalServerError()
Create a builder with an INTERNAL_SERVER_ERROR status.static ResponseEntity.BodyBuilder
ResponseEntity.ok()
Create a builder with the status set to OK.static ResponseEntity.BodyBuilder
ResponseEntity.status
(int status) Create a builder with the given status.static ResponseEntity.BodyBuilder
ResponseEntity.status
(HttpStatusCode status) Create a builder with the given status.static ResponseEntity.BodyBuilder
ResponseEntity.unprocessableEntity()
Create a builder with an UNPROCESSABLE_ENTITY status.