RenderingResponse.Builder implementation.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final MultiValueMap | |
| private final HttpHeaders | |
| private final Map | |
| private final String | |
| private HttpStatusCode |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| cookies | back to summary |
|---|---|
| private final MultiValueMap<String, Cookie> cookies | |
| headers | back to summary |
|---|---|
| private final HttpHeaders headers | |
| model | back to summary |
|---|---|
| private final Map<String, Object> model | |
| name | back to summary |
|---|---|
| private final String name | |
| status | back to summary |
|---|---|
| private HttpStatusCode status | |
| DefaultRenderingResponseBuilder | back to summary |
|---|---|
| public DefaultRenderingResponseBuilder(RenderingResponse other) | |
| DefaultRenderingResponseBuilder | back to summary |
|---|---|
| public DefaultRenderingResponseBuilder(String name) | |
| build | back to summary |
|---|---|
| public RenderingResponse build() Implements org. Doc from org. Build the response.
| |
| cookie | back to summary |
|---|---|
| public RenderingResponse. Implements org. Doc from org. Add the given cookie to the response.
| |
| cookies | back to summary |
|---|---|
| public RenderingResponse. Implements org. Doc from org. Manipulate this response's cookies with the given consumer. The
cookies provided to the consumer are "live", so that the consumer can be used to
overwrite existing cookies,
remove cookies, or use any of the other
| |
| header | back to summary |
|---|---|
| public RenderingResponse. Implements org. Doc from org. Add the given header value(s) under the given name.
| |
| headers | back to summary |
|---|---|
| public RenderingResponse. Implements org. Doc from org. Manipulate this response's headers with the given consumer. The
headers provided to the consumer are "live", so that the consumer can be used to
overwrite existing header values,
remove values, or use any of the other
| |
| modelAttribute | back to summary |
|---|---|
| public RenderingResponse. Implements org. Doc from org. Add the supplied attribute to the model using a generated name. Note Empty | |
| modelAttribute | back to summary |
|---|---|
| public RenderingResponse. Implements org. Doc from org. Add the supplied attribute value under the supplied name. | |
| modelAttributes | back to summary |
|---|---|
| public RenderingResponse. Implements org. Doc from org. Copy all attributes in the supplied array into the model, using attribute name generation for each element.
| |
| modelAttributes | back to summary |
|---|---|
| public RenderingResponse. Implements org. Doc from org. Copy all attributes in the supplied
| |
| modelAttributes | back to summary |
|---|---|
| public RenderingResponse. Implements org. Doc from org. Copy all attributes in the supplied
| |
| status | back to summary |
|---|---|
| public RenderingResponse. Implements org. Doc from org. Set the HTTP status.
| |
| status | back to summary |
|---|---|
| public RenderingResponse. Implements org. Doc from org. Set the HTTP status.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | DefaultRenderingResponse(HttpStatusCode statusCode, HttpHeaders headers, MultiValueMap<String, Cookie> cookies, String name, Map<String, Object> model)
|
| Modifier and Type | Method and Description |
|---|---|
| public Map | model()
Implements org. Return the unmodifiable model map. |
| public String | name()
Implements org. Return the name of the template to be rendered. |
| protected ModelAndView | writeToInternal(HttpServletRequest request, HttpServletResponse response, ServerResponse.
Implements abstract org.
|
| model | back to summary |
|---|---|
| private final Map<String, Object> model | |
| name | back to summary |
|---|---|
| private final String name | |
| DefaultRenderingResponse | back to summary |
|---|---|
| public DefaultRenderingResponse(HttpStatusCode statusCode, HttpHeaders headers, MultiValueMap<String, Cookie> cookies, String name, Map<String, Object> model) | |
| model | back to summary |
|---|---|
| public Map Implements org. Doc from org. Return the unmodifiable model map.
| |
| name | back to summary |
|---|---|
| public String name() Implements org. Doc from org. Return the name of the template to be rendered.
| |
| writeToInternal | back to summary |
|---|---|
| protected ModelAndView writeToInternal(HttpServletRequest request, HttpServletResponse response, ServerResponse. Implements abstract org.
| |