@Contract(threading=IMMUTABLE) public class BasicHeader extends Object implements Header, Cloneable, Serializable
Header
.Modifier and Type | Field and Description |
---|---|
private String |
name |
private static long |
serialVersionUID |
private String |
value |
Constructor and Description |
---|
BasicHeader(String name,
String value)
Constructor with name and value
|
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
HeaderElement[] |
getElements()
Parses the value.
|
String |
getName()
Get the name of the Header.
|
String |
getValue()
Get the value of the Header.
|
String |
toString() |
private static final long serialVersionUID
public BasicHeader(String name, String value)
name
- the header namevalue
- the header valuepublic String getName()
Header
public String getValue()
Header
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 Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses