com.jcorporate.expresso.core.controller |
This package contains the object defining the "Controller" object, an important
component of Expresso that should be used to encapsulate all user interaction
sequences.
Controllers are the guts Expresso's logic system. You derive your own controller
class from DBController to automatically get features such as built in per-state
security.
|
Java Source File Name | Type | Comment |
Block.java | Class | A Block is a logical grouping of Expresso Controller Elements used for nesting. |
Controller.java | Class | A sequence of interaction with a user is defined as a "Controller".
An Expresso controller is best thought of as a finite state machine. |
ControllerElement.java | Class | A ControllerElement is the superclass for the three types of objects that are
produced by a Controller when it transitions from one state to another.
Output, Input and Transition objects all extend this class, and share the
behaviors specified here.
IMPORTANT NOTE: We don't use Logging (e.g. |
ControllerException.java | Class | |
ControllerFactory.java | Interface | Abstract interface for creating a controller. |
ControllerForm.java | Class | |
ControllerInstallLog.java | Class | This is an implementation of the IntallLog interface that is
useful when running installation systems inside controllers. |
ControllerRequest.java | Class | ControllerRequest is a simple "wrapper" object that holds the parameters and data required
for a controller to be able to transition to a new state. |
ControllerResponse.java | Class | A ControllerResponse object contains the vector of Inputs, Outputs and
Transitions that results from a call to "newState(String)" for a particular
controller. |
DBController.java | Class | |
DefaultControllerFactory.java | Class | This version of Controller Factory acts dumb. |
DefaultForm.java | Class | This class is a bridge between Expresso's Controller system and the Struts
Action Form. |
DynamicForwarder.java | Class | Used for custom dynamic routing. |
ErrorCollection.java | Class | |
ExpressoActionServlet.java | Class | |
ExpressoPlugin.java | Class | |
ExpressoRequestProcessor.java | Class | |
Input.java | Class | An Input object is one of the three types of objects generated by a
Controller when it transitions from one state to another. |
NonHandleableException.java | Class | Exception thrown by ErrorHandler itself, and by some parts of ControllerServlet. |
Output.java | Class | An item returned from a controller to provide output/feedback to the
client.
An Output object is one of the three types of object that can be returned
by a Controller moving to a new state. |
SecureIfSetController.java | Class | Controller that uses security if the security system is available.
There are a class of controllers that are unique in that they need
database security working ONLY if the database has already been
set up. |
SecureRequestUtils.java | Class | Extended the Struts' RequestUtils to add additional
utility methods. |
ServletControllerRequest.java | Class | ServletControllerRequest is an extension of ControllerRequest that also contains
access to "special" servlet-related items, such as the ServletResponse object. |
ServletControllerResponse.java | Class | A ServletControllerResponse object is an extension that provides
wide access to the pure Struts API and Servlet environment.
For example you may want to generate dynamic ActionForwards
or retrieve access to the ActionMapping class.
public AcmeController extends DBController {
protected void runProcessOrderState(
ControllerRequest req,
ControllerRequest res )
{
ServletControllerRequest request =
(ServletControllerRequest)req;
ActionMapping mapping = request.getMapping();
ServletControllerResponse request =
(ServletControllerRequest)req;
ActionMapping mapping = response.getMapping();
// ... |
State.java | Class | A State embodies a single state in the finite state machine of a
Controller object. |
StateForm.java | Interface | Insert the type's description here. |
TilesController.java | Class | Implementation of the org.apache.struts.tiles.Controller interface. |
Transition.java | Class | An Transition is a choice that the user can make that initiates
either another sequence in this same controller or some new
controller. |
ValidationException.java | Class | Exception thrown during validation of user form input. |
ValidationItem.java | Class | A ValidationItem encapsulates a single item to be validated,
typically an input collected from a web page submission. |
ValidationSet.java | Class | A ValidationSet contains one or more ValidationItems. |