Class NoProxySelector
- java.lang.Object
-
- java.net.ProxySelector
-
- com.github.markusbernhardt.proxy.selector.direct.NoProxySelector
-
public class NoProxySelector extends java.net.ProxySelectorThis proxy selector will always return a "DIRECT" proxy. Implemented as singleton.
-
-
Field Summary
Fields Modifier and Type Field Description private static NoProxySelectorinstance
-
Constructor Summary
Constructors Modifier Constructor Description privateNoProxySelector()Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconnectFailed(java.net.URI uri, java.net.SocketAddress sa, java.io.IOException ioe)connectFailedstatic NoProxySelectorgetInstance()Gets the one and only instance of this selector.java.util.List<java.net.Proxy>select(java.net.URI uri)selectjava.lang.StringtoString()
-
-
-
Field Detail
-
instance
private static NoProxySelector instance
-
-
Method Detail
-
getInstance
public static NoProxySelector getInstance()
Gets the one and only instance of this selector.- Returns:
- a DirectSelector.
-
connectFailed
public void connectFailed(java.net.URI uri, java.net.SocketAddress sa, java.io.IOException ioe)connectFailed- Specified by:
connectFailedin classjava.net.ProxySelector- See Also:
ProxySelector.connectFailed(java.net.URI, java.net.SocketAddress, java.io.IOException)
-
select
public java.util.List<java.net.Proxy> select(java.net.URI uri)
select- Specified by:
selectin classjava.net.ProxySelector- See Also:
ProxySelector.select(java.net.URI)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-