|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.lastbamboo.common.sip.stack.message.header.SipHeaderValueImpl
public class SipHeaderValueImpl
Class representing a single SIP header value. If a SIP header contains multiple values, it will contain multiple instances of this class.
| Constructor Summary | |
|---|---|
SipHeaderValueImpl(String valueString)
Creates a new SIP header value with the specified string. |
|
SipHeaderValueImpl(String baseValue,
Map<String,String> params)
Creates a new header value with the specified base value and the specified parameters. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
String |
getBaseValue()
Accessor for the header value with no parameters. |
Map<String,String> |
getParams()
Accessor for the map of header value parameters. |
String |
getParamValue(String paramName)
Accessor for the value of the specified parameter. |
int |
hashCode()
|
boolean |
hasParam(String paramName)
Determines whether this header value contains the specified parameter name. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SipHeaderValueImpl(String valueString)
throws IOException
valueString - The header value as a string.
IOException - If the header value does not match the expected
syntax.
public SipHeaderValueImpl(String baseValue,
Map<String,String> params)
baseValue - The base value of the header with no parameters.params - The header value parameters.| Method Detail |
|---|
public Map<String,String> getParams()
SipHeaderValue
getParams in interface SipHeaderValuepublic String getBaseValue()
SipHeaderValue
getBaseValue in interface SipHeaderValuepublic boolean hasParam(String paramName)
SipHeaderValue
hasParam in interface SipHeaderValueparamName - The name of the specified parameter.
true if the value has a parameter of the specified
name, otherwise false.public String getParamValue(String paramName)
SipHeaderValue
getParamValue in interface SipHeaderValueparamName - The name of the parameter to access.
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||