Package com.opencloud.javax.sip
Interface OCMessageFactory
-
- All Superinterfaces:
javax.sip.message.MessageFactory
public interface OCMessageFactory extends javax.sip.message.MessageFactory
Defines proprietary extensions toMessageFactory
-
-
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
-
-
-
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
orResponse
object - Throws:
ParseException
- if the parser could not understand the message
-
-