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)
Sole constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
resolveViewPathFor(Route route)
Returns the path of the passed-in
Route if it is a default error Route, and if not, will let the delegate
handle resolving the path for the Route |
private final ViewResolver delegate
public ErrorViewResolver(ViewResolver delegate)
delegate - the ViewResolver that this instance will delegate to.public String resolveViewPathFor(Route route)
Route if it is a default error Route, and if not, will let the delegate
handle resolving the path for the RouteresolveViewPathFor in interface ViewResolverroute - the route for which a view is to be resolvedString the view for the passed in Route.Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.