com.gargoylesoftware.htmlunit.WebRequestSettings.setProxyPort()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(2.5k)|赞(0)|评价(0)|浏览(127)

本文整理了Java中com.gargoylesoftware.htmlunit.WebRequestSettings.setProxyPort()方法的一些代码示例,展示了WebRequestSettings.setProxyPort()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebRequestSettings.setProxyPort()方法的具体详情如下:
包路径:com.gargoylesoftware.htmlunit.WebRequestSettings
类名称:WebRequestSettings
方法名:setProxyPort

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());

相关文章