Class DefaultConfigurationProvider

  • All Implemented Interfaces:
    ConfigurationProvider

    public class DefaultConfigurationProvider
    extends MapConfigurationProvider
    A simple implementation of the ConfigurationProvider interface that exposes a set of default configuration values used by the comm framework when a configuration provider is not supplied. One reason I do this here rather then relying entirely on in-line defaults (which still need to exist) is to centralize where these default values live.

    Author:
    Todd S. Murchison
    • Field Detail

      • KeyRedirectLimit

        public static final String KeyRedirectLimit
        The value mapped to this key defines the maximum number of unique redirects a request can result in before giving up.
        See Also:
        Constant Field Values
      • ValueRedirectLimit

        public static final int ValueRedirectLimit
        The default value for the maximum number of unique redirects a request can result in before giving up.
        See Also:
        Constant Field Values
      • KeyMaxSimultaneousRequests

        public static final String KeyMaxSimultaneousRequests
        The value mapped to this key defines the maximum number of simultaneous requests that the comm framework will attempt to process at the same time.
        See Also:
        Constant Field Values
      • ValueMaxSimultaneousRequests

        public static final int ValueMaxSimultaneousRequests
        The default value for the maximum number of simultaneous requests that the comm framework will attempt to process at the same time.
        See Also:
        Constant Field Values
      • KeyConnectTimeoutMilliseconds

        public static final String KeyConnectTimeoutMilliseconds
        The value mapped to this key defines the timeout value when waiting for connections to be established.
        See Also:
        Constant Field Values
      • ValueConnectTimeoutMilliseconds

        public static final int ValueConnectTimeoutMilliseconds
        The default value for the timeout value when waiting for connections to be established.
        See Also:
        Constant Field Values
      • KeyReadTimeoutMilliseconds

        public static final String KeyReadTimeoutMilliseconds
        The value mapped to this key defines the timeout value when waiting for read responses.
        See Also:
        Constant Field Values
      • ValueReadTimeoutMilliseconds

        public static final int ValueReadTimeoutMilliseconds
        The default value for the timeout value when waiting for read responses.
        See Also:
        Constant Field Values
      • KeyDisableSSLCertChecking

        public static final String KeyDisableSSLCertChecking
        If set to true invalid SSL certificates are accepted. In general this should never be done accept for development and testing purposes.
        See Also:
        Constant Field Values
      • ValueDisableSSLCertChecking

        public static final boolean ValueDisableSSLCertChecking
        The default value for if invalid SSL certificates are accepted.
        See Also:
        Constant Field Values
      • KeyUseBuiltInHttpURLConnectionRedirectionSupport

        public static final String KeyUseBuiltInHttpURLConnectionRedirectionSupport
        The Comm Framework provides support for request redirection based on response (301, 302, 303). Depending on Java version, platform, etc. implementers may prefer to make use of Java's built in redirection support as provided by the java.net classes. If this config value is set to false (the default) then redirection is provided by the Comm Framework, otherwise redirection is provided by java.net.
        See Also:
        Constant Field Values
      • ValueUseBuiltInHttpURLConnectionRedirectionSupport

        public static final boolean ValueUseBuiltInHttpURLConnectionRedirectionSupport
        The default value for what request redirection support to use.
        See Also:
        Constant Field Values
    • Constructor Detail

      • DefaultConfigurationProvider

        public DefaultConfigurationProvider()