org.mobicents.protocols.mgcp.stack
Class EndpointConfigurationHandler

java.lang.Object
  extended by org.mobicents.protocols.mgcp.stack.TransactionHandler
      extended by org.mobicents.protocols.mgcp.stack.EndpointConfigurationHandler
All Implemented Interfaces:
Runnable

public class EndpointConfigurationHandler
extends TransactionHandler

Author:
Oleg Kulikov, Pavel Mitrenko

Field Summary
 
Fields inherited from class org.mobicents.protocols.mgcp.stack.TransactionHandler
commandEvent, endpoint, LONGTRAN_TIMER_TIMEOUT, MGCP_VERSION, NEW_LINE, remoteTID, responseEvent, retransmision, sent, SINGLE_CHAR_SPACE, source, stack, THIST_TIMER_TIMEOUT, transactionHandlerTimer, utilsFactory
 
Constructor Summary
EndpointConfigurationHandler(JainMgcpStackImpl stack)
          Creates a new instance of EndpointConfigurationHandle
EndpointConfigurationHandler(JainMgcpStackImpl stack, InetAddress address, int port)
           
 
Method Summary
 jain.protocol.ip.mgcp.JainMgcpCommandEvent decodeCommand(String message)
          Decodes MGCP command message into jain mgcp command event object.
 jain.protocol.ip.mgcp.JainMgcpResponseEvent decodeResponse(String message)
          Decodes MGCP response message into jain mgcp response event object.
 String encode(jain.protocol.ip.mgcp.JainMgcpCommandEvent event)
          Encodes command event object into MGCP command message.
 String encode(jain.protocol.ip.mgcp.JainMgcpResponseEvent event)
          Encodes response event object into MGCP response message.
 jain.protocol.ip.mgcp.JainMgcpResponseEvent getProvisionalResponse()
           
 
Methods inherited from class org.mobicents.protocols.mgcp.stack.TransactionHandler
getEndpointId, getLocalTID, getObjectSource, getRemoteTID, isCommand, markRetransmision, receiveRequest, receiveResponse, release, run, sendProvisionalResponse, setCommand, setCommandEvent, setResponseEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EndpointConfigurationHandler

public EndpointConfigurationHandler(JainMgcpStackImpl stack)
Creates a new instance of EndpointConfigurationHandle


EndpointConfigurationHandler

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

decodeCommand

public jain.protocol.ip.mgcp.JainMgcpCommandEvent decodeCommand(String 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(String message)
                                                           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 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

public 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.

getProvisionalResponse

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


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