| Modifier and Type | Class and Description |
|---|---|
| public static interface | ServerResponse.
Defines a builder that adds a body to the response. |
| public static interface | ServerResponse.
Defines the context used during the |
| public static interface | ServerResponse.
the builder subclass B extends ServerResponse.Defines a builder that adds headers to the response. |
| public static interface | ServerResponse.
Defines a builder for a body that sends server-sent events. |
| Modifier and Type | Method and Description |
|---|---|
| public static ServerResponse. | |
| public static ServerResponse | |
| public static ServerResponse | |
| public static ServerResponse. | |
| public MultiValueMap | |
| public static ServerResponse. | Returns: the created builderthe location URI location)Create a builder with a 201 Created status and a location header set to the given URI. |
| public static ServerResponse. | Returns: the created builderthe response to copy the status and headers from other)Create a builder with the status code and headers of the given response. |
| public static ServerResponse | Returns: the built responsethe response)ErrorResponse to initialize fromCreate a |
| public HttpHeaders | |
| public static ServerResponse. | |
| public static ServerResponse. | |
| public static ServerResponse. | |
| public static ServerResponse. | Returns: the created builderthe location URI location)Create a builder with a 308 Permanent Redirect status and a location header set to the given URI. |
| public int | Returns: the status as an integer
Deprecated
since 6.0. as of 6.0, in favor of
statusCode()
Return the status code of this response as integer. |
| public static ServerResponse. | Returns: the created builderthe location URI location)Create a builder with a 303 See Other status and a location header set to the given URI. |
| public static ServerResponse | Returns: the server-side event responseconsumer that will be provided with an event builder consumerCreate a server-sent event response. |
| public static ServerResponse | Returns: the server-side event responseconsumer that will be provided with an event builder consumer,maximum time period to wait before timing out timeout)Create a server-sent event response. |
| public static ServerResponse. | Returns: the created builderthe response status status)Create a builder with the given HTTP status. |
| public static ServerResponse. | Returns: the created builderthe response status status)Create a builder with the given HTTP status. |
| public HttpStatusCode | |
| public static ServerResponse. | Returns: the created builderthe location URI location)Create a builder with a 307 Temporary Redirect status and a location header set to the given URI. |
| public static ServerResponse. | Returns: the created builderCreate a builder with a 422 Unprocessable Entity status. |
| public ModelAndView | Returns: aModelAndView to render, or null if handled directlythe current request request, HttpServletResponse the response to write to response, ServerResponse.the context to use when writing contextWrite this response to the given servlet response. |