![JAR search and dependency download from the Maven repository](/logo.png)
com.ning.http.client.ProxyServerSelector Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of async-http-client Show documentation
Show all versions of async-http-client Show documentation
Async Http Client library purpose is to allow Java applications to easily execute HTTP requests and
asynchronously process the HTTP responses.
package com.ning.http.client;
import com.ning.http.client.uri.Uri;
/**
* Selector for a proxy server
*/
public interface ProxyServerSelector {
/**
* Select a proxy server to use for the given URI.
*
* @param uri The URI to select a proxy server for.
* @return The proxy server to use, if any. May return null.
*/
ProxyServer select(Uri uri);
/**
* A selector that always selects no proxy.
*/
static final ProxyServerSelector NO_PROXY_SELECTOR = new ProxyServerSelector() {
public ProxyServer select(Uri uri) {
return null;
}
};
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy