de.infoasset.platform.handler
Class Station
java.lang.Object
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()).
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ADD_MAILS_METHOD
public static final java.lang.String ADD_MAILS_METHOD
GET_TEMPLATE_ACTIONS
public static final java.lang.String GET_TEMPLATE_ACTIONS
Station
public Station()
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()