Package io.github.astrapi69.net.proxy
Klasse BaseProxySelector
java.lang.Object
java.net.ProxySelector
io.github.astrapi69.net.proxy.BaseProxySelector
The class
BaseProxySelector holds a map with proxy addresses. It can replace the default
ProxySelector.
Example:
BaseProxySelector proxySelector = new BaseProxySelector(ProxySelector.getDefault(), proxies); ProxySelector.setDefault(proxySelector);The argument proxies is the map with the map of the addresses to be used as proxy.
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungBaseProxySelector(ProxySelector defaultSelector, Map<SocketAddress, ProxyDecorator> proxies) Instantiates a newBaseProxySelector. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidconnectFailed(URI uri, SocketAddress sa, IOException ioe) Von Klasse geerbte Methoden java.net.ProxySelector
getDefault, of, setDefault
-
Konstruktordetails
-
BaseProxySelector
Instantiates a newBaseProxySelector.- Parameter:
defaultSelector- the default selectorproxies- the proxies
-
-
Methodendetails
-
connectFailed
- Angegeben von:
connectFailedin KlasseProxySelector
-
select
- Angegeben von:
selectin KlasseProxySelector
-