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

pack-priv Class DefaultRenderingBuilder

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

Default implementation of Rendering.RedirectBuilder.
Author
Rossen Stoyanchev
Since
5.0

Field Summary

Modifier and TypeField and Description
private HttpHeaders
private Model
private HttpStatusCode
private final Object

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Rendering
public Rendering.RedirectBuilder
contextRelative(boolean contextRelative)

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

Whether to the provided redirect URL should be prepended with the application context path (if any).

private RedirectView
public DefaultRenderingBuilder
header(String headerName, String... headerValues)

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

Specify a header to add to the response.

public DefaultRenderingBuilder
headers(HttpHeaders headers)

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

Specify headers to add to the response.

private HttpHeaders
private Model
public DefaultRenderingBuilder
model(Map<String, ?> map)

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

Add the given attributes to the model.

public DefaultRenderingBuilder
modelAttribute(String name, Object value)

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

Add the given model attribute with the supplied name.

public DefaultRenderingBuilder
public DefaultRenderingBuilder
public Rendering.RedirectBuilder
propagateQuery(boolean propagate)

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

Whether to append the query string of the current URL to the target redirect URL or not.

public DefaultRenderingBuilder
status(HttpStatusCode status)

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

Specify the status to use for the response.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

headersback to summary
private HttpHeaders headers
Annotations
@Nullable
modelback to summary
private Model model
Annotations
@Nullable
statusback to summary
private HttpStatusCode status
Annotations
@Nullable
viewback to summary
private final Object view

Constructor Detail

DefaultRenderingBuilderback to summary
pack-priv DefaultRenderingBuilder(Object view)

Method Detail

buildback to summary
public Rendering build()

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

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

Build the Rendering instance.

Annotations
@Override
contextRelativeback to summary
public Rendering.RedirectBuilder contextRelative(boolean contextRelative)

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

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

Whether to the provided redirect URL should be prepended with the application context path (if any).

By default this is set to true.

Annotations
@Override
getRedirectViewback to summary
private RedirectView getRedirectView()
headerback to summary
public DefaultRenderingBuilder header(String headerName, String... headerValues)

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

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

Specify a header to add to the response.

Annotations
@Override
headersback to summary
public DefaultRenderingBuilder headers(HttpHeaders headers)

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

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

Specify headers to add to the response.

Annotations
@Override
initHeadersback to summary
private HttpHeaders initHeaders()
initModelback to summary
private Model initModel()
modelback to summary
public DefaultRenderingBuilder model(Map<String, ?> map)

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

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

Add the given attributes to the model.

Annotations
@Override
modelAttributeback to summary
public DefaultRenderingBuilder modelAttribute(String name, Object value)

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

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

Add the given model attribute with the supplied name.

Annotations
@Override
modelAttributeback to summary
public DefaultRenderingBuilder modelAttribute(Object value)

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

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

Add an attribute to the model using a generated name.

Annotations
@Override
modelAttributesback to summary
public DefaultRenderingBuilder modelAttributes(Object... values)

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

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

Add all given attributes to the model using generated names.

Annotations
@Override
propagateQueryback to summary
public Rendering.RedirectBuilder propagateQuery(boolean propagate)

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

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

Whether to append the query string of the current URL to the target redirect URL or not.

By default this is set to false.

Annotations
@Override
statusback to summary
public DefaultRenderingBuilder status(HttpStatusCode status)

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

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

Specify the status to use for the response.

Annotations
@Override