JSR-043: JTAPI-1.4

javax.telephony.media.provider
Class Base_MediaConnectionEvent.Token

java.lang.Object
  |
  +--javax.telephony.media.provider.Base_MediaConnectionEvent.Token
All Implemented Interfaces:
MediaConnection.Token
Enclosing class:
Base_MediaConnectionEvent

public static class Base_MediaConnectionEvent.Token
extends java.lang.Object
implements MediaConnection.Token

A minimal structure to implement a MediaConnection.Token.

Note: A provider implementer can extend this with fields that indicate which objects are actually connected. Also provide a suitable .equals(Object) method. two Tokens are equal if the refer to the same media path connection: same source and sink of media.


Method Summary
 Symbol getDataFlow()
          Indicates data flow of this connection.
 Symbol getMaxDataFlow()
          Return the MaxDataFLow Symbol for this connection.
 Symbol getType()
          Indicate the type of connection.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.telephony.media.connection.MediaConnection.Token
equals
 

Method Detail

toString

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

getDataFlow

public Symbol getDataFlow()
Indicates data flow of this connection.
Specified by:
getDataFlow in interface MediaConnection.Token
Returns:
one of v_Listen, v_Talk, v_Both, v_None

getMaxDataFlow

public Symbol getMaxDataFlow()
Description copied from interface: MediaConnection.Token
Return the MaxDataFLow Symbol for this connection.
Specified by:
getMaxDataFlow in interface MediaConnection.Token
Returns:
one of v_Listen, v_Talk, v_Both

getType

public Symbol getType()
Indicate the type of connection.

Note: For disconnect events, Bridge and Loopback may be concealed as Secondary and Primary, respectively.

Specified by:
getType in interface MediaConnection.Token
Returns:
one of v_Primary, v_Secondary, v_Bridge, v_Loopback

JSR-043: JTAPI-1.4

Send comments to: JSR-43@ectf.org