Debian Codegraph @

src/main/java/com/github/markusbernhardt/proxy/selector/pac/PacScriptParser.java

raw symbols SCIP
1 package com.github.markusbernhardt.proxy.selector.pac;
2
3 /***************************************************************************
4 * Common interface for PAC script parsers.
5 *
6 * @author Markus Bernhardt, Copyright 2016
7 * @author Bernd Rosstauscher, Copyright 2009
8 ***************************************************************************/
9 public interface PacScriptParser {
10
11 /***************************************************************************
12 * Gets the source of the PAC script used by this parser.
13 *
14 * @return a PacScriptSource.
15 **************************************************************************/
16 public PacScriptSource getScriptSource();
17
18 /*************************************************************************
19 * Evaluates the given URL and host against the PAC script.
20 *
21 * @param url
22 * the URL to evaluate.
23 * @param host
24 * the host name part of the URL.
25 * @return the script result.
26 * @throws ProxyEvaluationException
27 * on execution error.
28 ************************************************************************/
29 public String evaluate(String url, String host) throws ProxyEvaluationException;
30 }