Class JettyClientProperties


  • public final class JettyClientProperties
    extends java.lang.Object
    Configuration options specific to the Client API that utilizes JettyConnectorProvider.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String DISABLE_COOKIES
      A value of false indicates the client should handle cookies automatically using HttpClient's default cookie policy.
      static java.lang.String ENABLE_SSL_HOSTNAME_VERIFICATION
      A value of false indicates the client disable a hostname verification during SSL Handshake.
      static java.lang.String PREEMPTIVE_BASIC_AUTHENTICATION
      The credential provider that should be used to retrieve credentials from a user.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private JettyClientProperties()
      Prevents instantiation.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> T getValue​(java.util.Map<java.lang.String,​?> properties, java.lang.String key, java.lang.Class<T> type)
      Get the value of the specified property.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DISABLE_COOKIES

        public static final java.lang.String DISABLE_COOKIES
        A value of false indicates the client should handle cookies automatically using HttpClient's default cookie policy. A value of false will cause the client to ignore all cookies.

        The value MUST be an instance of Boolean. If the property is absent the default value is false

        See Also:
        Constant Field Values
      • PREEMPTIVE_BASIC_AUTHENTICATION

        public static final java.lang.String PREEMPTIVE_BASIC_AUTHENTICATION
        The credential provider that should be used to retrieve credentials from a user. If an Authentication mechanism is found, it is then used for the given request, returning an Authentication.Result, which is then stored in the AuthenticationStore so that subsequent requests can be preemptively authenticated.

        The value MUST be an instance of BasicAuthentication. If the property is absent a default provider will be used.

        See Also:
        Constant Field Values
      • ENABLE_SSL_HOSTNAME_VERIFICATION

        public static final java.lang.String ENABLE_SSL_HOSTNAME_VERIFICATION
        A value of false indicates 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 of Boolean. If the property is absent the default value is true

        See Also:
        Constant Field Values
    • Constructor Detail

      • JettyClientProperties

        private JettyClientProperties()
        Prevents instantiation.
    • Method Detail

      • getValue

        public static <T> T getValue​(java.util.Map<java.lang.String,​?> properties,
                                     java.lang.String key,
                                     java.lang.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, returns null.
        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