org.lastbamboo.common.sip.stack.message.header
Class SipHeaderFactoryImpl
java.lang.Object
org.lastbamboo.common.sip.stack.message.header.SipHeaderFactoryImpl
- All Implemented Interfaces:
- SipHeaderFactory
public class SipHeaderFactoryImpl
- extends Object
- implements SipHeaderFactory
Factory for creating SIP headers.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SipHeaderFactoryImpl
public SipHeaderFactoryImpl()
createHeader
public SipHeader createHeader(String name,
String value)
- Specified by:
createHeader in interface SipHeaderFactory
createSentByVia
public SipHeader createSentByVia(InetAddress address)
- Description copied from interface:
SipHeaderFactory
- Creates a new Via header indicating the "sent-by" address of the
host processing the message. This is specified in RFC 3261
section 18.1.1.
- Specified by:
createSentByVia in interface SipHeaderFactory
- Parameters:
address - The address to put in the "sent-by" parameter.
- Returns:
- A new Via header with the "sent-by" parameter.
createMaxForwards
public SipHeader createMaxForwards(int maxForwards)
- Specified by:
createMaxForwards in interface SipHeaderFactory
createSupported
public SipHeader createSupported()
- Description copied from interface:
SipHeaderFactory
- Create the header for the extensions we support.
- Specified by:
createSupported in interface SipHeaderFactory
- Returns:
- The header for the extensions we support.
createTo
public SipHeader createTo(URI sipUri)
- Specified by:
createTo in interface SipHeaderFactory
createTo
public SipHeader createTo(SipHeader originalTo)
- Specified by:
createTo in interface SipHeaderFactory
createFrom
public SipHeader createFrom(String displayName,
URI sipUri)
- Specified by:
createFrom in interface SipHeaderFactory
createCallId
public SipHeader createCallId()
- Specified by:
createCallId in interface SipHeaderFactory
createCSeq
public SipHeader createCSeq(String method)
- Specified by:
createCSeq in interface SipHeaderFactory
createContact
public SipHeader createContact(URI contactUri,
org.apache.commons.id.uuid.UUID instanceId)
- Specified by:
createContact in interface SipHeaderFactory
createExpires
public SipHeader createExpires(int millis)
- Specified by:
createExpires in interface SipHeaderFactory
createContentLength
public SipHeader createContentLength(int contentLength)
- Specified by:
createContentLength in interface SipHeaderFactory
Copyright © 2013 LittleShoot. All Rights Reserved.