net.sourceforge.stripes.examples.bugzooky
Class ViewResourceActionBean

java.lang.Object
  extended by net.sourceforge.stripes.examples.bugzooky.BugzookyActionBean
      extended by net.sourceforge.stripes.examples.bugzooky.ViewResourceActionBean
All Implemented Interfaces:
net.sourceforge.stripes.action.ActionBean

public class ViewResourceActionBean
extends BugzookyActionBean

ActionBean that is used to display source files from the bugzooky web application to the user.

Author:
Tim Fennell

Constructor Summary
ViewResourceActionBean()
           
 
Method Summary
 Collection getAvailableResources()
          Method used when this ActionBean is used as a view helper.
 String getResource()
          Gets the name of the resource to be viewed.
 void setResource(String resource)
          Sets the name resource to be viewed.
 void validate(net.sourceforge.stripes.validation.ValidationErrors errors)
          Validates that only resources in the allowed places are asked for.
 net.sourceforge.stripes.action.Resolution view()
          Handler method which will handle a request for a resource in the web application and stream it back to the client inside of an HTML preformatted section.
 
Methods inherited from class net.sourceforge.stripes.examples.bugzooky.BugzookyActionBean
getContext, populateBug, setContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewResourceActionBean

public ViewResourceActionBean()
Method Detail

setResource

public void setResource(String resource)
Sets the name resource to be viewed.


getResource

public String getResource()
Gets the name of the resource to be viewed.


validate

@ValidationMethod
public void validate(net.sourceforge.stripes.validation.ValidationErrors errors)
Validates that only resources in the allowed places are asked for.


view

public net.sourceforge.stripes.action.Resolution view()
Handler method which will handle a request for a resource in the web application and stream it back to the client inside of an HTML preformatted section.


getAvailableResources

public Collection getAvailableResources()
Method used when this ActionBean is used as a view helper. Returns a listing of all the JSPs and ActionBeans available for viewing.



© Copyright 2005, Stripes Development Team.