public interface OCMessageFactory extends MessageFactory
MessageFactory
Modifier and Type | Method and Description |
---|---|
Message |
decodeMessage(byte[] data)
Decodes a message directly from a byte array.
|
byte[] |
encodeMessage(Message message)
Encodes this message as it would appear when sent on the network
|
createRequest, createRequest, createRequest, createRequest, createResponse, createResponse, createResponse, createResponse, createResponse, createResponse, createResponse
byte[] encodeMessage(Message message)
message
- the message to encodeMessage decodeMessage(byte[] data) throws ParseException
data
- the SIP message dataRequest
or Response
objectParseException
- if the parser could not understand the message