public static interface Rendering.RedirectBuilder extends Rendering.Builder<Rendering.RedirectBuilder>
Rendering.Builder
with extra options for redirect scenarios.Modifier and Type | Method and Description |
---|---|
Rendering.RedirectBuilder |
contextRelative(boolean contextRelative)
Whether to the provided redirect URL should be prepended with the
application context path (if any).
|
Rendering.RedirectBuilder |
propagateQuery(boolean propagate)
Whether to append the query string of the current URL to the target
redirect URL or not.
|
build, header, headers, model, modelAttribute, modelAttribute, modelAttributes, status
Rendering.RedirectBuilder contextRelative(boolean contextRelative)
By default this is set to true
.
RedirectView.setContextRelative(boolean)
Rendering.RedirectBuilder propagateQuery(boolean propagate)
By default this is set to false
.
RedirectView.setPropagateQuery(boolean)