org.lastbamboo.common.sip.stack.message.header
Class SipHeaderFactoryImpl

java.lang.Object
  extended by org.lastbamboo.common.sip.stack.message.header.SipHeaderFactoryImpl
All Implemented Interfaces:
SipHeaderFactory

public class SipHeaderFactoryImpl
extends Object
implements SipHeaderFactory

Factory for creating SIP headers.


Constructor Summary
SipHeaderFactoryImpl()
           
 
Method Summary
 SipHeader createCallId()
           
 SipHeader createContact(URI contactUri, org.apache.commons.id.uuid.UUID instanceId)
           
 SipHeader createContentLength(int contentLength)
           
 SipHeader createCSeq(String method)
           
 SipHeader createExpires(int millis)
           
 SipHeader createFrom(String displayName, URI sipUri)
           
 SipHeader createHeader(String name, String value)
           
 SipHeader createMaxForwards(int maxForwards)
           
 SipHeader createSentByVia(InetAddress address)
          Creates a new Via header indicating the "sent-by" address of the host processing the message.
 SipHeader createSupported()
          Create the header for the extensions we support.
 SipHeader createTo(SipHeader originalTo)
           
 SipHeader createTo(URI sipUri)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SipHeaderFactoryImpl

public SipHeaderFactoryImpl()
Method Detail

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.