Cisco Cisco Customer Voice Portal Downloads Developer's Guide

Page of 98
C
HAPTER 
13:
 
L
OGGERS
 
 
V
OICE
XML
 
P
ROGRAMMING 
G
UIDE 
 
 
 
FOR 
C
ISCO 
U
NIFIED 
C
USTOMER 
V
OICE 
P
ORTAL 
R
ELEASE 
4.0(1) 
 
 
 
 
70
 
This method is the execution method for the logger and is called by Unified CVP VoiceXML 
Server when a new event has occurred that the logger must handle. This method is called only if 
the VoiceXML Server has found the event’s ID in the 
eventsToListenFor HashSet
Only one object is passed to this method, an 
ApplicationEvent
. This object encapsulates all the 
information about the event and provides access to other environment information depending on 
the type of event. 
ApplicationEvent
 is a base class for all application-level events and the 
logger will typically check for the event type and cast to the appropriate event to get its 
information. All event classes are found in the 
com.audium.server.logger.events
 package. 
 
Figure 13-1 
Notes on events: 
   
ApplicationEvent
 is currently the only event that extends the generic event class 
LoggerEvent
. This structure is designed to support additional event types in the future 
without affecting the existing class hierarchy. 
    All events have an ID, obtained by calling the 
getID
 method. All application events have 
access to the Global API to get application and global data (see the VoiceXML Server User 
Guide for Cisco Unified Customer Voice Portal Chapter 2 in the section entitled Variables 
for more on application and global data).