com.github.markusbernhardt.proxy.ProxySearchStrategy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proxy-vole Show documentation
Show all versions of proxy-vole Show documentation
Proxy Vole is a Java library to auto detect the platform network proxy settings.
package com.github.markusbernhardt.proxy;
import java.net.ProxySelector;
import com.github.markusbernhardt.proxy.util.ProxyException;
/*****************************************************************************
* Interface for a proxy search strategy.
*
* @author Markus Bernhardt, Copyright 2016
* @author Bernd Rosstauscher, Copyright 2009
****************************************************************************/
public interface ProxySearchStrategy {
/*************************************************************************
* Gets the a ProxySelector found by applying the search strategy.
*
* @return a ProxySelector, null if none is found.
* @throws ProxyException
* on error
************************************************************************/
public ProxySelector getProxySelector() throws ProxyException;
/*************************************************************************
* Gets the printable name of the search strategy.
*
* @return the printable name of the search strategy
************************************************************************/
public String getName();
}