@Contract(threading=IMMUTABLE) public class BasicHeader extends Object implements Header, Cloneable, Serializable
Header
.Constructor and Description |
---|
BasicHeader(String name,
String value)
Constructs with name and value.
|
Modifier and Type | Method and Description |
---|---|
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() |
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
.Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.