|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.web.servlet.config.annotation.ViewControllerRegistration
public class ViewControllerRegistration
Encapsulates information required to create a view controller.
Constructor Summary | |
---|---|
ViewControllerRegistration(String urlPath)
Creates a ViewControllerRegistration with the given URL path. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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.
Method Detail |
---|
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |