org.lastbamboo.common.sip.stack.message
Class UnknownSipRequestFactory
java.lang.Object
org.lastbamboo.common.sip.stack.message.UnknownSipRequestFactory
- All Implemented Interfaces:
- SingleSipMessageFactory
public class UnknownSipRequestFactory
- extends Object
- implements SingleSipMessageFactory
Factory for createing unknown request types. We just try to parse them
normally.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UnknownSipRequestFactory
public UnknownSipRequestFactory(String method,
URI uri)
- Create a new factory for unknown request types.
- Parameters:
method - The request method.uri - The request URI.
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.