public class ViewControllerRegistration
extends java.lang.Object
Constructor and Description |
---|
ViewControllerRegistration(java.lang.String urlPath)
Creates a
ViewControllerRegistration with the given URL path. |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getUrlPath()
Returns the URL path for the view controller.
|
protected java.lang.Object |
getViewController()
Returns the view controllers.
|
void |
setViewName(java.lang.String viewName)
Sets the view name to use for this view controller.
|
public ViewControllerRegistration(java.lang.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(java.lang.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 java.lang.String getUrlPath()
protected java.lang.Object getViewController()