NIST-SIP: The Reference Implementation for JAIN-SIP 1.2

gov.nist.javax.sip.parser
Interface MessageParser

All Known Implementing Classes:
StringMsgParser

public interface MessageParser

Interface defining the contract for the stack to interact with the message parser to parse a byte array containing the SIP Message into a SIPMessage object

Author:
jean.deruelle@gmail.com

Method Summary
 SIPMessage parseSIPMessage(byte[] msgBytes, boolean readBody, boolean strict, ParseExceptionListener exhandler)
          parse a byte array containing the SIP Message into a SIPMessage object
 

Method Detail

parseSIPMessage

SIPMessage parseSIPMessage(byte[] msgBytes,
                           boolean readBody,
                           boolean strict,
                           ParseExceptionListener exhandler)
                           throws ParseException
parse a byte array containing the SIP Message into a SIPMessage object

Parameters:
msgBytes - the SIP Message received from the network
readBody - If the content body should be read or not
exhandler - Callback if an exception occurs during the parsing to notify back the stack
Returns:
a SIPMessage object that the stack can interact with
Throws:
ParseException - if a parseexception occurs

NIST-SIP: The Reference Implementation for JAIN-SIP 1.2

A product of the NIST/ITL Advanced Networking Technologies Division.
See conditions of use.
Submit a bug report or feature request.