Class NoProxySelector
java.lang.Object
java.net.ProxySelector
com.github.markusbernhardt.proxy.selector.direct.NoProxySelector
This proxy selector will always return a "DIRECT" proxy. Implemented as
singleton.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
connectFailed
(URI uri, SocketAddress sa, IOException ioe) connectFailedstatic NoProxySelector
Gets the one and only instance of this selector.selecttoString()
Methods inherited from class java.net.ProxySelector
getDefault, of, setDefault
-
Field Details
-
instance
-
-
Constructor Details
-
NoProxySelector
private NoProxySelector()Constructor
-
-
Method Details
-
getInstance
Gets the one and only instance of this selector.- Returns:
- a DirectSelector.
-
connectFailed
connectFailed- Specified by:
connectFailed
in classProxySelector
- See Also:
-
select
select- Specified by:
select
in classProxySelector
- See Also:
-
toString
-