|
|||||||||
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.
Field Summary | |
---|---|
private java.lang.String |
urlPath
|
private java.lang.String |
viewName
|
Constructor Summary | |
---|---|
ViewControllerRegistration(java.lang.String urlPath)
Creates a ViewControllerRegistration with the given URL path. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final java.lang.String urlPath
private java.lang.String viewName
Constructor Detail |
---|
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.
Method Detail |
---|
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |