All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.markusbernhardt.proxy.ProxySearchStrategy Maven / Gradle / Ivy

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();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy