com.fatwire.gst.foundation.controller.action
Class AbstractActionController

java.lang.Object
  extended by com.fatwire.gst.foundation.controller.AbstractController
      extended by com.fatwire.gst.foundation.controller.action.AbstractActionController
All Implemented Interfaces:
COM.FutureTense.XML.Template.Seed, COM.FutureTense.XML.Template.Seed2
Direct Known Subclasses:
ActionController

public abstract class AbstractActionController
extends AbstractController

Dispatching Controller. Relies on ActionLocator to dispatch control to Action classes. An ActionNameResolver is used to resolve the action name on the current request.

Since:
May 26, 2011
Author:
Dolf Dijkstra

Field Summary
 
Fields inherited from class com.fatwire.gst.foundation.controller.AbstractController
ics, LOG, STATUS_HEADER
 
Fields inherited from interface COM.FutureTense.XML.Template.Seed
returnString
 
Constructor Summary
AbstractActionController()
           
 
Method Summary
protected  void doExecute()
          Executes the core business logic of the controller.
protected abstract  ActionLocator getActionLocator()
           
protected abstract  ActionNameResolver getActionNameResolver()
           
protected  javax.servlet.ServletContext getServletContext()
           
protected  void handleCSRuntimeException(CSRuntimeException e)
          This method transforms errno values into http status codes and sets them using the X-Fatwire-Status header.
protected  void handleException(Exception e)
          Handles the exception, doing what is required
 
Methods inherited from class com.fatwire.gst.foundation.controller.AbstractController
Execute, getInputArgument, getInputArgumentAsString, sendError, SetAppLogic
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractActionController

public AbstractActionController()
Method Detail

doExecute

protected final void doExecute()
Description copied from class: AbstractController
Executes the core business logic of the controller.

Specified by:
doExecute in class AbstractController

getActionNameResolver

protected abstract ActionNameResolver getActionNameResolver()
Returns:
the ActionNameResolver

getActionLocator

protected abstract ActionLocator getActionLocator()
Returns:
the ActionLocator.

getServletContext

protected javax.servlet.ServletContext getServletContext()

handleException

protected final void handleException(Exception e)
Description copied from class: AbstractController
Handles the exception, doing what is required

Specified by:
handleException in class AbstractController
Parameters:
e - exception

handleCSRuntimeException

protected final void handleCSRuntimeException(CSRuntimeException e)
This method transforms errno values into http status codes and sets them using the X-Fatwire-Status header.

Only some errnos are handled by this base class.

More info coming soon

Parameters:
e - exception


Copyright © 2010-2013 Oracle Corporation. All Rights Reserved.