@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 ObjectCloneNotSupportedExceptionpublic HeaderElement[] getElements() throws ParseException
HeadergetElements in interface HeaderHeaderElement entries, may be empty, but is never nullParseException - in case of a parsing errorpublic String getName()
NameValuePairgetName in interface NameValuePairnull.public String getValue()
NameValuePairgetValue in interface NameValuePairnull.Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.