de.infoasset.platform.handler
Class Station

java.lang.Object
  extended by de.infoasset.platform.handler.Station
Direct Known Subclasses:
AnswerStation, InvisibleStation, Line

public abstract class Station
extends java.lang.Object

This class is not inteded to be directly subclassed by a concrete Station but serves as a base class to the station types that are available to the system. Currently, three different station types are available and can thus be subclassed (also have a look at the class hierarchy of Station):

This class provides basic infrastructure to stations. A station may carry out some additional actions which are executed in the next()method.
Currently, the following actions exist: These additional actions are defined as fields within the definition of the station and will be found via reflection. To find examples of them look for subclasses of Mail and TemplateAction.

Execution order (see next()): At first all mails are executed in the order they appear in the code, then all template actions, then the actual station code (see getResponse()).


Field Summary
static java.lang.String ADD_MAILS_METHOD
           
static java.lang.String GET_TEMPLATE_ACTIONS
           
 
Constructor Summary
Station()
           
 
Method Summary
 Handler getHandler()
           
 java.util.List<Mail> getMails()
           
protected abstract  Response getResponse()
           
 java.util.List<TemplateAction> getTemplateActions()
           
protected  void init()
           
 Response next()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ADD_MAILS_METHOD

public static final java.lang.String ADD_MAILS_METHOD

GET_TEMPLATE_ACTIONS

public static final java.lang.String GET_TEMPLATE_ACTIONS
Constructor Detail

Station

public Station()
Method Detail

next

public final Response next()
                    throws java.lang.Exception
Throws:
java.lang.Exception

getMails

public java.util.List<Mail> getMails()

getTemplateActions

public java.util.List<TemplateAction> getTemplateActions()

init

protected void init()

getResponse

protected abstract Response getResponse()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

getHandler

public Handler getHandler()