/** * Gets the cookies to add to the request. * * @param opts The FileSystem options. * @return the Cookie array. */ public Cookie[] getCookies(final FileSystemOptions opts) { return (Cookie[]) getParam(opts, "cookies"); }
/** * Return the user agent string * * @return User provided User-Agent string, otherwise default of: Jakarta-Commons-VFS */ public String getUserAgent(final FileSystemOptions opts) { final String userAgent = (String) getParam(opts, KEY_USER_AGENT); return userAgent != null ? userAgent : DEFAULT_USER_AGENT; }
/** * Get the proxy authenticator where the system should get the credentials from. * * @param opts The FileSystem options. * @return The UserAuthenticator. */ public UserAuthenticator getProxyAuthenticator(final FileSystemOptions opts) { return (UserAuthenticator) getParam(opts, "proxyAuthenticator"); }
/** * The cookies to add to the request. * * @param opts The FileSystem options. * @return the Cookie array. */ public Cookie[] getCookies(final FileSystemOptions opts) { return (Cookie[]) getParam(opts, "cookies"); }
/** * Get the proxy authenticator where the system should get the credentials from. * * @param opts The FileSystem options. * @return The UserAuthenticator. */ public UserAuthenticator getProxyAuthenticator(final FileSystemOptions opts) { return (UserAuthenticator) getParam(opts, "proxyAuthenticator"); }
/** * The cookies to add to the request. * * @param opts The FileSystem options. * @return the Cookie array. */ public Cookie[] getCookies(final FileSystemOptions opts) { return (Cookie[]) getParam(opts, "cookies"); }
/** * Gets the user agent string * * @param opts the file system options to modify * @return User provided User-Agent string, otherwise default of: Commons-VFS */ public String getUserAgent(final FileSystemOptions opts) { final String userAgent = (String) getParam(opts, KEY_USER_AGENT); return userAgent != null ? userAgent : DEFAULT_USER_AGENT; }
/** * Return the user agent string * * @return User provided User-Agent string, otherwise default of: Jakarta-Commons-VFS */ public String getUserAgent(final FileSystemOptions opts) { final String userAgent = (String) getParam(opts, KEY_USER_AGENT); return userAgent != null ? userAgent : DEFAULT_USER_AGENT; }
/** * Gets the proxy authenticator where the system should get the credentials from. * * @param opts The FileSystem options. * @return The UserAuthenticator. */ public UserAuthenticator getProxyAuthenticator(final FileSystemOptions opts) { return (UserAuthenticator) getParam(opts, "proxyAuthenticator"); }