|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.riotfamily.website.view.ConfigurableViewController
public class ConfigurableViewController
Class similar to Spring's
ParameterizableViewController,
with the following two differences:
RequestToViewNameTranslator
will be used by the DispatcherServlet.
| Constructor Summary | |
|---|---|
ConfigurableViewController()
|
|
| Method Summary | |
|---|---|
ModelAndView |
handleRequest(HttpServletRequest request,
HttpServletResponse response)
Creates a ModelAndView with the configured viewName and invokes
populateModel(Model, HttpServletRequest). |
protected void |
populateModel(Model model,
HttpServletRequest request)
Can be overwritten by subclasses to populate the model. |
void |
setContentType(String contentType)
Sets the content type to be set in the header. |
void |
setViewName(String viewName)
Sets the name of the view to delegate to. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConfigurableViewController()
| Method Detail |
|---|
public void setViewName(String viewName)
public void setContentType(String contentType)
public ModelAndView handleRequest(HttpServletRequest request,
HttpServletResponse response)
throws Exception
ModelAndView with the configured viewName and invokes
populateModel(Model, HttpServletRequest).
If a contentType is configured,
ServletResponse.setContentType(String) is invoked.
handleRequest in interface ControllerException
protected void populateModel(Model model,
HttpServletRequest request)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||