Package org.apache.http.message
Class BasicHeader
- java.lang.Object
-
- org.apache.http.message.BasicHeader
-
-
Constructor Summary
Constructors Constructor Description BasicHeader(java.lang.String name, java.lang.String value)
Constructor with name and value
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
HeaderElement[]
getElements()
Parses the value.java.lang.String
getName()
Get the name of the Header.java.lang.String
getValue()
Get the value of the Header.java.lang.String
toString()
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:Header
Get the name of the Header.
-
getValue
public java.lang.String getValue()
Description copied from interface:Header
Get the value of the Header.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getElements
public HeaderElement[] getElements() throws ParseException
Description copied from interface:Header
Parses the value.- Specified by:
getElements
in interfaceHeader
- Returns:
- an array of
HeaderElement
entries, may be empty, but is nevernull
- Throws:
ParseException
- in case of a parsing error
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
- Throws:
java.lang.CloneNotSupportedException
-
-