|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bbqjs.spring.mvc.PageController
@Controller public class PageController
This is a boiler plate Controller which allows you to set a view name and values to pass to the model. Using this means you don't have to declare such a dull class in your own code base.
Constructor Summary | |
---|---|
PageController()
|
Method Summary | |
---|---|
Map<String,Object> |
getModel()
Returns a map of key/value pairs that will be added to the page's model. |
String |
getView()
Returns the name of the view class this controller will use. |
org.springframework.web.servlet.ModelAndView |
handleGetRequest()
Controller method |
org.springframework.web.servlet.ModelAndView |
handlePostRequest()
Controller method |
void |
setModel(Map<String,Object> model)
Sets a map of key/value pairs that will be added to the page's model. |
void |
setView(String view)
Sets the name of the view class this controller will use. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PageController()
Method Detail |
---|
@RequestMapping(method=POST) public org.springframework.web.servlet.ModelAndView handlePostRequest() throws Exception
Exception
@RequestMapping(method=GET) public org.springframework.web.servlet.ModelAndView handleGetRequest() throws Exception
Exception
public String getView()
public void setView(String view)
view
- public Map<String,Object> getModel()
public void setModel(Map<String,Object> model)
model
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |