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.
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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)
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()