/** * Set the proxy authenticator where the system should get the credentials from. * * @param opts The FileSystem options. * @param authenticator The UserAuthenticator. */ public void setProxyAuthenticator(final FileSystemOptions opts, final UserAuthenticator authenticator) { setParam(opts, "proxyAuthenticator", authenticator); }
/** * Set the proxy authenticator where the system should get the credentials from. * * @param opts The FileSystem options. * @param authenticator The UserAuthenticator. */ public void setProxyAuthenticator(final FileSystemOptions opts, final UserAuthenticator authenticator) { setParam(opts, "proxyAuthenticator", authenticator); }
/** * Sets the charset used for url encoding.<br> * * @param opts The FileSystem options. * @param chaset the chaset */ public void setUrlCharset(final FileSystemOptions opts, final String chaset) { setParam(opts, "urlCharset", chaset); }
/** * Set the charset used for url encoding.<br> * * @param opts The FileSystem options. * @param chaset the chaset */ public void setUrlCharset(final FileSystemOptions opts, final String chaset) { setParam(opts, "urlCharset", chaset); }
/** * Sets whether to follow redirects for the connection. * * @param opts The FileSystem options. * @param redirect {@code true} to follow redirects, {@code false} not to. * @see #setFollowRedirect * @since 2.1 */ public void setFollowRedirect(final FileSystemOptions opts, final boolean redirect) { setParam(opts, KEY_FOLLOW_REDIRECT, redirect); }
/** * Set the charset used for url encoding.<br> * * @param opts The FileSystem options. * @param chaset the chaset */ public void setUrlCharset(final FileSystemOptions opts, final String chaset) { setParam(opts, "urlCharset", chaset); }
/** * Set the proxy to use for http connection.<br> * You have to set the ProxyPort too if you would like to have the proxy really used. * * @param opts The FileSystem options. * @param proxyHost the host * @see #setProxyPort */ public void setProxyHost(final FileSystemOptions opts, final String proxyHost) { setParam(opts, "proxyHost", proxyHost); }
/** * Sets whether to follow redirects for the connection. * * @param opts The FileSystem options. * @param redirect {@code true} to follow redirects, {@code false} not to. * @see #setFollowRedirect * @since 2.1 */ public void setFollowRedirect(final FileSystemOptions opts, final boolean redirect) { setParam(opts, KEY_FOLLOW_REDIRECT, redirect); }
/** * Assign the user agent to attach to the outgoing http methods * * @param userAgent User Agent String */ public void setUserAgent(final FileSystemOptions opts, final String userAgent) { setParam(opts, "userAgent", userAgent); }
/** * The cookies to add to the request. * * @param opts The FileSystem options. * @param cookies An array of Cookies. */ public void setCookies(final FileSystemOptions opts, final Cookie[] cookies) { setParam(opts, "cookies", cookies); }
/** * The cookies to add to the request. * * @param opts The FileSystem options. * @param cookies An array of Cookies. */ public void setCookies(final FileSystemOptions opts, final Cookie[] cookies) { setParam(opts, "cookies", cookies); }
/** * The maximum number of connections allowed. * * @param opts The FileSystem options. * @param maxTotalConnections The maximum number of connections. * @since 2.0 */ public void setMaxTotalConnections(final FileSystemOptions opts, final int maxTotalConnections) { setParam(opts, HttpConnectionManagerParams.MAX_TOTAL_CONNECTIONS, Integer.valueOf(maxTotalConnections)); }
/** * Sets the given value for preemptive HTTP authentication (using BASIC) on the given FileSystemOptions object. * Defaults to false if not set. It may be appropriate to set to true in cases when the resulting chattiness of the * conversation outweighs any architectural desire to use a stronger authentication scheme than basic/preemptive. * * @param opts The FileSystemOptions. * @param preemptiveAuth the desired setting; true=enabled and false=disabled. */ public void setPreemptiveAuth(final FileSystemOptions opts, final boolean preemptiveAuth) { setParam(opts, KEY_PREEMPTIVE_AUTHENTICATION, Boolean.valueOf(preemptiveAuth)); }
/** * The connection timeout. * * @param opts The FileSystem options. * @param connectionTimeout The connection timeout. * @since 2.1 */ public void setConnectionTimeout(final FileSystemOptions opts, final int connectionTimeout) { setParam(opts, HttpConnectionParams.CONNECTION_TIMEOUT, Integer.valueOf(connectionTimeout)); }
/** * The maximum number of connections allowed to any host. * * @param opts The FileSystem options. * @param maxHostConnections The maximum number of connections to a host. * @since 2.0 */ public void setMaxConnectionsPerHost(final FileSystemOptions opts, final int maxHostConnections) { setParam(opts, HttpConnectionManagerParams.MAX_HOST_CONNECTIONS, Integer.valueOf(maxHostConnections)); }
/** * The maximum number of connections allowed to any host. * * @param opts The FileSystem options. * @param maxHostConnections The maximum number of connections to a host. * @since 2.0 */ public void setMaxConnectionsPerHost(final FileSystemOptions opts, final int maxHostConnections) { setParam(opts, HttpConnectionManagerParams.MAX_HOST_CONNECTIONS, Integer.valueOf(maxHostConnections)); }
/** * Sets the maximum number of connections allowed. * * @param opts The FileSystem options. * @param maxTotalConnections The maximum number of connections. * @since 2.0 */ public void setMaxTotalConnections(final FileSystemOptions opts, final int maxTotalConnections) { setParam(opts, HttpConnectionManagerParams.MAX_TOTAL_CONNECTIONS, Integer.valueOf(maxTotalConnections)); }
/** * The connection timeout. * * @param opts The FileSystem options. * @param connectionTimeout The connection timeout. * @since 2.1 */ public void setConnectionTimeout(final FileSystemOptions opts, final int connectionTimeout) { setParam(opts, HttpConnectionParams.CONNECTION_TIMEOUT, Integer.valueOf(connectionTimeout)); }
/** * Set the proxy-port to use for http connection. You have to set the ProxyHost too if you would like to have the * proxy really used. * * @param opts The FileSystem options. * @param proxyPort the port * @see #setProxyHost */ public void setProxyPort(final FileSystemOptions opts, final int proxyPort) { setParam(opts, "proxyPort", Integer.valueOf(proxyPort)); }
/** * The socket timeout. * * @param opts The FileSystem options. * @param soTimeout socket timeout. * @since 2.1 */ public void setSoTimeout(final FileSystemOptions opts, final int soTimeout) { setParam(opts, HttpConnectionParams.SO_TIMEOUT, Integer.valueOf(soTimeout)); }