|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.stripes.controller.DefaultViewActionBean
public class DefaultViewActionBean
A special purpose ActionBean that is used by the NameBasedActionResolver when a valid ActionBean cannot be found for a URL. If the URL can be successfully translated into a JSP URL and a JSP exists, an instance of this ActionBean is created that will forward the user to the appropriate JSP.
Because this ActionBean does not have a default no-arg constructor, even though it gets bound to a URL, if that URL is hit the ActionBean cannot be instantiated and therefore cannot be accessed directly by a user playing with the URL.
Constructor Summary | |
---|---|
DefaultViewActionBean(Resolution view)
|
Method Summary | |
---|---|
ActionBeanContext |
getContext()
Implementations must implement this method to return a reference to the context object provided to the ActionBean during the call to setContext(ActionBeanContext). |
void |
setContext(ActionBeanContext context)
Called by the Stripes dispatcher to provide context to the ActionBean before invoking the handler method. |
Resolution |
view()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultViewActionBean(Resolution view)
Method Detail |
---|
public void setContext(ActionBeanContext context)
ActionBean
setContext
in interface ActionBean
context
- ActionBeanContext associated with the current requestpublic ActionBeanContext getContext()
ActionBean
getContext
in interface ActionBean
public Resolution view()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |