org.mobicents.protocols.mgcp.parser.commands
Class NotifyHandler

java.lang.Object
  extended by org.mobicents.protocols.mgcp.handlers.TransactionHandler
      extended by org.mobicents.protocols.mgcp.parser.commands.NotifyHandler

public class NotifyHandler
extends TransactionHandler

Author:
Oleg Kulikov, Amit Bhayani, Yulian Oifa

Field Summary
static byte[] COMMAND_NAME
           
 
Fields inherited from class org.mobicents.protocols.mgcp.handlers.TransactionHandler
commandEvent, endpoint, LONGTRAN_TIMER_TIMEOUT, MGCP_VERSION, NEW_LINE, remoteTID, responseEvent, retransmision, SDP_NEW_LINE, sent, SINGLE_CHAR_SPACE, source, stack, THIST_TIMER_TIMEOUT, transactionHandlerTimer
 
Constructor Summary
NotifyHandler(JainMgcpStackImpl stack)
           
NotifyHandler(JainMgcpStackImpl stack, InetAddress address, int port)
           
 
Method Summary
 jain.protocol.ip.mgcp.JainMgcpCommandEvent decodeCommand(byte[] data, SplitDetails[] message)
          Decodes MGCP command message into jain mgcp command event object.
 jain.protocol.ip.mgcp.JainMgcpResponseEvent decodeResponse(byte[] data, SplitDetails[] msg, Integer txID, jain.protocol.ip.mgcp.message.parms.ReturnCode returnCode)
          Decodes MGCP response message into jain mgcp response event object.
 int encode(jain.protocol.ip.mgcp.JainMgcpCommandEvent event, byte[] array)
          Encodes command event object into MGCP command message.
 int encode(jain.protocol.ip.mgcp.JainMgcpResponseEvent event, byte[] array)
          Encodes response event object into MGCP response message.
 jain.protocol.ip.mgcp.JainMgcpResponseEvent getProvisionalResponse()
           
 
Methods inherited from class org.mobicents.protocols.mgcp.handlers.TransactionHandler
getEndpointId, getLocalTID, getObjectSource, getRemoteTID, isCommand, markRetransmision, receiveRequest, receiveResponse, release, send, sendProvisionalResponse, setCommand, setCommandEvent, setResponseEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMMAND_NAME

public static final byte[] COMMAND_NAME
Constructor Detail

NotifyHandler

public NotifyHandler(JainMgcpStackImpl stack)

NotifyHandler

public NotifyHandler(JainMgcpStackImpl stack,
                     InetAddress address,
                     int port)
Method Detail

decodeCommand

public jain.protocol.ip.mgcp.JainMgcpCommandEvent decodeCommand(byte[] data,
                                                                SplitDetails[] message)
                                                         throws 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:
ParseException

decodeResponse

public jain.protocol.ip.mgcp.JainMgcpResponseEvent decodeResponse(byte[] data,
                                                                  SplitDetails[] msg,
                                                                  Integer txID,
                                                                  jain.protocol.ip.mgcp.message.parms.ReturnCode returnCode)
                                                           throws 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:
ParseException

encode

public int encode(jain.protocol.ip.mgcp.JainMgcpCommandEvent event,
                  byte[] array)
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

public int encode(jain.protocol.ip.mgcp.JainMgcpResponseEvent event,
                  byte[] array)
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.

getProvisionalResponse

public jain.protocol.ip.mgcp.JainMgcpResponseEvent getProvisionalResponse()
Specified by:
getProvisionalResponse in class TransactionHandler


Copyright © 2013 TeleStax, Inc.. All Rights Reserved.