|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.infohazard.maverick.ctl.Throwaway2
Throwaway2 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 | |
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 | |
Throwaway2()
|
Method Summary | |
protected ControllerContext |
getCtx()
Obtain the controller context for this request. |
protected abstract java.lang.String |
go()
This is the method you should override to implement application logic. |
java.lang.String |
go(ControllerContext cctx)
Sets up the servlet parameters and calls through to the parameterless rawPerform() method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String SUCCESS
public static final java.lang.String ERROR
Constructor Detail |
public Throwaway2()
Method Detail |
public final java.lang.String go(ControllerContext cctx) throws javax.servlet.ServletException
go
in interface Controller
javax.servlet.ServletException
Controller#perform
protected abstract java.lang.String go() throws java.lang.Exception
java.lang.Exception
protected ControllerContext getCtx()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |