org.mobicents.protocols.mgcp.stack
Class MessageHandler

java.lang.Object
  extended by org.mobicents.protocols.mgcp.stack.MessageHandler

public class MessageHandler
extends Object

Author:
Oleg Kulikov

Constructor Summary
MessageHandler(JainMgcpStackImpl jainMgcpStackImpl)
          Creates a new instance of MessageHandler
 
Method Summary
 boolean isRequest(String header)
           
static String[] piggyDismount(byte[] msgBuffer, int length)
          RFC 3435, $3.5.5: split piggy backed messages again
 void scheduleMessages(PacketRepresentation pr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageHandler

public MessageHandler(JainMgcpStackImpl jainMgcpStackImpl)
Creates a new instance of MessageHandler

Method Detail

piggyDismount

public static String[] piggyDismount(byte[] msgBuffer,
                                     int length)
RFC 3435, $3.5.5: split piggy backed messages again

Messages within the packet are split on their separator "EOL DOT EOL".

Parameters:
packet - the packet to split
Returns:
array of all separate messages

isRequest

public boolean isRequest(String header)

scheduleMessages

public void scheduleMessages(PacketRepresentation pr)


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