jain.protocol.ip.mgcp
Class JainMgcpCommandEvent
java.lang.Object
|
+--java.util.EventObject
|
+--jain.protocol.ip.mgcp.JainMgcpEvent
|
+--jain.protocol.ip.mgcp.JainMgcpCommandEvent
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- AuditConnection, AuditEndpoint, CreateConnection, DeleteConnection, EndpointConfiguration, ModifyConnection, NotificationRequest, Notify, RestartInProgress
- public abstract class JainMgcpCommandEvent
- extends JainMgcpEvent
The base class for all JAIN MGCP Command Events.
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
JainMgcpCommandEvent
public JainMgcpCommandEvent(java.lang.Object source,
EndpointIdentifier endpointIdentifier,
int objectIdentifier)
throws java.lang.IllegalArgumentException
- Constructs a Command Event object.
- Parameters:
source
- A reference to the object, the "source", that is logically deemed to be
the object upon which the Event in question initially occurred.endpointIdentifier
- The endpoint identifier for which this command is being issued.
BuildCommandHeader
protected java.lang.String BuildCommandHeader(java.lang.String cmd)
- Builds a canonical command header line for an MGCP command message.
The transaction identifier and the endpoint identifier are data members of the object that invokes this
method.
Note: this is a protected method intended for use only by subclasses of this class that represent MGCP
command primitives.
- Parameters:
cmd
- The command verb to be used in building the command header line.- Returns:
- A canonically-formatted command header line.
getEndpointIdentifier
public EndpointIdentifier getEndpointIdentifier()
- Gets the Endpoint Identifier.
- Returns:
- The Endpoint Identifier.
setEndpointIdentifier
public void setEndpointIdentifier(EndpointIdentifier endpointIdentifier)
throws java.lang.IllegalArgumentException
- Sets the Endpoint Identifier.
- Parameters:
endpointIdentifier
- Name for the endpoint in the gateway where this command executes.
Copyright © 2000 Sun Microsystems, Inc.