public class

JavaxPacScriptParser

extends Object
implements PacScriptParser
java.lang.Object
   ↳ com.microstrategy.utils.proxy.JavaxPacScriptParser

Class Overview

PAC parser using the Rhino JavaScript engine bundled with Java 1.6

Summary

Public Constructors
JavaxPacScriptParser(PacScriptSource source)
Constructor
Public Methods
String evaluate(String url, String host)
Evaluates the given URL and host against the PAC script.
PacScriptSource getScriptSource()
Gets the source of the PAC script used by this parser.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.microstrategy.utils.proxy.PacScriptParser

Public Constructors

public JavaxPacScriptParser (PacScriptSource source)

Constructor

Parameters
source the source for the PAC script.
Throws
Exception on error.

Public Methods

public String evaluate (String url, String host)

Evaluates the given URL and host against the PAC script.

Parameters
url the URL to evaluate.
host the host name part of the URL.
Returns
  • the script result.
Throws
Exception on execution error.

public PacScriptSource getScriptSource ()

Gets the source of the PAC script used by this parser.

Returns
  • a PacScriptSource.