org.lastbamboo.common.sip.stack.message
Class SipInviteFactory

java.lang.Object
  extended by org.lastbamboo.common.sip.stack.message.SipInviteFactory
All Implemented Interfaces:
SingleSipMessageFactory

public class SipInviteFactory
extends Object
implements SingleSipMessageFactory

Factory for creating a single SIP INVITE message.


Constructor Summary
SipInviteFactory(URI requestUri)
          Creates a new factory for creating INVITE requests for the specified URI.
 
Method Summary
 SipMessage createSipMessage(Map<String,SipHeader> headers, org.littleshoot.mina.common.ByteBuffer body)
          Creates a new SIP message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SipInviteFactory

public SipInviteFactory(URI requestUri)
Creates a new factory for creating INVITE requests for the specified URI. This is typically only used to create a single INVITE.

Parameters:
requestUri - The request URI for the INVITE.
Method Detail

createSipMessage

public SipMessage createSipMessage(Map<String,SipHeader> headers,
                                   org.littleshoot.mina.common.ByteBuffer body)
                            throws IOException
Description copied from interface: SingleSipMessageFactory
Creates a new SIP message.

Specified by:
createSipMessage in interface SingleSipMessageFactory
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.