Class JettyClientProperties
java.lang.Object
org.glassfish.jersey.jetty.connector.JettyClientProperties
Configuration options specific to the Client API that utilizes
JettyConnectorProvider.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringA value offalseindicates the client should handle cookies automatically using HttpClient's default cookie policy.static final StringA value offalseindicates the client disable a hostname verification during SSL Handshake.static final StringThe credential provider that should be used to retrieve credentials from a user. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
DISABLE_COOKIES
A value offalseindicates the client should handle cookies automatically using HttpClient's default cookie policy. A value offalsewill cause the client to ignore all cookies. The value MUST be an instance ofBoolean. If the property is absent the default value isfalse- See Also:
-
PREEMPTIVE_BASIC_AUTHENTICATION
The credential provider that should be used to retrieve credentials from a user. If anAuthenticationmechanism is found, it is then used for the given request, returning anAuthentication.Result, which is then stored in theAuthenticationStoreso that subsequent requests can be preemptively authenticated. The value MUST be an instance ofBasicAuthentication. If the property is absent a default provider will be used.- See Also:
-
ENABLE_SSL_HOSTNAME_VERIFICATION
A value offalseindicates the client disable a hostname verification during SSL Handshake. A client will ignore CN value defined in a certificate that is stored in a truststore. The value MUST be an instance ofBoolean. If the property is absent the default value istrue- See Also:
-
-
Constructor Details
-
JettyClientProperties
private JettyClientProperties()Prevents instantiation.
-
-
Method Details
-
getValue
Get the value of the specified property. If the property is not set or the real value type is not compatible with the specified value type, returnsnull.- Type Parameters:
T- Type of the property value.- Parameters:
properties- Map of properties to get the property value from.key- Name of the property.type- Type to retrieve the value as.- Returns:
- Value of the property or
null. - Since:
- 2.8
-