Package org.apache.juneau.http.header
Class Connection
java.lang.Object
org.apache.juneau.http.header.HttpHeaderBean
org.apache.juneau.http.header.HttpStringHeader
org.apache.juneau.http.header.Connection
- All Implemented Interfaces:
HttpHeader
Represents an HTTP Connection header.
Control options for the current connection and list of hop-by-hop request fields.
See Also:
- Since:
- 9.2.1
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConnection(String value) Constructor with an eager value.Connection(Supplier<String> valueSupplier) Constructor with a lazy value supplier. -
Method Summary
Modifier and TypeMethodDescriptionstatic ConnectionStatic factory method with an eager value.static ConnectionStatic 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
-
Connection
Constructor with an eager value.- Parameters:
value- The header value. May benull .
-
Connection
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 .
-