com.fatwire.gst.foundation.controller
Class AbstractController
java.lang.Object
com.fatwire.gst.foundation.controller.AbstractController
- All Implemented Interfaces:
- COM.FutureTense.XML.Template.Seed, COM.FutureTense.XML.Template.Seed2
- Direct Known Subclasses:
- AbstractActionController, AnnotationController, BaseController
public abstract class AbstractController
- extends Object
- implements COM.FutureTense.XML.Template.Seed2
- Since:
- Jun 16, 2010
- Author:
- Tony Field, Dolf Dijkstra
Field Summary |
protected COM.FutureTense.Interfaces.ICS |
ics
|
protected static org.apache.commons.logging.Log |
LOG
|
static String |
STATUS_HEADER
|
Fields inherited from interface COM.FutureTense.XML.Template.Seed |
returnString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
protected static final org.apache.commons.logging.Log LOG
STATUS_HEADER
public static final String STATUS_HEADER
- See Also:
- Constant Field Values
ics
protected COM.FutureTense.Interfaces.ICS ics
AbstractController
public AbstractController()
SetAppLogic
public void SetAppLogic(COM.FutureTense.Interfaces.IPS ips)
- Specified by:
SetAppLogic
in interface COM.FutureTense.XML.Template.Seed2
Execute
public final String Execute(COM.FutureTense.Interfaces.FTValList vIn,
COM.FutureTense.Interfaces.FTValList vOut)
- Specified by:
Execute
in interface COM.FutureTense.XML.Template.Seed
getInputArgument
protected final COM.FutureTense.Interfaces.FTVAL getInputArgument(String name)
getInputArgumentAsString
protected final String getInputArgumentAsString(String name)
sendError
protected final String sendError(int code,
Exception e)
- Sends the http status code to the user-agent.
- Parameters:
code
- the http response code
- Returns:
- String to stream
doExecute
protected abstract void doExecute()
- Executes the core business logic of the controller.
- Throws:
CSRuntimeException
- may throw a CSRuntimeException which is
handled by handleCSRuntimeException
handleException
protected abstract void handleException(Exception e)
- Handles the exception, doing what is required
- Parameters:
e
- exception
Copyright © 2010-2013 Oracle Corporation. All Rights Reserved.