public static class ProxyOptions.ProxyOptionsBuilder extends Object
| Constructor and Description |
|---|
ProxyOptionsBuilder() |
| Modifier and Type | Method and Description |
|---|---|
ProxyOptions |
build() |
static ProxyOptions.ProxyOptionsBuilder |
create()
Create a builder with default options (use what is configured in standard system properties (protocol).proxyHost/(protocol).proxyPort)
|
ProxyOptions.ProxyOptionsBuilder |
withDefaultSystemProperties()
Obtain proxy configuration for standard system properties (e.g.
|
ProxyOptions.ProxyOptionsBuilder |
withNonProxyHost(Scheme scheme,
List<String> nonProxyHosts)
Add a list of non-proxy hosts for the given scheme.
|
ProxyOptions.ProxyOptionsBuilder |
withNoProxy()
Use no proxy in the client
|
ProxyOptions.ProxyOptionsBuilder |
withProxy(Map<Scheme,Host> proxyHostMap,
Map<Scheme,List<String>> nonProxyHosts)
Configure proxies as per given arguments.
|
ProxyOptions.ProxyOptionsBuilder |
withProxy(Scheme scheme,
Host proxyHost)
Add a proxy host for the given scheme.
|
public static ProxyOptions.ProxyOptionsBuilder create()
public ProxyOptions build()
public ProxyOptions.ProxyOptionsBuilder withNoProxy()
public ProxyOptions.ProxyOptionsBuilder withDefaultSystemProperties()
public ProxyOptions.ProxyOptionsBuilder withProxy(@Nonnull Scheme scheme, @Nonnull Host proxyHost)
scheme - the schemeproxyHost - the proxy hostpublic ProxyOptions.ProxyOptionsBuilder withNonProxyHost(@Nonnull Scheme scheme, @Nonnull List<String> nonProxyHosts)
scheme - The schemenonProxyHosts - The list of non-proxy hostspublic ProxyOptions.ProxyOptionsBuilder withProxy(Map<Scheme,Host> proxyHostMap, Map<Scheme,List<String>> nonProxyHosts)
proxyHostMap - Map of schemes to proxy hosts.nonProxyHosts - List of hosts that we shouldn't use the proxy forCopyright © 2012–2018 Atlassian. All rights reserved.