本文整理了Java中com.ning.http.client.AsyncHttpClientConfig.getProxyServerSelector()
方法的一些代码示例,展示了AsyncHttpClientConfig.getProxyServerSelector()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AsyncHttpClientConfig.getProxyServerSelector()
方法的具体详情如下:
包路径:com.ning.http.client.AsyncHttpClientConfig
类名称:AsyncHttpClientConfig
方法名:getProxyServerSelector
[英]An instance of com.ning.http.client.ProxyServer used by an AsyncHttpClient
[中]com的一个实例。宁。http。客户AsyncHttpClient使用的ProxyServer
代码示例来源:origin: com.ning/async-http-client
/**
* @param config the global config
* @param request the request
* @return the proxy server to be used for this request (can be null)
*/
public static ProxyServer getProxyServer(AsyncHttpClientConfig config, Request request) {
ProxyServer proxyServer = request.getProxyServer();
if (proxyServer == null) {
ProxyServerSelector selector = config.getProxyServerSelector();
if (selector != null) {
proxyServer = selector.select(request.getUri());
}
}
return ProxyUtils.avoidProxy(proxyServer, request) ? null : proxyServer;
}
代码示例来源:origin: com.ning/async-http-client
maxRedirects = prototype.getMaxRedirects();
maxConnections = prototype.getMaxConnections();
proxyServerSelector = prototype.getProxyServerSelector();
realm = prototype.getRealm();
requestTimeout = prototype.getRequestTimeout();
代码示例来源:origin: io.gatling/async-http-client
/**
* @param config the global config
* @param request the request
* @return the proxy server to be used for this request (can be null)
*/
public static ProxyServer getProxyServer(AsyncHttpClientConfig config, Request request) {
ProxyServer proxyServer = request.getProxyServer();
if (proxyServer == null) {
ProxyServerSelector selector = config.getProxyServerSelector();
if (selector != null) {
proxyServer = selector.select(request.getURI());
}
}
return ProxyUtils.avoidProxy(proxyServer, request) ? null : proxyServer;
}
代码示例来源:origin: javaee/grizzly-ahc
/**
* @param config the global config
* @param request the request
* @return the proxy server to be used for this request (can be null)
*/
public static ProxyServer getProxyServer(AsyncHttpClientConfig config, Request request) {
ProxyServer proxyServer = request.getProxyServer();
if (proxyServer == null) {
ProxyServerSelector selector = config.getProxyServerSelector();
if (selector != null) {
proxyServer = selector.select(request.getUri());
}
}
return ProxyUtils.avoidProxy(proxyServer, request) ? null : proxyServer;
}
代码示例来源:origin: org.glassfish.grizzly/grizzly-http-client
/**
* @param config the global config
* @param request the request
* @return the proxy server to be used for this request (can be null)
*/
public static ProxyServer getProxyServer(AsyncHttpClientConfig config, Request request) {
ProxyServer proxyServer = request.getProxyServer();
if (proxyServer == null) {
ProxyServerSelector selector = config.getProxyServerSelector();
if (selector != null) {
proxyServer = selector.select(request.getUri());
}
}
return ProxyUtils.avoidProxy(proxyServer, request) ? null : proxyServer;
}
代码示例来源:origin: io.gatling/async-http-client
maxRedirects = prototype.getMaxRedirects();
maxConnections = prototype.getMaxConnections();
proxyServerSelector = prototype.getProxyServerSelector();
realm = prototype.getRealm();
requestTimeout = prototype.getRequestTimeout();
代码示例来源:origin: javaee/grizzly-ahc
maxRedirects = prototype.getMaxRedirects();
maxConnections = prototype.getMaxConnections();
proxyServerSelector = prototype.getProxyServerSelector();
realm = prototype.getRealm();
requestTimeout = prototype.getRequestTimeout();
代码示例来源:origin: org.glassfish.grizzly/grizzly-http-client
maxRedirects = prototype.getMaxRedirects();
maxConnections = prototype.getMaxConnections();
proxyServerSelector = prototype.getProxyServerSelector();
realm = prototype.getRealm();
requestTimeout = prototype.getRequestTimeout();
内容来源于网络,如有侵权,请联系作者删除!