public class ErrorViewResolver extends Object implements ViewResolver
ViewResolver that decorates a ViewResolver to enable short-circuiting the call to resolve the views path.
This ViewResolver used only for error handling and specifically in the situation when a custom error route has not
been defined.| Modifier and Type | Field and Description |
|---|---|
private ViewResolver |
delegate |
| Constructor and Description |
|---|
ErrorViewResolver(ViewResolver delegate) |
| Modifier and Type | Method and Description |
|---|---|
String |
resolveViewPathFor(Route route)
Returns the path of the passed-in
Route if it is a default/global error Route, and if not, will let the delegate
handle resolving the path for the Route |
private final ViewResolver delegate
public ErrorViewResolver(ViewResolver delegate)
public String resolveViewPathFor(Route route)
Route if it is a default/global error Route, and if not, will let the delegate
handle resolving the path for the RouteresolveViewPathFor in interface ViewResolverroute - the route for which to resolve the view.String the view for the passed in Route.Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.