|
JCAT v0.3.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The Event interface is the parent of all JCC Event interfaces. Event interfaces within each package are organized in a hierarchical fashion.
Event objects correspond to the object which is undergoing a state change; the specific state change is conveyed to the application in two ways.
First, the implementation reports the event to a particular method in a particular Listener interface to a listening object; generally the method corresponds to a particular state change.
Second, the event that is presented to the method has an identification integer which indicates
the specific state change. The getID()
method returns this identification number for
each event. The actual event identification integer values that may be conveyed by the individual
event object are defined in each of the specific event interfaces.
Each event caries a cause or a reason why the event happened. The getCause()
method
returns this cause value.
Field Summary | |
static int |
CAUSE_BUSY
The user is busy. |
static int |
CAUSE_CALL_CANCELLED
Cause code indicating the user has terminated call. |
static int |
CAUSE_CALL_RESTRICTED
A disconnect was received. |
static int |
CAUSE_DEST_NOT_OBTAINABLE
Cause code indicating the destination is not available. |
static int |
CAUSE_GENERAL_FAILURE
A general network failure occurred. |
static int |
CAUSE_INCOMPATIBLE_DESTINATION
Cause code indicating that a call has encountered an incompatible destination. |
static int |
CAUSE_LOCKOUT
Cause code indicating that a call has encountered an inter-digit timeout while dialing. |
static int |
CAUSE_MORE_DIGITS_NEEDED
Cause code indicating that the network needs more addressing information to complete the call. |
static int |
CAUSE_NETWORK_CONGESTION
Cause code indicating that a call has encountered network congestion. |
static int |
CAUSE_NETWORK_NOT_OBTAINABLE
Cause code indicating that a call could not reach a destination network. |
static int |
CAUSE_NEW_CALL
Cause code indicating a new call. |
static int |
CAUSE_NO_ANSWER
No answer was received. |
static int |
CAUSE_NORMAL
Cause code indicating a normal operation. |
static int |
CAUSE_REDIRECTED
Cause code indicating the cause was because of call being redirected. |
static int |
CAUSE_RESOURCES_NOT_AVAILABLE
Cause code indicating that resources were not available. |
static int |
CAUSE_SNAPSHOT
Cause code indicating that the event is part of a snapshot of the current state of the call. |
static int |
CAUSE_TIMER_EXPIRY
The connection was released because an activity timer expired. |
static int |
CAUSE_UNKNOWN
Cause code indicating the cause was unknown. |
static int |
CAUSE_USER_NOT_AVAILABLE
The user isn't available in the network. |
Method Summary | |
int |
getCause()
Returns the cause associated with this event. |
int |
getID()
Returns the id of event. |
java.lang.Object |
getSource()
Returns the event source of the event. |
Field Detail |
public static final int CAUSE_NORMAL
public static final int CAUSE_UNKNOWN
public static final int CAUSE_CALL_CANCELLED
public static final int CAUSE_DEST_NOT_OBTAINABLE
public static final int CAUSE_INCOMPATIBLE_DESTINATION
public static final int CAUSE_LOCKOUT
public static final int CAUSE_NEW_CALL
public static final int CAUSE_RESOURCES_NOT_AVAILABLE
public static final int CAUSE_NETWORK_CONGESTION
public static final int CAUSE_NETWORK_NOT_OBTAINABLE
public static final int CAUSE_SNAPSHOT
public static final int CAUSE_REDIRECTED
JccConnectionEvent.CONNECTION_DISCONNECTED
and the connection
returned by JccConnectionEvent.getConnection()
is a terminating
connection.
public static final int CAUSE_MORE_DIGITS_NEEDED
public static final int CAUSE_BUSY
getCause()
.
public static final int CAUSE_NO_ANSWER
getCause()
.
public static final int CAUSE_CALL_RESTRICTED
getCause()
.
public static final int CAUSE_GENERAL_FAILURE
getCause()
.
public static final int CAUSE_TIMER_EXPIRY
getCause()
.
public static final int CAUSE_USER_NOT_AVAILABLE
getCause()
.
Method Detail |
public int getCause()
public int getID()
public java.lang.Object getSource()
|
JCAT v0.3.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright - 2001, 2003 Sun Microsystems