Package org.apache.juneau.http.header
Class ClientVersion
java.lang.Object
org.apache.juneau.http.header.HttpHeaderBean
org.apache.juneau.http.header.HttpStringHeader
org.apache.juneau.http.header.ClientVersion
- All Implemented Interfaces:
HttpHeader
Represents an HTTP Client-Version header.
Juneau-specific header that identifies the version of a client.
See Also:
- Since:
- 9.2.1
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionClientVersion(String value) Constructor with an eager value.ClientVersion(Supplier<String> valueSupplier) Constructor with a lazy value supplier. -
Method Summary
Modifier and TypeMethodDescriptionstatic ClientVersionStatic factory method with an eager value.static ClientVersionStatic factory method with a lazy value supplier.Methods inherited from class org.apache.juneau.http.header.HttpStringHeader
of, of, ofPairMethods inherited from class org.apache.juneau.http.header.HttpHeaderBean
equals, equalsIgnoreCase, getName, getValue, hashCode, toString
-
Field Details
-
NAME
The header name- See Also:
-
-
Constructor Details
-
ClientVersion
Constructor with an eager value.- Parameters:
value- The header value. May benull .
-
ClientVersion
Constructor with a lazy value supplier.- Parameters:
valueSupplier- Supplier for the header value. Must not benull .
-
-
Method Details
-
of
Static factory method with an eager value.- Parameters:
value- The header value. May benull .- Returns:
- A new instance. Never
null .
-
of
Static factory method with a lazy value supplier.- Parameters:
valueSupplier- Supplier for the header value. Must not benull .- Returns:
- A new instance. Never
null .
-