Package org.apache.commons.httpclient
Class Header
java.lang.Object
org.apache.commons.httpclient.NameValuePair
org.apache.commons.httpclient.Header
- All Implemented Interfaces:
Serializable
Deprecated.
Jakarta Commons HttpClient 3.x is deprecated in the Jenkins project.
It is not recommended to use it in any new code.
Instead, use HTTP client API plugins as a dependency in your code.
E.g.
Apache HttpComponents Client API 4.x Plugin or
Async HTTP Client Plugin.
An HTTP header.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Returns an array ofHeaderElements constructed from my value.Deprecated.Use #getElementsbooleanDeprecated.Returns the value of the auto-generated header flag.Deprecated.Returns aStringrepresentation of the header.toString()Deprecated.Returns aStringrepresentation of the header.
-
Constructor Details
-
Header
public Header()Deprecated.Default constructor. -
Header
Deprecated.Constructor with name and value- Parameters:
name- the header namevalue- the header value
-
Header
Deprecated.Constructor with name and value- Parameters:
name- the header namevalue- the header valueisAutogenerated- true if the header is autogenerated, false otherwise.- Since:
- 3.0
-
-
Method Details
-
toExternalForm
Deprecated.Returns aStringrepresentation of the header.- Returns:
- stringHEAD
-
toString
Deprecated.Returns aStringrepresentation of the header.- Overrides:
toStringin classNameValuePair- Returns:
- stringHEAD
-
getValues
Deprecated.Use #getElementsReturns an array ofHeaderElements constructed from my value.- Returns:
- an array of header elements
- Throws:
HttpException- if the header cannot be parsed- See Also:
-
getElements
Deprecated.Returns an array ofHeaderElements constructed from my value.- Returns:
- an array of header elements
- Since:
- 3.0
- See Also:
-
isAutogenerated
public boolean isAutogenerated()Deprecated.Returns the value of the auto-generated header flag.- Returns:
- true if the header is autogenerated, false otherwise.
- Since:
- 3.0
-