本文整理了Java中com.gargoylesoftware.htmlunit.WebRequestSettings.setProxyPort()
方法的一些代码示例,展示了WebRequestSettings.setProxyPort()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebRequestSettings.setProxyPort()
方法的具体详情如下:
包路径:com.gargoylesoftware.htmlunit.WebRequestSettings
类名称:WebRequestSettings
方法名:setProxyPort
[英]Sets the proxy port to use.
[中]设置要使用的代理端口。
代码示例来源:origin: org.jenkins-ci/htmlunit
/**
* Instantiates a {@link WebRequestSettings} for the specified URL using the proxy configuration from the
* specified original request.
* @param originalRequest the original request
* @param url the target URL
*/
public WebRequestSettings(final WebRequestSettings originalRequest, final URL url) {
this(url);
setProxyHost(originalRequest.getProxyHost());
setProxyPort(originalRequest.getProxyPort());
}
代码示例来源:origin: net.disy.htmlunit/htmlunit
/**
* Instantiates a {@link WebRequestSettings} for the specified URL using the proxy configuration from the
* specified original request.
* @param originalRequest the original request
* @param url the target URL
*/
public WebRequestSettings(final WebRequestSettings originalRequest, final URL url) {
this(url);
setProxyHost(originalRequest.getProxyHost());
setProxyPort(originalRequest.getProxyPort());
}
代码示例来源:origin: org.jvnet.hudson/htmlunit
/**
* Instantiates a {@link WebRequestSettings} for the specified URL using the proxy configuration from the
* specified original request.
* @param originalRequest the original request
* @param url the target URL
*/
public WebRequestSettings(final WebRequestSettings originalRequest, final URL url) {
this(url);
setProxyHost(originalRequest.getProxyHost());
setProxyPort(originalRequest.getProxyPort());
}
代码示例来源:origin: org.jvnet.hudson/htmlunit
final int colonIndex = value.indexOf(':');
webRequestSettings.setProxyHost(value.substring(0, colonIndex));
webRequestSettings.setProxyPort(Integer.parseInt(value.substring(colonIndex + 1)));
webRequestSettings.setProxyPort(proxyConfig_.getProxyPort());
代码示例来源:origin: org.jenkins-ci/htmlunit
final int colonIndex = value.indexOf(':');
webRequestSettings.setProxyHost(value.substring(0, colonIndex));
webRequestSettings.setProxyPort(Integer.parseInt(value.substring(colonIndex + 1)));
webRequestSettings.setProxyPort(proxyConfig_.getProxyPort());
代码示例来源:origin: net.disy.htmlunit/htmlunit
final int colonIndex = value.indexOf(':');
webRequestSettings.setProxyHost(value.substring(0, colonIndex));
webRequestSettings.setProxyPort(Integer.parseInt(value.substring(colonIndex + 1)));
webRequestSettings.setProxyPort(proxyConfig_.getProxyPort());
内容来源于网络,如有侵权,请联系作者删除!