|
NIST SIP Parser and Stack (v1.2) API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gov.nist.core.GenericObject | +--gov.nist.javax.sip.header.SIPObject | +--gov.nist.javax.sip.header.SIPHeader | +--gov.nist.javax.sip.header.ParametersHeader | +--gov.nist.javax.sip.header.AddressParametersHeader | +--gov.nist.javax.sip.header.Contact
Contact Item.
ContactList
,
Serialized FormField Summary | |
static String |
ACTION
|
static String |
EXPIRES
|
static String |
PROXY
|
static String |
Q
|
static String |
REDIRECT
|
Fields inherited from interface javax.sip.header.ContactHeader |
NAME |
Fields inherited from interface gov.nist.javax.sip.header.SIPHeaderNames |
ACCEPT, ACCEPT_ENCODING, ACCEPT_LANGUAGE, ALERT_INFO, ALLOW, ALLOW_EVENTS, AUTHENTICATION_INFO, AUTHORIZATION, CALL_ID, CALL_INFO, CONTACT, CONTENT_DISPOSITION, CONTENT_ENCODING, CONTENT_LANGUAGE, CONTENT_LENGTH, CONTENT_TYPE, CSEQ, DATE, ERROR_INFO, EVENT, FROM, IN_REPLY_TO, MAX_FORWARDS, MIME_VERSION, MIN_EXPIRES, ORGANIZATION, PRIORITY, PROXY_AUTHENTICATE, PROXY_AUTHORIZATION, PROXY_REQUIRE, RACK, REASON, RECORD_ROUTE, REPLY_TO, REQUIRE, RETRY_AFTER, ROUTE, RSEQ, SERVER, SUBJECT, SUBSCRIPTION_STATE, SUPPORTED, TIMESTAMP, TO, UNSUPPORTED, USER_AGENT, VIA, WARNING, WWW_AUTHENTICATE |
Constructor Summary | |
Contact()
Default constructor. |
Method Summary | |
String |
getAction()
get the Action field. |
Address |
getAddress()
get the address field. |
ContactList |
getContactList()
get the Contact list. |
NameValueList |
getContactParms()
get the parameters List |
long |
getExpires()
get Expires parameter. |
float |
getQValue()
get the Q-value |
boolean |
getWildCardFlag()
get the WildCardFlag field |
void |
setAddress(Address address)
Set the address member |
void |
setContactList(ContactList cl)
set the Contact List |
void |
setExpires(long expiryDeltaSeconds)
Set the expiry time in seconds. |
void |
setParameter(String name,
String value)
Set a parameter. |
void |
setQValue(float qValue)
set the Q-value parameter |
void |
setWildCardFlag(boolean w)
Set the wildCardFlag member |
Methods inherited from class gov.nist.javax.sip.header.ParametersHeader |
getParameter, getParameterNames, getParameters, getParameterValue, hasParameter, hasParameters, removeParameter, removeParameters, setParameter, setParameters, setQuotedParameter |
Methods inherited from class gov.nist.javax.sip.header.SIPHeader |
encode, getHeaderName, getHeaderValue, getName, getValue, isHeaderList, setHeaderName |
Methods inherited from class gov.nist.javax.sip.header.SIPObject |
clone, dbgPrint, debugDump, debugDump, equals, match, merge, replace, replace, replace, replace, toString |
Methods inherited from class gov.nist.core.GenericObject |
getClassFromName, getMatcher, isMySubclass, setMatcher |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.sip.header.Parameters |
getParameter, getParameterNames, removeParameter |
Methods inherited from interface javax.sip.header.Header |
clone, equals, getName, toString |
Field Detail |
public static final String ACTION
public static final String PROXY
public static final String REDIRECT
public static final String EXPIRES
public static final String Q
Constructor Detail |
public Contact()
Method Detail |
public void setParameter(String name, String value) throws ParseException
setParameter
in interface Parameters
setParameter
in class ParametersHeader
name
- - a String specifying the parameter namevalue
- - a String specifying the parameter value
ParseException
- which signals that an error has been reached
unexpectedly while parsing the parameter name or value.public ContactList getContactList()
public boolean getWildCardFlag()
public String getAction()
public Address getAddress()
getAddress
in interface HeaderAddress
getAddress
in class AddressParametersHeader
public NameValueList getContactParms()
public long getExpires()
getExpires
in interface ContactHeader
public void setExpires(long expiryDeltaSeconds)
setExpires
in interface ContactHeader
expiryDeltaSeconds
- exipry time.public float getQValue()
getQValue
in interface ContactHeader
public void setContactList(ContactList cl)
cl
- ContactList to setpublic void setWildCardFlag(boolean w)
w
- boolean to setpublic void setAddress(Address address)
setAddress
in interface HeaderAddress
setAddress
in class AddressParametersHeader
address
- Address to setpublic void setQValue(float qValue) throws InvalidArgumentException
setQValue
in interface ContactHeader
qValue
- float to set
InvalidArgumentException
- if the q-value parameter value is not
-1
or between 0 and 1
.
|
NIST SIP Parser and Stack (v1.2) API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |