Java API Use
A standard action
element is built in Java by extending the abstract base class
ActionElementBase
found in the
com.audium.server.voiceElement
package (this
package’s name is such due to backwards compatibility considerations). It
contains a single abstract method named doAction
,
that acts as the execution method for the action element, and must be
implemented by the developer. The method receives two arguments: the name of
the action element (as a String
) and an instance of
ActionElementData
. This class belongs to the Session
API and is used to access session information (See
Session API
for more on this API). The method does not expect anything in return because
all action elements have a single exit state (done). It is
expected that should an unrecoverable error occur, an
AudiumException
is thrown.
The
ActionElementBase
class defines many methods in
addition to doAction
. These are used for
configurable action elements, which also extend the class. The only method
required for standard action elements is doAction
,
as it is the only abstract method in
ActionElementBase
.