Class JettyClientProperties
- java.lang.Object
-
- org.glassfish.jersey.jetty.connector.JettyClientProperties
-
public final class JettyClientProperties extends Object
Configuration options specific to the Client API that utilizesJettyConnectorProvider.- Author:
- Arul Dhesiaseelan (aruld at acm.org)
-
-
Field Summary
Fields Modifier and Type Field Description static StringDISABLE_COOKIESA value offalseindicates the client should handle cookies automatically using HttpClient's default cookie policy.static StringENABLE_SSL_HOSTNAME_VERIFICATIONA value offalseindicates the client disable a hostname verification during SSL Handshake.static StringPREEMPTIVE_BASIC_AUTHENTICATIONThe credential provider that should be used to retrieve credentials from a user.static StringSYNC_LISTENER_RESPONSE_MAX_SIZEOverrides the default Jetty synchronous listener response max buffer size.static StringTOTAL_TIMEOUTTotal timeout interval for request/response conversation, in milliseconds.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> TgetValue(Map<String,?> properties, String key, Class<T> type)Get the value of the specified property.
-
-
-
Field Detail
-
DISABLE_COOKIES
public static final String 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:
- Constant Field Values
-
PREEMPTIVE_BASIC_AUTHENTICATION
public static final String 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:
- Constant Field Values
-
ENABLE_SSL_HOSTNAME_VERIFICATION
public static final String 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:
- Constant Field Values
-
SYNC_LISTENER_RESPONSE_MAX_SIZE
public static final String SYNC_LISTENER_RESPONSE_MAX_SIZE
Overrides the default Jetty synchronous listener response max buffer size. In practise, this allows you to read larger responses. Size in bytes. If the property is absent, the value is such as specified by Jetty (currently 2MiB).- See Also:
- Constant Field Values
-
TOTAL_TIMEOUT
public static final String TOTAL_TIMEOUT
Total timeout interval for request/response conversation, in milliseconds. Opposed toClientProperties.READ_TIMEOUT.The value MUST be an instance convertible to
Integer. The value of zero (0) is equivalent to an interval of infinity.The default value is zero (infinity).
The name of the configuration property is "jersey.config.jetty.client.totalTimeout".
- Since:
- 2.37
- See Also:
- Constant Field Values
-
-
Method Detail
-
getValue
public static <T> T getValue(Map<String,?> properties, String key, Class<T> type)
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
-
-