public abstract class AbstractController extends Object
Modifier and Type | Field and Description |
---|---|
protected COM.FutureTense.Interfaces.ICS |
ics |
protected static org.apache.commons.logging.Log |
LOG |
static String |
STATUS_HEADER |
Constructor and Description |
---|
AbstractController(COM.FutureTense.Interfaces.ICS ics) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
doExecute()
Executes the core business logic of the controller.
|
protected abstract void |
handleException(Exception e)
Handles the exception, doing what is required
|
protected String |
sendError(int code,
Exception e)
Sends the http status code to the user-agent.
|
protected static final org.apache.commons.logging.Log LOG
public static final String STATUS_HEADER
protected final COM.FutureTense.Interfaces.ICS ics
public AbstractController(COM.FutureTense.Interfaces.ICS ics)
ics
- protected final String sendError(int code, Exception e)
code
- the http response codeprotected abstract void doExecute()
CSRuntimeException
- may throw a CSRuntimeException which is
handled by handleCSRuntimeExceptionprotected abstract void handleException(Exception e)
e
- exceptionCopyright © 2010-2016 Oracle Corporation. All Rights Reserved.