jain.protocol.ip.mgcp
Class JainMgcpResponseEvent
java.lang.Object
|
+--java.util.EventObject
|
+--jain.protocol.ip.mgcp.JainMgcpEvent
|
+--jain.protocol.ip.mgcp.JainMgcpResponseEvent
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- AuditConnectionResponse, AuditEndpointResponse, CreateConnectionResponse, DeleteConnectionResponse, EndpointConfigurationResponse, ModifyConnectionResponse, NotificationRequestResponse, NotifyResponse, RestartInProgressResponse
- public abstract class JainMgcpResponseEvent
- extends JainMgcpEvent
The base class for all JAIN MGCP Response Events.
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Constructor Summary |
JainMgcpResponseEvent(java.lang.Object source,
ReturnCode returnCode,
int objectIdentifier)
Constructs a new JainMgcpResponseEvent object.
|
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 |
JainMgcpResponseEvent
public JainMgcpResponseEvent(java.lang.Object source,
ReturnCode returnCode,
int objectIdentifier)
throws java.lang.IllegalArgumentException
- Constructs a new JainMgcpResponseEvent 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.returnCode
- The return code.- Throws:
java.lang.IllegalArgumentException
- Thrown if return code parameter object reference is null-valued.
BuildResponseHeader
protected java.lang.String BuildResponseHeader()
- Builds a canonical MGCP response header, consisting of the return code value, the transaction identifier, and
the (optional) return comment.
Note: this is a protected method intended to be used only by subclasses of this class that represent MGCP
response primitives.
- Returns:
- A canonically-formatted MGCP response header.
getReturnCode
public ReturnCode getReturnCode()
- Gets the return code.
- Returns:
- The return code.
setReturnCode
public void setReturnCode(ReturnCode returnCode)
throws java.lang.IllegalArgumentException
- Sets the return code.
- Parameters:
returnCode
- The return code.- Throws:
java.lang.IllegalArgumentException
- Thrown if return code parameter object reference is null-valued.
Copyright © 2000 Sun Microsystems, Inc.