Interface OCMessageFactory

  • All Superinterfaces:
    javax.sip.message.MessageFactory

    public interface OCMessageFactory
    extends javax.sip.message.MessageFactory
    Defines proprietary extensions to MessageFactory
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      javax.sip.message.Message decodeMessage​(byte[] data)
      Decodes a message directly from a byte array.
      byte[] encodeMessage​(javax.sip.message.Message message)
      Encodes this message as it would appear when sent on the network
      • Methods inherited from interface javax.sip.message.MessageFactory

        createRequest, createRequest, createRequest, createRequest, createResponse, createResponse, createResponse, createResponse, createResponse, createResponse, createResponse
    • Method Detail

      • encodeMessage

        byte[] encodeMessage​(javax.sip.message.Message message)
        Encodes this message as it would appear when sent on the network
        Parameters:
        message - the message to encode
        Returns:
        a byte array containing the encoded message
      • decodeMessage

        javax.sip.message.Message decodeMessage​(byte[] data)
                                         throws ParseException
        Decodes a message directly from a byte array. The bytes are parsed by the SIP parser as if they were received from the network.
        Parameters:
        data - the SIP message data
        Returns:
        a Request or Response object
        Throws:
        ParseException - if the parser could not understand the message