com.fatwire.gst.foundation.controller.action
Class AbstractActionController
java.lang.Object
com.fatwire.gst.foundation.controller.AbstractController
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
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 |
AbstractActionController
public AbstractActionController()
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.