Uses of Interface
org.springframework.web.servlet.function.ServerResponse.BodyBuilder
Package
Description
Provides the types that make up Spring's functional web framework for Servlet environments.
-
Uses of ServerResponse.BodyBuilder in org.springframework.web.servlet.function
Modifier and TypeMethodDescriptionstatic ServerResponse.BodyBuilder
ServerResponse.accepted()
Create a builder with a 202 Accepted status.static ServerResponse.BodyBuilder
ServerResponse.badRequest()
Create a builder with a 400 Bad Request status.ServerResponse.BodyBuilder.contentLength
(long contentLength) Set the length of the body in bytes, as specified by theContent-Length
header.ServerResponse.BodyBuilder.contentType
(MediaType contentType) Set the media type of the body, as specified by theContent-Type
header.static ServerResponse.BodyBuilder
Create a builder with a 201 Created status and a location header set to the given URI.static ServerResponse.BodyBuilder
ServerResponse.from
(ServerResponse other) Create a builder with the status code and headers of the given response.static ServerResponse.BodyBuilder
ServerResponse.ok()
Create a builder with the status set to 200 OK.static ServerResponse.BodyBuilder
ServerResponse.permanentRedirect
(URI location) Create a builder with a 308 Permanent Redirect status and a location header set to the given URI.static ServerResponse.BodyBuilder
Create a builder with a 303 See Other status and a location header set to the given URI.static ServerResponse.BodyBuilder
ServerResponse.status
(int status) Create a builder with the given HTTP status.static ServerResponse.BodyBuilder
ServerResponse.status
(HttpStatus status) Create a builder with the given HTTP status.static ServerResponse.BodyBuilder
ServerResponse.temporaryRedirect
(URI location) Create a builder with a 307 Temporary Redirect status and a location header set to the given URI.static ServerResponse.BodyBuilder
ServerResponse.unprocessableEntity()
Create a builder with a 422 Unprocessable Entity status.