|
NIST-SIP: The Reference Implementation for JAIN-SIP 1.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgov.nist.core.GenericObject
gov.nist.javax.sip.header.SIPObject
gov.nist.javax.sip.header.SIPHeader
gov.nist.javax.sip.header.ParametersHeader
public abstract class ParametersHeader
Parameters header. Suitable for extension by headers that have parameters.
| Field Summary |
|---|
| 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, EXPIRES, FROM, IN_REPLY_TO, JOIN, MAX_FORWARDS, MIME_VERSION, MIN_EXPIRES, MIN_SE, ORGANIZATION, PRIORITY, PROXY_AUTHENTICATE, PROXY_AUTHORIZATION, PROXY_REQUIRE, RACK, REASON, RECORD_ROUTE, REFERRED_BY, REPLACES, REPLY_TO, REQUIRE, RETRY_AFTER, ROUTE, RSEQ, SERVER, SESSION_EXPIRES, SIP_ETAG, SIP_IF_MATCH, SUBJECT, SUBSCRIPTION_STATE, SUPPORTED, TIMESTAMP, TO, UNSUPPORTED, USER_AGENT, VIA, WARNING, WWW_AUTHENTICATE |
| Method Summary | |
|---|---|
Object |
clone()
Clones this object. |
String |
getMultiParameter(String name)
Returns the parameter name |
Iterator<String> |
getMultiParameterNames()
Returns an Iterator over the names (Strings) of all parameters present in this ParametersHeader. |
gov.nist.core.DuplicateNameValueList |
getMultiParameters()
|
Object |
getMultiParameterValue(String name)
Return the parameter as an object (dont convert to string). |
gov.nist.core.NameValue |
getNameValue(String parameterName)
This is for the benifit of the TCK. |
String |
getParameter(String name)
Returns the value of the named parameter, or null if it is not set. |
String |
getParameter(String name,
boolean stripQuotes)
Returns the value of the named parameter, or null if it is not set. |
Iterator<String> |
getParameterNames()
Returns an Iterator over the names (Strings) of all parameters present in this ParametersHeader. |
gov.nist.core.NameValueList |
getParameters()
get the parameter list. |
Object |
getParameterValue(String name)
Return the parameter as an object (dont convert to string). |
boolean |
hasMultiParameter(String parameterName)
Return true if has a parameter. |
boolean |
hasMultiParameters()
Return true if you have a parameter and false otherwise. |
boolean |
hasParameter(String parameterName)
Return true if has a parameter. |
boolean |
hasParameters()
Return true if you have a parameter and false otherwise. |
void |
removeMultiParameter(String name)
Removes the specified parameter from Parameters of this ParametersHeader. |
void |
removeMultiParameters()
Remove all parameters. |
void |
removeParameter(String name)
Removes the specified parameter from Parameters of this ParametersHeader. |
void |
removeParameters()
Remove all parameters. |
void |
setMultiParameter(gov.nist.core.NameValue nameValue)
Set the parameter given a name and value. |
void |
setMultiParameter(String name,
String value)
Introduced specifically for the P-Charging-Function-Addresses Header and all other headers that may have multiple header parameters of the same name, but with multiple possible values. |
void |
setParameter(gov.nist.core.NameValue nameValue)
Set the parameter given a name and value. |
void |
setParameter(String name,
String value)
Sets the value of the specified parameter. |
void |
setParameters(gov.nist.core.NameValueList parameters)
Set the parameter list. |
void |
setQuotedParameter(String name,
String value)
Sets the value of the specified parameter. |
| Methods inherited from class gov.nist.javax.sip.header.SIPHeader |
|---|
encode, encode, getHeaderName, getHeaderValue, getName, getValue, hashCode, isHeaderList, setHeaderName, toString |
| Methods inherited from class gov.nist.javax.sip.header.SIPObject |
|---|
dbgPrint, debugDump, debugDump, equals, match |
| Methods inherited from class gov.nist.core.GenericObject |
|---|
getClassFromName, getMatcher, isMySubclass, makeClone, merge, setMatcher |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public String getParameter(String name)
Parameters
getParameter in interface Parametersname - name of parameter to retrieve
public String getParameter(String name,
boolean stripQuotes)
ParametersExt
getParameter in interface ParametersExtname - name of parameter to retrievestripQuotes - will return the value of the parameter as it has been received when the message came into the stack
public Object getParameterValue(String name)
name - is the name of the parameter to get.
public Iterator<String> getParameterNames()
getParameterNames in interface Parameterspublic boolean hasParameters()
public void removeParameter(String name)
removeParameter in interface Parametersname - - a String specifying the parameter name
public void setParameter(String name,
String value)
throws ParseException
setParameter in interface Parametersname - - 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 void setQuotedParameter(String name,
String value)
throws ParseException
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 boolean hasParameter(String parameterName)
parameterName - is the name of the parameter.
public void removeParameters()
public gov.nist.core.NameValueList getParameters()
public void setParameter(gov.nist.core.NameValue nameValue)
nameValue - - the name value of the parameter to set.public void setParameters(gov.nist.core.NameValueList parameters)
parameters - The name value list to set as the parameter list.public gov.nist.core.NameValue getNameValue(String parameterName)
public Object clone()
gov.nist.core.GenericObject
clone in interface Headerclone in class gov.nist.core.GenericObject
public void setMultiParameter(String name,
String value)
name - of the parametervalue - of the parameterpublic void setMultiParameter(gov.nist.core.NameValue nameValue)
nameValue - - the name value of the parameter to set.public String getMultiParameter(String name)
name -
public gov.nist.core.DuplicateNameValueList getMultiParameters()
public Object getMultiParameterValue(String name)
name - is the name of the parameter to get.
public Iterator<String> getMultiParameterNames()
public boolean hasMultiParameters()
public void removeMultiParameter(String name)
name - - a String specifying the parameter namepublic boolean hasMultiParameter(String parameterName)
parameterName - is the name of the parameter.
public void removeMultiParameters()
|
NIST-SIP: The Reference Implementation for JAIN-SIP 1.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||