public class ViewControllerRegistration extends Object
| Constructor and Description |
|---|
ViewControllerRegistration(String urlPath)
Creates a
ViewControllerRegistration with the given URL path. |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getUrlPath()
Returns the URL path for the view controller.
|
protected Object |
getViewController()
Returns the view controllers.
|
void |
setViewName(String viewName)
Sets the view name to use for this view controller.
|
public ViewControllerRegistration(String urlPath)
ViewControllerRegistration with the given URL path. When a request matches
to the given URL path this view controller will process it.public void setViewName(String viewName)
null view name, which will be resolved through the configured
RequestToViewNameTranslator. By default that means "/foo/bar" would resolve to "foo/bar".protected String getUrlPath()
protected Object getViewController()