Class DefaultHttpDataSourceFactory

    • Constructor Detail

      • DefaultHttpDataSourceFactory

        public DefaultHttpDataSourceFactory​(@Nullable
                                            String userAgent,
                                            int connectTimeoutMillis,
                                            int readTimeoutMillis,
                                            boolean allowCrossProtocolRedirects)
        Deprecated.
        Parameters:
        userAgent - The user agent that will be used, or null to use the default user agent of the underlying platform.
        connectTimeoutMillis - The connection timeout that should be used when requesting remote data, in milliseconds. A timeout of zero is interpreted as an infinite timeout.
        readTimeoutMillis - The read timeout that should be used when requesting remote data, in milliseconds. A timeout of zero is interpreted as an infinite timeout.
        allowCrossProtocolRedirects - Whether cross-protocol redirects (i.e. redirects from HTTP to HTTPS and vice versa) are enabled.
      • DefaultHttpDataSourceFactory

        public DefaultHttpDataSourceFactory​(@Nullable
                                            String userAgent,
                                            @Nullable
                                            TransferListener listener,
                                            int connectTimeoutMillis,
                                            int readTimeoutMillis,
                                            boolean allowCrossProtocolRedirects)
        Deprecated.
        Parameters:
        userAgent - The user agent that will be used, or null to use the default user agent of the underlying platform.
        listener - An optional listener.
        connectTimeoutMillis - The connection timeout that should be used when requesting remote data, in milliseconds. A timeout of zero is interpreted as an infinite timeout.
        readTimeoutMillis - The read timeout that should be used when requesting remote data, in milliseconds. A timeout of zero is interpreted as an infinite timeout.
        allowCrossProtocolRedirects - Whether cross-protocol redirects (i.e. redirects from HTTP to HTTPS and vice versa) are enabled.