org.mobicents.mgcp.stack
Class ModifyConnectionHandler
java.lang.Object
org.mobicents.mgcp.stack.TransactionHandler
org.mobicents.mgcp.stack.ModifyConnectionHandler
- All Implemented Interfaces:
- java.lang.Runnable
public class ModifyConnectionHandler
- extends TransactionHandler
- Author:
- Oleg Kulikov, Pavel Mitrenko
|
Method Summary |
protected jain.protocol.ip.mgcp.JainMgcpCommandEvent |
decodeCommand(java.lang.String message)
Decodes MGCP command message into jain mgcp command event object. |
protected jain.protocol.ip.mgcp.JainMgcpResponseEvent |
decodeResponse(java.lang.String message)
Decodes MGCP response message into jain mgcp response event object. |
protected java.lang.String |
encode(jain.protocol.ip.mgcp.JainMgcpCommandEvent event)
Encodes command event object into MGCP command message. |
protected java.lang.String |
encode(jain.protocol.ip.mgcp.JainMgcpResponseEvent event)
Encodes response event object into MGCP response message. |
| Methods inherited from class org.mobicents.mgcp.stack.TransactionHandler |
getLocalTID, getObjectSource, getRemoteTID, isCommand, receiveCommand, receiveResponse, release, run, setCommand, setCommandEvent, setResponseEvent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ModifyConnectionHandler
public ModifyConnectionHandler(JainMgcpStackImpl stack)
- Creates a new instance of ModifyConnectionHandler
ModifyConnectionHandler
public ModifyConnectionHandler(JainMgcpStackImpl stack,
java.net.InetAddress address,
int port)
decodeCommand
protected jain.protocol.ip.mgcp.JainMgcpCommandEvent decodeCommand(java.lang.String message)
throws java.text.ParseException
- Description copied from class:
TransactionHandler
- Decodes MGCP command message into jain mgcp command event object.
All descendant classes should implement this method with accordance of
the command type.
- Specified by:
decodeCommand in class TransactionHandler
- Returns:
- jain mgcp command event object.
- Throws:
java.text.ParseException
decodeResponse
protected jain.protocol.ip.mgcp.JainMgcpResponseEvent decodeResponse(java.lang.String message)
throws java.text.ParseException
- Description copied from class:
TransactionHandler
- Decodes MGCP response message into jain mgcp response event object.
All descendant classes should implement this method with accordance of
the command type.
- Specified by:
decodeResponse in class TransactionHandler
- Returns:
- jain mgcp response event object.
- Throws:
java.text.ParseException
encode
protected java.lang.String encode(jain.protocol.ip.mgcp.JainMgcpCommandEvent event)
- Description copied from class:
TransactionHandler
- Encodes command event object into MGCP command message.
All descendant classes should implement this method with accordance of
the command type.
- Specified by:
encode in class TransactionHandler
- Parameters:
event - the command event object.
- Returns:
- the encoded MGCP message.
encode
protected java.lang.String encode(jain.protocol.ip.mgcp.JainMgcpResponseEvent event)
- Description copied from class:
TransactionHandler
- Encodes response event object into MGCP response message.
All descendant classes should implement this method with accordance of
the response type.
- Specified by:
encode in class TransactionHandler
- Parameters:
event - the response event object.
- Returns:
- the encoded MGCP message.
Copyright © 2008. All Rights Reserved.