net.sourceforge.stripes.controller
Class DefaultViewActionBean

java.lang.Object
  extended by net.sourceforge.stripes.controller.DefaultViewActionBean
All Implemented Interfaces:
ActionBean

public class DefaultViewActionBean
extends Object
implements ActionBean

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.

Since:
Stripes 1.3
Author:
Tim Fennell, Abdullah Jibaly

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

DefaultViewActionBean

public DefaultViewActionBean(Resolution view)
Method Detail

setContext

public void setContext(ActionBeanContext context)
Description copied from interface: ActionBean
Called by the Stripes dispatcher to provide context to the ActionBean before invoking the handler method. Implementations should store a reference to the context for use during event handling.

Specified by:
setContext in interface ActionBean
Parameters:
context - ActionBeanContext associated with the current request

getContext

public ActionBeanContext getContext()
Description copied from interface: ActionBean
Implementations must implement this method to return a reference to the context object provided to the ActionBean during the call to setContext(ActionBeanContext).

Specified by:
getContext in interface ActionBean
Returns:
ActionBeanContext associated with the current request

view

public Resolution view()


? Copyright 2005-2006, Stripes Development Team.