Package org.asynchttpclient.proxy
Class ProxyServer
- java.lang.Object
- 
- org.asynchttpclient.proxy.ProxyServer
 
- 
 public class ProxyServer extends Object Represents a proxy server.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classProxyServer.Builder
 - 
Constructor SummaryConstructors Constructor Description ProxyServer(String host, int port, int securedPort, @Nullable Realm realm, List<String> nonProxyHosts, ProxyType proxyType, @Nullable Function<Request,io.netty.handler.codec.http.HttpHeaders> customHeaders)ProxyServer(String host, int port, int securedPort, Realm realm, List<String> nonProxyHosts, ProxyType proxyType)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable Function<Request,io.netty.handler.codec.http.HttpHeaders>getCustomHeaders()StringgetHost()List<String>getNonProxyHosts()intgetPort()ProxyTypegetProxyType()@Nullable RealmgetRealm()intgetSecuredPort()booleanisIgnoredForHost(String hostname)Checks whether proxy should be used according to nonProxyHosts settings of it, or we want to go directly to target host.
 
- 
- 
- 
Method Detail- 
getHostpublic String getHost() 
 - 
getPortpublic int getPort() 
 - 
getSecuredPortpublic int getSecuredPort() 
 - 
getRealm@Nullable public @Nullable Realm getRealm() 
 - 
getProxyTypepublic ProxyType getProxyType() 
 - 
getCustomHeaders@Nullable public @Nullable Function<Request,io.netty.handler.codec.http.HttpHeaders> getCustomHeaders() 
 - 
isIgnoredForHostpublic boolean isIgnoredForHost(String hostname) Checks whether proxy should be used according to nonProxyHosts settings of it, or we want to go directly to target host. Ifnullproxy is passed in, this method returns true -- since there is NO proxy, we should avoid to use it. Simple hostname pattern matching using "*" are supported, but only as prefixes.- Parameters:
- hostname- the hostname
- Returns:
- true if we have to ignore proxy use (obeying non-proxy hosts settings), false otherwise.
- See Also:
- Networking Properties
 
 
- 
 
-