|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface InteractionEvent
An event on an Interaction.
If actions performed on an interaction are successful, the corresponding interaction interface
receives InteractionEvent events that report:
RINGING
interaction, the interaction status can change from RINGING to TALKING.
Use InteractionEvents to get the updated interaction interface in order to:
| Nested Class Summary | |
|---|---|
static class |
InteractionEvent.EventReason
Constants for the possible event reasons. |
static interface |
InteractionEvent.Extension
Contains the keys of the extensions possibly present in an
InteractionEvent. |
| Method Summary | |
|---|---|
InteractionEvent |
createClone(Dn _dn)
Creates a clone of this event, but gives it a DN reference. |
Dn |
getDn()
Returns the DN to which this event is related. |
InteractionEvent.EventReason |
getEventReason()
Returns the reason of this event. |
java.util.Map |
getExtensions()
Returns extended information about this event. |
Interaction |
getInteraction()
Returns the Interaction to which this event is related. |
Interaction.Status |
getStatus()
Returns the status of the Interaction this event is about. |
java.util.Map |
getTEventExtensions()
Returns the extensions of this event. |
boolean |
isStatusChanged()
Returns true if this event announces a change in the
status of the interaction. |
| Methods inherited from interface com.genesyslab.ail.event.AbstractInteractionEvent |
|---|
getTEventReasons |
| Methods inherited from interface com.genesyslab.ail.event.ObjectEvent |
|---|
getSource |
| Method Detail |
|---|
InteractionEvent createClone(Dn _dn)
Dn getDn()
DN to which this event is related.
Interaction.Status getStatus()
Interaction this event is about.
java.util.Map getExtensions()
//Retrieval of the map containing the AIL Extensions
Map extensions = ie.getExtensions());
// Retrieval of the transfer reason (if any)
String transferReason = (String) extensions.get(InteractionEvent.Extension.RINGING_TRANSFER_REASON);
// Test whether there is a transfer reason
if(transferReason!= null){
// Display of the corresponding reason
System.out.println("Transfer reason"+transferReason);
}
getExtensions in interface AbstractInteractionEventInteractionEvent.ExtensionInteraction getInteraction()
Interaction to which this event is related.
This method returns the same as
getSource().
InteractionEvent.EventReason getEventReason()
boolean isStatusChanged()
true if this event announces a change in the
status of the interaction.
If this event does not announce a status change, returns false
.
isStatusChanged in interface AbstractInteractionEventjava.util.Map getTEventExtensions()
getTEventExtensions in interface AbstractInteractionEvent
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||