org.lastbamboo.common.sip.stack.message
Class SipResponseFactory
java.lang.Object
org.lastbamboo.common.sip.stack.message.SipResponseFactory
- All Implemented Interfaces:
- SingleSipMessageFactory
public class SipResponseFactory
- extends Object
- implements SingleSipMessageFactory
Factory for creating SIP responses.
|
Constructor Summary |
SipResponseFactory(int statusCode,
String reasonPhrase)
Creates a new factory for generating SIP responses. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SipResponseFactory
public SipResponseFactory(int statusCode,
String reasonPhrase)
- Creates a new factory for generating SIP responses.
- Parameters:
statusCode - The status code for the response.reasonPhrase - The reason phrase for the response.
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.