org.lastbamboo.common.sip.stack.message.header
Interface SipHeaderFactory

All Known Implementing Classes:
SipHeaderFactoryImpl

public interface SipHeaderFactory

Factory for creating SIP message headers.


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)
           
 

Method Detail

createHeader

SipHeader createHeader(String name,
                       String value)

createSentByVia

SipHeader createSentByVia(InetAddress address)
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.

Parameters:
address - The address to put in the "sent-by" parameter.
Returns:
A new Via header with the "sent-by" parameter.

createMaxForwards

SipHeader createMaxForwards(int maxForwards)

createTo

SipHeader createTo(URI sipUri)

createFrom

SipHeader createFrom(String displayName,
                     URI sipUri)

createCallId

SipHeader createCallId()

createCSeq

SipHeader createCSeq(String method)

createContact

SipHeader createContact(URI contactUri,
                        org.apache.commons.id.uuid.UUID instanceId)

createExpires

SipHeader createExpires(int millis)

createContentLength

SipHeader createContentLength(int contentLength)

createTo

SipHeader createTo(SipHeader originalTo)

createSupported

SipHeader createSupported()
Create the header for the extensions we support.

Returns:
The header for the extensions we support.


Copyright © 2013 LittleShoot. All Rights Reserved.