Product of NIST/ITL Advanced Networking Technologies Division (ANTD). *
Generic structure for storing name-value pairs.
- M. Ranganathan
New constructor, taking a boolean which is set if the NV pair is a flag
Original constructor, sets isFlagParameter to 'false'
Set the separator for the encoding method below.
A flag that indicates that doublequotes should be put around the value
when encoded (for example name=value when value is doublequoted).
Return true if the value is quoted in doublequotes.
Get the encoded representation of this namevalue object. Added
doublequote for encoding doublequoted values.
Bug: RFC3261 stipulates that an opaque parameter in authenticate header
has to be:
opaque = "opaque" EQUAL quoted-string
so returning just the name is not acceptable. (e.g. LinkSys phones
are picky about this)
- an encoded name value (eg. name=value) string.
Equality comparison predicate.
if (other == null ) return false;
if (this.name == null && that.name != null || this.name != null
if (this.name != null && that.name != null
if (this.value != null && that.value == null || this.value == null
if (this.value == that.value)