Class HttpHeaderElement
java.lang.Object
org.exoplatform.common.http.client.HttpHeaderElement
This class holds a description of an http header element. It is used by
Util.parseHeader.- Version:
- 0.3-3 06/05/2001
- Author:
- Ronald Tschal�r
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionHttpHeaderElement(String name) Construct an element with the given name.HttpHeaderElement(String name, String value, NVPair[] params) -
Method Summary
-
Constructor Details
-
HttpHeaderElement
Construct an element with the given name. The value and parameters are set to null. This can be used when a dummy element is constructed for comparison or retrieval purposes.- Parameters:
name- the name of the element
-
HttpHeaderElement
- Parameters:
name- the first token in the elementvalue- the value part, or nullparams- the parameters
-
-
Method Details
-
getName
- Returns:
- the name
-
getValue
- Returns:
- the value
-
getParams
- Returns:
- the parameters
-
equals
Two elements are equal if they have the same name. The comparison is case-insensitive. -
toString
-
appendTo
Append this header element to the given buffer. This is basically a more efficient version oftoString()for assembling multiple elements.- Parameters:
buf- the StringBuffer to append this header to- See Also:
-