| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 value| Method Detail | 
|---|
public Object clone()
             throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedException
public HeaderElement[] getElements()
                            throws ParseException
Header
getElements in interface HeaderHeaderElement entries, may be empty, but is never null
ParseException - in case of a parsing errorpublic String getName()
NameValuePair
getName in interface NameValuePairnull.public String getValue()
NameValuePair
getValue in interface NameValuePairnull.public String toString()
toString in class Object| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||