Class DesktopProxySearchStrategy
- java.lang.Object
-
- com.github.markusbernhardt.proxy.search.desktop.DesktopProxySearchStrategy
-
- All Implemented Interfaces:
ProxySearchStrategy
public class DesktopProxySearchStrategy extends java.lang.Object implements ProxySearchStrategy
This search provider will try to find out on which desktop platform we are running and then will initialize the default proxy search.
-
-
Constructor Summary
Constructors Constructor Description DesktopProxySearchStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private ProxySearchStrategy
findDesktopSpecificStrategy()
Determine the desktop and create a strategy for it.java.lang.String
getName()
Gets the printable name of the search strategy.java.net.ProxySelector
getProxySelector()
Gets the default ProxySelector for the current platform.
-
-
-
Method Detail
-
getProxySelector
public java.net.ProxySelector getProxySelector() throws ProxyException
Gets the default ProxySelector for the current platform.- Specified by:
getProxySelector
in interfaceProxySearchStrategy
- Returns:
- a ProxySelector, null if none is found.
- Throws:
ProxyException
- on error.
-
getName
public java.lang.String getName()
Gets the printable name of the search strategy.- Specified by:
getName
in interfaceProxySearchStrategy
- Returns:
- the printable name of the search strategy
-
findDesktopSpecificStrategy
private ProxySearchStrategy findDesktopSpecificStrategy()
Determine the desktop and create a strategy for it.- Returns:
- a desktop specific strategy, null if none was found.
-
-