org.mobicents.protocols.mgcp.handlers
Class MgcpContentHandler

java.lang.Object
  extended by org.mobicents.protocols.mgcp.handlers.MgcpContentHandler
Direct Known Subclasses:
DeleteConnectionHandler.CommandContentHandle

public abstract class MgcpContentHandler
extends Object

Receive notification of the logical content of a message.

Author:
Oleg Kulikov, Pavel Mitrenko, Yulian Oifa

Constructor Summary
MgcpContentHandler()
           
 
Method Summary
abstract  void param(byte[] data, SplitDetails name, SplitDetails value)
          Receive notification of the parameter of a message.
 void parse(byte[] data, SplitDetails[] message)
           
abstract  void sessionDescription(String sd)
          Receive notification of the session description.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MgcpContentHandler

public MgcpContentHandler()
Method Detail

param

public abstract void param(byte[] data,
                           SplitDetails name,
                           SplitDetails value)
                    throws ParseException
Receive notification of the parameter of a message. Parser will call this method to report about parameter reading.

Parameters:
name - the name of the paremeter
value - the value of the parameter.
Throws:
ParseException

sessionDescription

public abstract void sessionDescription(String sd)
                                 throws ParseException
Receive notification of the session description. Parser will call this method to report about session descriptor reading.

Parameters:
sd - the session description from message.
Throws:
ParseException

parse

public void parse(byte[] data,
                  SplitDetails[] message)
           throws IOException,
                  ParseException
Throws:
IOException
ParseException


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