Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.infohazard.maverick.ctl
Class Throwaway  view Throwaway download Throwaway.java

java.lang.Object
  extended byorg.infohazard.maverick.ctl.Throwaway
All Implemented Interfaces:
org.infohazard.maverick.flow.Controller
Direct Known Subclasses:
ThrowawayBean

public abstract class Throwaway
extends java.lang.Object
implements org.infohazard.maverick.flow.Controller

Note: While not formally deprecated, use of this class is discouraged. You should use Throwaway2 instead. Throwaway is a base class for simple controllers which implements the single-use controller pattern (a fresh controller instance is created to service each request). No population of properties is performed by this class.


Field Summary
private  org.infohazard.maverick.flow.ControllerContext controllerCtx
           
static java.lang.String ERROR
          Common name for the typical "error" view.
static java.lang.String SUCCESS
          Common name for the typical "success" view.
 
Constructor Summary
Throwaway()
           
 
Method Summary
protected  org.infohazard.maverick.flow.ControllerContext getCtx()
           
protected  javax.servlet.http.HttpServletRequest getRequest()
           
protected  javax.servlet.http.HttpServletResponse getResponse()
           
protected  javax.servlet.ServletConfig getServletConfig()
           
protected  javax.servlet.ServletContext getServletContext()
           
protected  javax.servlet.http.HttpSession getSession()
           
 java.lang.String go(org.infohazard.maverick.flow.ControllerContext cctx)
          Sets up the servlet parameters and calls through to the parameterless rawPerform() method.
abstract  java.lang.Object model()
          This is the method you should override to return the data model after rawPerform() is executed.
protected abstract  java.lang.String rawPerform()
          This is the method you should override to implement application logic.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SUCCESS

public static final java.lang.String SUCCESS
Common name for the typical "success" view.

See Also:
Constant Field Values

ERROR

public static final java.lang.String ERROR
Common name for the typical "error" view.

See Also:
Constant Field Values

controllerCtx

private org.infohazard.maverick.flow.ControllerContext controllerCtx
Constructor Detail

Throwaway

public Throwaway()
Method Detail

go

public final java.lang.String go(org.infohazard.maverick.flow.ControllerContext cctx)
                          throws javax.servlet.ServletException
Sets up the servlet parameters and calls through to the parameterless rawPerform() method. Does not result in bean population.

Specified by:
go in interface org.infohazard.maverick.flow.Controller

rawPerform

protected abstract java.lang.String rawPerform()
                                        throws java.lang.Exception
This is the method you should override to implement application logic.


model

public abstract java.lang.Object model()
This is the method you should override to return the data model after rawPerform() is executed.


getCtx

protected org.infohazard.maverick.flow.ControllerContext getCtx()

getRequest

protected javax.servlet.http.HttpServletRequest getRequest()

getResponse

protected javax.servlet.http.HttpServletResponse getResponse()

getSession

protected javax.servlet.http.HttpSession getSession()

getServletConfig

protected javax.servlet.ServletConfig getServletConfig()

getServletContext

protected javax.servlet.ServletContext getServletContext()