JAINTM MGCP API (DRAFT FOR PUBLIC REVIEW) - Version 0.9 - 16 NOVEMBER 2000

jain.protocol.ip.mgcp.message.parms
Class ConnectionIdentifier

java.lang.Object
  |
  +--jain.protocol.ip.mgcp.message.parms.ConnectionIdentifier
All Implemented Interfaces:
java.io.Serializable

public final class ConnectionIdentifier
extends java.lang.Object
implements java.io.Serializable

Identifies a connection.

See Also:
Serialized Form

Field Summary
static ConnectionIdentifier AllConnections
          Represents the "All connections" wildcard.
static ConnectionIdentifier AnyConnection
          Represents the "Any connection" wildcard.
 
Constructor Summary
ConnectionIdentifier(java.lang.String connectionIdentifier)
          Constructs a new Connection Identifier.

 
Method Summary
 void setConnectionIdentifier(java.lang.String connectionIdentifier)
          Sets the connection identifier string.

 java.lang.String toString()
          Gets the Connection Identifier string.

 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

AllConnections

public static final ConnectionIdentifier AllConnections
Represents the "All connections" wildcard. Calling the toString method on this object will return "*"

AnyConnection

public static final ConnectionIdentifier AnyConnection
Represents the "Any connection" wildcard. Calling the toString method on this object will return "$"
Constructor Detail

ConnectionIdentifier

public ConnectionIdentifier(java.lang.String connectionIdentifier)
                     throws java.lang.IllegalArgumentException
Constructs a new Connection Identifier.

Parameters:
connectionIdentifier - The string to be used as the connection identifier.
Throws:
java.lang.IllegalArgumentException - Thrown if the string does not consist of from 1 through 32 hexadecimal digits.
Method Detail

setConnectionIdentifier

public void setConnectionIdentifier(java.lang.String connectionIdentifier)
                             throws java.lang.IllegalArgumentException
Sets the connection identifier string.

Parameters:
connectionIdentifier - The Connection Identifier string.
Throws:
java.lang.IllegalArgumentException - Thrown if the string does not consist of from 1 through 32 hexadecimal digits.

toString

public java.lang.String toString()
Gets the Connection Identifier string.

Overrides:
toString in class java.lang.Object
Returns:
The string that represents the Connection Identifier.

JAINTM MGCP API (DRAFT FOR PUBLIC REVIEW) - Version 0.9 - 16 NOVEMBER 2000

Copyright © 2000 Sun Microsystems, Inc.