|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectHTTPClient.HttpHeaderElement
This class holds a description of an http header element. It is used
by Util.parseHeader.
Util.parseHeader(java.lang.String),
Util.getElement(java.util.Vector, java.lang.String),
Util.assembleHeader(java.util.Vector)| Constructor Summary | |
HttpHeaderElement(String name)
Construct an element with the given name. |
|
HttpHeaderElement(String name,
String value,
NVPair[] params)
|
|
| Method Summary | |
void |
appendTo(StringBuffer buf)
Append this header element to the given buffer. |
boolean |
equals(Object obj)
Two elements are equal if they have the same name. |
String |
getName()
|
NVPair[] |
getParams()
|
String |
getValue()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public HttpHeaderElement(String name)
name - the name of the element
public HttpHeaderElement(String name,
String value,
NVPair[] params)
name - the first token in the elementvalue - the value part, or nullparams - the parameters| Method Detail |
public String getName()
public String getValue()
public NVPair[] getParams()
public boolean equals(Object obj)
obj - the object to compare with
public String toString()
public void appendTo(StringBuffer buf)
toString() for assembling
multiple elements.
buf - the StringBuffer to append this header totoString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||