Skip to content

Add status controllers - #590

Closed
sdeleuze wants to merge 1 commit into
spring-projects:masterfrom
sdeleuze:SPR-11543
Closed

sdeleuze wants to merge 1 commit into
spring-projects:masterfrom
sdeleuze:SPR-11543

Conversation

@sdeleuze

Copy link
Copy Markdown
Contributor

Status controllers allow easily to define some URL that
should send a response with a specified status code.

For non redirect status controllers, it is possible to
specify a reason or a view to display. For redirect status
controllers, a redirect path is specified and a flag allows
to control if the query string of the original request should
be added to the redirect one.

For configuration, both XML MVC namespace and JavaConfig are
provided.

Issue: SPR-11543

Status controllers allow easily to define some URL that
should send a response with a specified status code.

For non redirect status controllers, it is possible to
specify a reason or a view to display. For redirect status
controllers, a redirect path is specified and a flag allows
to control if the query string of the original request should
be added to the redirect one.

For configuration, both XML MVC namespace and JavaConfig are
provided.

Issue: SPR-11543
@rstoyanchev

Copy link
Copy Markdown
Contributor

The approach taken instead enhances the existing view controller with the ability to also configure a status code. This is a simple and natural extension on its own but turns out it also goes quite far in meeting the requirements for SPR-11543.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants