org.lastbamboo.common.sip.stack.message
Interface SingleSipMessageFactory

All Known Implementing Classes:
SipInviteFactory, SipRegisterFactory, SipResponseFactory, UnknownSipRequestFactory

public interface SingleSipMessageFactory

Interface for classes responsible for creating individual SIP messages, such as INVITE.


Method Summary
 SipMessage createSipMessage(Map<String,SipHeader> headers, org.littleshoot.mina.common.ByteBuffer body)
          Creates a new SIP message.
 

Method Detail

createSipMessage

SipMessage createSipMessage(Map<String,SipHeader> headers,
                            org.littleshoot.mina.common.ByteBuffer body)
                            throws IOException
Creates a new SIP message.

Parameters:
headers - The Map of message headers.
body - The message body. This will frequently be empty, as many messages do not contain a body.
Returns:
A new SIP message instance from the request or response line, the message headers, and the message body.
Throws:
IOException - If there's any IO error creating the message.


Copyright © 2013 LittleShoot. All Rights Reserved.