public class HttpHeaderElement
extends java.lang.Object
Util.parseHeader
.Util.parseHeader(java.lang.String)
,
Util.getElement(java.util.Vector, java.lang.String)
,
Util.assembleHeader(java.util.Vector)
Constructor and Description |
---|
HttpHeaderElement(java.lang.String name)
Construct an element with the given name.
|
HttpHeaderElement(java.lang.String name,
java.lang.String value,
NVPair[] params) |
Modifier and Type | Method and Description |
---|---|
void |
appendTo(java.lang.StringBuffer buf)
Append this header element to the given buffer.
|
boolean |
equals(java.lang.Object obj)
Two elements are equal if they have the same name.
|
java.lang.String |
getName() |
NVPair[] |
getParams() |
java.lang.String |
getValue() |
java.lang.String |
toString() |
public HttpHeaderElement(java.lang.String name)
name
- the name of the elementpublic HttpHeaderElement(java.lang.String name, java.lang.String value, NVPair[] params)
name
- the first token in the elementvalue
- the value part, or nullparams
- the parameterspublic java.lang.String getName()
public java.lang.String getValue()
public NVPair[] getParams()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object to compare withpublic java.lang.String toString()
toString
in class java.lang.Object
public void appendTo(java.lang.StringBuffer buf)
toString()
for assembling
multiple elements.buf
- the StringBuffer to append this header totoString()