MjSip Stack
v1.6

org.zoolu.sip.header
Class ContactHeader

java.lang.Object
  |
  +--org.zoolu.sip.header.Header
        |
        +--org.zoolu.sip.header.ParametricHeader
              |
              +--org.zoolu.sip.header.NameAddressHeader
                    |
                    +--org.zoolu.sip.header.EndPointHeader
                          |
                          +--org.zoolu.sip.header.ContactHeader

public class ContactHeader
extends EndPointHeader

SIP Header Contact. The Contact header field provides a SIP or SIPS URI that can be used to contact that specific instance of the UA for subsequent requests. The Contact header field MUST be present and contain exactly one SIP URI in any request that can result in the establishment of a dialog (i.e. INVITEs).

Note: for backward compatibility with legacy implementations the date format in 'expires' parameter is still supported although it has been deprecated in RFC 3261.


Fields inherited from class org.zoolu.sip.header.Header
name, value
 
Constructor Summary
ContactHeader()
          Creates a ContactHeader with '*' as contact value
ContactHeader(Header hd)
           
ContactHeader(NameAddress nameaddr)
           
ContactHeader(SipURL url)
           
 
Method Summary
 int getExpires()
           
 java.util.Date getExpiresDate()
           
 boolean hasExpires()
           
 boolean isExpired()
           
 boolean isStar()
           
 ContactHeader removeExpires()
           
 ContactHeader setExpires(java.util.Date expire)
           
 ContactHeader setExpires(int secs)
           
 
Methods inherited from class org.zoolu.sip.header.EndPointHeader
getNameAddress, getTag, hasTag
 
Methods inherited from class org.zoolu.sip.header.NameAddressHeader
indexOfFirstSemi, setNameAddress
 
Methods inherited from class org.zoolu.sip.header.ParametricHeader
getParameter, getParameterNames, hasParameter, hasParameters, removeParameter, removeParameters, setParameter
 
Methods inherited from class org.zoolu.sip.header.Header
clone, equals, getName, getValue, setValue, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContactHeader

public ContactHeader()
Creates a ContactHeader with '*' as contact value

ContactHeader

public ContactHeader(NameAddress nameaddr)

ContactHeader

public ContactHeader(SipURL url)

ContactHeader

public ContactHeader(Header hd)
Method Detail

setExpires

public ContactHeader setExpires(java.util.Date expire)

setExpires

public ContactHeader setExpires(int secs)

isStar

public boolean isStar()

hasExpires

public boolean hasExpires()

isExpired

public boolean isExpired()

getExpires

public int getExpires()

getExpiresDate

public java.util.Date getExpiresDate()

removeExpires

public ContactHeader removeExpires()

MjSip Stack
v1.6