Top Description Fields Constructors Methods
org.springframework.web.reactive.result.view

pack-priv Class DefaultRendering

extends Object
implements Rendering
Class Inheritance
All Implemented Interfaces
org.springframework.web.reactive.result.view.Rendering
Imports
java.util.Collections, .Map, org.springframework.http.HttpHeaders, .HttpStatusCode, org.springframework.lang.Nullable, org.springframework.ui.Model

Default implementation of Rendering.
Author
Rossen Stoyanchev
Since
5.0

Field Summary

Modifier and TypeField and Description
private static final HttpHeaders
private final HttpHeaders
private final Map<String, Object>
private final HttpStatusCode
private final Object

Constructor Summary

AccessConstructor and Description
pack-priv
DefaultRendering(Object view, Model model, HttpStatusCode status, HttpHeaders headers)

Method Summary

Modifier and TypeMethod and Description
public HttpHeaders
headers()

Implements org.springframework.web.reactive.result.view.Rendering.headers.

Return headers to add to the response.

public Map<String, Object>
public HttpStatusCode
status()

Implements org.springframework.web.reactive.result.view.Rendering.status.

Return the HTTP status to set the response to.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

public Object
view()

Implements org.springframework.web.reactive.result.view.Rendering.view.

Return the selected String view name or View object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

EMPTY_HEADERSback to summary
private static final HttpHeaders EMPTY_HEADERS
headersback to summary
private final HttpHeaders headers
modelback to summary
private final Map<String, Object> model
statusback to summary
private final HttpStatusCode status
Annotations
@Nullable
viewback to summary
private final Object view

Constructor Detail

DefaultRenderingback to summary
pack-priv DefaultRendering(Object view, Model model, HttpStatusCode status, HttpHeaders headers)

Method Detail

headersback to summary
public HttpHeaders headers()

Implements org.springframework.web.reactive.result.view.Rendering.headers.

Doc from org.springframework.web.reactive.result.view.Rendering.headers.

Return headers to add to the response.

Annotations
@Override
modelAttributesback to summary
public Map<String, Object> modelAttributes()

Implements org.springframework.web.reactive.result.view.Rendering.modelAttributes.

Doc from org.springframework.web.reactive.result.view.Rendering.modelAttributes.

Return attributes to add to the model.

Annotations
@Override
statusback to summary
public HttpStatusCode status()

Implements org.springframework.web.reactive.result.view.Rendering.status.

Doc from org.springframework.web.reactive.result.view.Rendering.status.

Return the HTTP status to set the response to.

Annotations
@Override
@Nullable
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override
viewback to summary
public Object view()

Implements org.springframework.web.reactive.result.view.Rendering.view.

Doc from org.springframework.web.reactive.result.view.Rendering.view.

Return the selected String view name or View object.

Annotations
@Override
@Nullable