ServerResponse implementations.
| Modifier and Type | Field and Description |
|---|---|
| private final MultiValueMap | |
| private final HttpHeaders | |
| private static final Set | |
| private final HttpStatusCode |
| Access | Constructor and Description |
|---|---|
| protected | AbstractServerResponse(HttpStatusCode statusCode, HttpHeaders headers, MultiValueMap<String, Cookie> cookies)
|
| Modifier and Type | Method and Description |
|---|---|
| public MultiValueMap | cookies()
Implements org. Return the cookies of this response. |
| public final HttpHeaders | headers()
Implements org. Return the headers of this response. |
| public int | rawStatusCode()
Implements org.
Deprecated
Return the status code of this response as integer. |
| public final HttpStatusCode | statusCode()
Implements org. Return the status code of this response. |
| private void | |
| private void | |
| private void | |
| public ModelAndView | writeTo(HttpServletRequest
the current request request, HttpServletResponse the response to write to response, ServerResponse.the context to use when writing contextImplements org. Write this response to the given servlet response. |
| protected abstract ModelAndView | writeToInternal(HttpServletRequest request, HttpServletResponse response, ServerResponse.
|
| cookies | back to summary |
|---|---|
| private final MultiValueMap<String, Cookie> cookies | |
| headers | back to summary |
|---|---|
| private final HttpHeaders headers | |
| SAFE_METHODS | back to summary |
|---|---|
| private static final Set<HttpMethod> SAFE_METHODS | |
| statusCode | back to summary |
|---|---|
| private final HttpStatusCode statusCode | |
| AbstractServerResponse | back to summary |
|---|---|
| protected AbstractServerResponse(HttpStatusCode statusCode, HttpHeaders headers, MultiValueMap<String, Cookie> cookies) | |
| cookies | back to summary |
|---|---|
| public MultiValueMap Implements org. Doc from org. Return the cookies of this response.
| |
| headers | back to summary |
|---|---|
| public final HttpHeaders headers() Implements org. Doc from org. Return the headers of this response.
| |
| rawStatusCode | back to summary |
|---|---|
| public int rawStatusCode() Implements org. Doc from org. Deprecated
Return the status code of this response as integer.
| |
| statusCode | back to summary |
|---|---|
| public final HttpStatusCode statusCode() Implements org. Doc from org. Return the status code of this response.
| |
| writeCookies | back to summary |
|---|---|
| private void writeCookies(HttpServletResponse servletResponse) | |
| writeHeaders | back to summary |
|---|---|
| private void writeHeaders(HttpServletResponse servletResponse) | |
| writeStatusAndHeaders | back to summary |
|---|---|
| private void writeStatusAndHeaders(HttpServletResponse response) | |
| writeTo | back to summary |
|---|---|
| public ModelAndView writeTo(HttpServletRequest request, HttpServletResponse response, ServerResponse. Implements org. Doc from org. Write this response to the given servlet response.
| |
| writeToInternal | back to summary |
|---|---|
protected abstract ModelAndView writeToInternal(HttpServletRequest request, HttpServletResponse response, ServerResponse.
| |