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

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

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

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

Specifies an event name, as defined in RFC 2705.

See Also:
Serialized Form

Constructor Summary
EventName(PackageName packageName, MgcpEvent event)
          Constructs a new EventName in which the package name and the event Identifier are specified.
EventName(PackageName packageName, MgcpEvent event, ConnectionIdentifier connectionIdentifier)
          Constructs a new EventName in which the package name, the event Identifier, and the connection Identifier are all specified.
 
Method Summary
 ConnectionIdentifier getConnectionIdentifier()
          Gets the connection Identifier.
 MgcpEvent getEventIdentifier()
          Gets the event Identifier.
 PackageName getPackageName()
          Gets the package name.
 java.lang.String toString()
          Gets the entire event name as a String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EventName

public EventName(PackageName packageName,
                 MgcpEvent event)
Constructs a new EventName in which the package name and the event Identifier are specified. Note that each of these parameters can be "wildcarded" using the appropriate wildcard object reference (e.g., use jain.protocol.ip.mgcp.pkg.AllPackages as the package name to signify that the event is applicable to all packages.
Parameters:
packageName - A reference to an object of class jain.protocol.ip.mgcp.pkg.PackageName.
event - A reference to an object that implements the jain.protocol.ip.mgcp.pkg.MgcpEvent interface.
Throws:
java.lang.IllegalArgumentException - Thrown if the package name or the event parameter is null-valued.

EventName

public EventName(PackageName packageName,
                 MgcpEvent event,
                 ConnectionIdentifier connectionIdentifier)
          throws java.lang.IllegalArgumentException
Constructs a new EventName in which the package name, the event Identifier, and the connection Identifier are all specified. Note that each of these parameters can be "wildcarded" using the appropriate wildcard object reference (e.g., use jain.protocol.ip.mgcp.message.parms.AllConnections as the package name to signify that the event is applicable to all connections.
Parameters:
packageName - A reference to an object of class jain.protocol.ip.mgcp.pkg.PackageName.
event - A reference to an object that implements the jain.protocol.ip.mgcp.pkg.MgcpEvent interface.
connectionIdentifier - A reference to an object of class jain.protocol.ip.mgcp.message.parms.ConnectionIdentifier.
Throws:
java.lang.IllegalArgumentException - Thrown if the package name or the event parameter is null-valued.
Method Detail

getConnectionIdentifier

public ConnectionIdentifier getConnectionIdentifier()
Gets the connection Identifier.
Returns:
The connection Identifier.

getEventIdentifier

public MgcpEvent getEventIdentifier()
Gets the event Identifier.
Returns:
The event Identifier.

getPackageName

public PackageName getPackageName()
Gets the package name.
Returns:
The package name.

toString

public java.lang.String toString()
Gets the entire event name as a String.
Overrides:
toString in class java.lang.Object
Returns:
packageName/event@connectionIdentifier

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

Copyright © 2000 Sun Microsystems, Inc.