|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.commons.httpclient.NameValuePair | +--org.apache.commons.httpclient.Header
An HTTP header.
Constructor Summary | |
Header()
Default constructor. |
|
Header(String name,
String value)
Constructor with name and value |
|
Header(String name,
String value,
boolean isAutogenerated)
Constructor with name and value |
Method Summary | |
HeaderElement[] |
getElements()
Returns an array of HeaderElement s
constructed from my value. |
HeaderElement[] |
getValues()
Deprecated. Use #getElements |
boolean |
isAutogenerated()
Returns the value of the auto-generated header flag. |
String |
toExternalForm()
Returns a String representation of the header. |
String |
toString()
Returns a String representation of the header. |
Methods inherited from class org.apache.commons.httpclient.NameValuePair |
equals, getName, getValue, hashCode, setName, setValue |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Header()
public Header(String name, String value)
name
- the header namevalue
- the header valuepublic Header(String name, String value, boolean isAutogenerated)
name
- the header namevalue
- the header valueisAutogenerated
- true if the header is autogenerated,
false otherwise.Method Detail |
public String toExternalForm()
String
representation of the header.public String toString()
String
representation of the header.toString
in class NameValuePair
public HeaderElement[] getValues() throws HttpException
HeaderElement
s
constructed from my value.HttpException
- if the header cannot be parsedHeaderElement.parse(java.lang.String)
public HeaderElement[] getElements()
HeaderElement
s
constructed from my value.HeaderElement.parseElements(String)
public boolean isAutogenerated()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |