public class Header extends NameValuePair
An HTTP header.
Constructor and Description |
---|
Header()
Default constructor.
|
Header(String name,
String value)
Constructor with name and value
|
Header(String name,
String value,
boolean isAutogenerated)
Constructor with name and value
|
Modifier and Type | Method and Description |
---|---|
HeaderElement[] |
getElements()
Returns an array of
HeaderElement s
constructed from my value. |
HeaderElement[] |
getValues()
Deprecated.
Use #getElements
|
boolean |
isAutogenerated()
Returns the value of the auto-generated header flag.
|
String |
toExternalForm()
Returns a
String representation of the header. |
String |
toString()
Returns a
String representation of the header. |
public Header()
public Header(String name, String value)
name
- the header namevalue
- the header valuepublic String toExternalForm()
String
representation of the header.public String toString()
String
representation of the header.toString
in class NameValuePair
public HeaderElement[] getValues() throws HttpException
HeaderElement
s
constructed from my value.HttpException
- if the header cannot be parsedHeaderElement.parse(java.lang.String)
public HeaderElement[] getElements()
HeaderElement
s
constructed from my value.HeaderElement.parseElements(String)
public boolean isAutogenerated()
Copyright © 2010 - 2020 Adobe. All Rights Reserved