Package org.apache.http.message
Class BasicHeader
java.lang.Object
org.apache.http.message.BasicHeader
- All Implemented Interfaces:
Serializable,Cloneable,Header,NameValuePair
@Contract(threading=IMMUTABLE)
public class BasicHeader
extends Object
implements Header, Cloneable, Serializable
Implements a basic
Header.- Since:
- 4.0
- See Also:
-
Constructor Details
-
BasicHeader
Constructs with name and value.- Parameters:
name- the header namevalue- the header value
-
-
Method Details
-
clone
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
getElements
Description copied from interface:HeaderParses the value.- Specified by:
getElementsin interfaceHeader- Returns:
- an array of
HeaderElemententries, may be empty, but is nevernull - Throws:
ParseException- in case of a parsing error
-
getName
Description copied from interface:NameValuePairGets the name of this pair.- Specified by:
getNamein interfaceNameValuePair- Returns:
- the name of this pair, never
null.
-
getValue
Description copied from interface:NameValuePairGets the value of this pair.- Specified by:
getValuein interfaceNameValuePair- Returns:
- the value of this pair, may be
null.
-
toString
-