|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.http.message.BasicHeader
@Contract(threading=IMMUTABLE) public class BasicHeader
Implements a basic Header
.
Constructor Summary | |
---|---|
BasicHeader(String name,
String value)
Constructs with name and value. |
Method Summary | |
---|---|
Object |
clone()
|
HeaderElement[] |
getElements()
Parses the value. |
String |
getName()
Gets the name of this pair. |
String |
getValue()
Gets the value of this pair. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BasicHeader(String name, String value)
name
- the header namevalue
- the header valueMethod Detail |
---|
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public HeaderElement[] getElements() throws ParseException
Header
getElements
in interface Header
HeaderElement
entries, may be empty, but is never null
ParseException
- in case of a parsing errorpublic String getName()
NameValuePair
getName
in interface NameValuePair
null
.public String getValue()
NameValuePair
getValue
in interface NameValuePair
null
.public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |