public class ProxySerivce
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
ProxyConfig |
getProxyConfig()
Returns proxy configuration of the associated
返回关联的BrowserContext实例的代理配置;如果没有为上下文提供代理配置,则返回null。 BrowserContext instance or
null if no proxy configuration was provided for the context.
|
void |
setProxyConfig(AutoDetectProxyConfig proxyConfig)
Sets proxy configuration where the connection automatically detects proxy settings.
设置代理配置,其中连接自动检测代理设置。 |
void |
setProxyConfig(CustomProxyConfig proxyConfig)
Sets custom user proxy settings.
设置自定义用户代理设置。 |
void |
setProxyConfig(DirectProxyConfig proxyConfig)
Sets proxy configuration that doesn't use a proxy server.
设置不使用代理服务器的代理配置。 |
void |
setProxyConfig(URLProxyConfig proxyConfig)
Sets proxy configuration that obtains proxy settings from proxy auto-config (PAC) file, which is located at the specific predefined address.
设置代理配置,该配置从位于特定预定义地址的代理自动配置(PAC)文件获取代理设置。 |
public ProxyConfig getProxyConfig()
BrowserContext
instance or
null
if no proxy configuration was provided for the context.
public void setProxyConfig(AutoDetectProxyConfig proxyConfig)
public void setProxyConfig(CustomProxyConfig proxyConfig)
public void setProxyConfig(DirectProxyConfig proxyConfig)
public void setProxyConfig(URLProxyConfig proxyConfig)