org.mobicents.jcc.inap
Class JccConnectionEventImpl

java.lang.Object
  extended by org.mobicents.jcc.inap.JccConnectionEventImpl
All Implemented Interfaces:
java.lang.Runnable, javax.csapi.cc.jcc.JccCallEvent, javax.csapi.cc.jcc.JccConnectionEvent, javax.csapi.cc.jcc.JccEvent

public class JccConnectionEventImpl
extends java.lang.Object
implements javax.csapi.cc.jcc.JccConnectionEvent, java.lang.Runnable

Implements JccConnectionEvent interface.

Author:
Oleg Kulikov

Field Summary
protected  JccCalledPartyBCDNumber destAddress
           
 
Fields inherited from interface javax.csapi.cc.jcc.JccConnectionEvent
CONNECTION_ADDRESS_ANALYZE, CONNECTION_ADDRESS_COLLECT, CONNECTION_ALERTING, CONNECTION_AUTHORIZE_CALL_ATTEMPT, CONNECTION_CALL_DELIVERY, CONNECTION_CONNECTED, CONNECTION_CREATED, CONNECTION_DISCONNECTED, CONNECTION_FAILED, CONNECTION_MID_CALL
 
Fields inherited from interface javax.csapi.cc.jcc.JccCallEvent
CALL_ACTIVE, CALL_CREATED, CALL_EVENT_TRANSMISSION_ENDED, CALL_INVALID, CALL_SUPERVISE_END, CALL_SUPERVISE_START
 
Fields inherited from interface javax.csapi.cc.jcc.JccEvent
CAUSE_BUSY, CAUSE_CALL_CANCELLED, CAUSE_CALL_RESTRICTED, CAUSE_DEST_NOT_OBTAINABLE, CAUSE_GENERAL_FAILURE, CAUSE_INCOMPATIBLE_DESTINATION, CAUSE_LOCKOUT, CAUSE_MORE_DIGITS_NEEDED, CAUSE_NETWORK_CONGESTION, CAUSE_NETWORK_NOT_OBTAINABLE, CAUSE_NEW_CALL, CAUSE_NO_ANSWER, CAUSE_NORMAL, CAUSE_REDIRECTED, CAUSE_RESOURCES_NOT_AVAILABLE, CAUSE_SNAPSHOT, CAUSE_TIMER_EXPIRY, CAUSE_UNKNOWN, CAUSE_USER_NOT_AVAILABLE
 
Constructor Summary
JccConnectionEventImpl(int id, javax.csapi.cc.jcc.JccConnection connection, int cause)
          Creates a new instance of JccConnectionEventImpl.
 
Method Summary
 javax.csapi.cc.jcc.JccCall getCall()
          (Non Java-doc).
 int getCause()
          (Non Java-doc).
 javax.csapi.cc.jcc.JccConnection getConnection()
          (Non Java-doc).
 int getID()
          (Non Java-doc).
 java.lang.Object getSource()
          (Non Java-doc).
 void run()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

destAddress

protected JccCalledPartyBCDNumber destAddress
Constructor Detail

JccConnectionEventImpl

public JccConnectionEventImpl(int id,
                              javax.csapi.cc.jcc.JccConnection connection,
                              int cause)
Creates a new instance of JccConnectionEventImpl.

Parameters:
id - the id of this event.
connection - the JccConnection associated with this event
cause - the cause associated with this event.
Method Detail

getCall

public javax.csapi.cc.jcc.JccCall getCall()
(Non Java-doc).

Specified by:
getCall in interface javax.csapi.cc.jcc.JccCallEvent
See Also:
JccCallEvent.getCall().

getCause

public int getCause()
(Non Java-doc).

Specified by:
getCause in interface javax.csapi.cc.jcc.JccEvent
See Also:
JccEvent.getCause().

getConnection

public javax.csapi.cc.jcc.JccConnection getConnection()
(Non Java-doc).

Specified by:
getConnection in interface javax.csapi.cc.jcc.JccConnectionEvent
See Also:
JccConnectionEvent.getConnection().

getID

public int getID()
(Non Java-doc).

Specified by:
getID in interface javax.csapi.cc.jcc.JccEvent
See Also:
JccEvent.getID().

getSource

public java.lang.Object getSource()
(Non Java-doc).

Specified by:
getSource in interface javax.csapi.cc.jcc.JccEvent
See Also:
JccEvent.getSource().

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

run

public void run()
Specified by:
run in interface java.lang.Runnable


Copyright © 2010. All Rights Reserved.