com.btr.proxy.selector.pac.PacScriptParser Maven / Gradle / Ivy
package com.btr.proxy.selector.pac;
/***************************************************************************
* Common interface for PAC script parsers.
*
* @author Bernd Rosstauscher ([email protected]) Copyright 2009
***************************************************************************/
public interface PacScriptParser {
/***************************************************************************
* Gets the source of the PAC script used by this parser.
*
* @return a PacScriptSource.
**************************************************************************/
PacScriptSource getScriptSource();
/*************************************************************************
* Evaluates the given URL and host against the PAC script.
*
* @param url
* the URL to evaluate.
* @param host
* the host name part of the URL.
* @return the script result.
* @throws ProxyEvaluationException
* on execution error.
************************************************************************/
String evaluate(String url, String host) throws ProxyEvaluationException;
}