| Modifier and Type | Field and Description |
|---|---|
| private final ApplicationContext | |
| private int | |
| private final List | |
| private final List |
| Access | Constructor and Description |
|---|---|
| public | ViewControllerRegistry(ApplicationContext applicationContext)
Class constructor with |
| Modifier and Type | Method and Description |
|---|---|
| public RedirectViewControllerRegistration | addRedirectViewController(String urlPath, String redirectUrl)
Map a view controller to the given URL path or pattern in order to redirect to another URL. |
| public void | addStatusController(String urlPath, HttpStatusCode statusCode)
Map a simple controller to the given URL path (or pattern) in order to set the response status to the given code without rendering a body. |
| public ViewControllerRegistration | addViewController(String urlPathOrPattern)
Map a URL path or pattern to a view controller to render a response with the configured status code and view. |
| protected SimpleUrlHandlerMapping | buildHandlerMapping()
Return the |
| public void | setOrder(int order)
Specify the order to use for the |
| applicationContext | back to summary |
|---|---|
| private final ApplicationContext applicationContext
| |
| order | back to summary |
|---|---|
| private int order | |
| redirectRegistrations | back to summary |
|---|---|
| private final List<RedirectViewControllerRegistration> redirectRegistrations | |
| registrations | back to summary |
|---|---|
| private final List<ViewControllerRegistration> registrations | |
| ViewControllerRegistry | back to summary |
|---|---|
| public ViewControllerRegistry(ApplicationContext applicationContext) Class constructor with
| |
| addRedirectViewController | back to summary |
|---|---|
| public RedirectViewControllerRegistration addRedirectViewController(String urlPath, String redirectUrl) Map a view controller to the given URL path or pattern in order to redirect to another URL. For pattern syntax see By default the redirect URL is expected to be relative to the current ServletContext, i.e. as relative to the web application root.
| |
| addStatusController | back to summary |
|---|---|
| public void addStatusController(String urlPath, HttpStatusCode statusCode) Map a simple controller to the given URL path (or pattern) in order to set the response status to the given code without rendering a body. For pattern syntax see
| |
| addViewController | back to summary |
|---|---|
| public ViewControllerRegistration addViewController(String urlPathOrPattern) Map a URL path or pattern to a view controller to render a response with the configured status code and view. Patterns such as Note If an | |
| buildHandlerMapping | back to summary |
|---|---|
| protected SimpleUrlHandlerMapping buildHandlerMapping() Return the
| |
| setOrder | back to summary |
|---|---|
| public void setOrder(int order) Specify the order to use for the By default this is set to 1, i.e. right after annotated controllers, which are ordered at 0. | |