public class

PacProxySelector

extends ProxySelector
java.lang.Object
   ↳ java.net.ProxySelector
     ↳ com.microstrategy.utils.proxy.PacProxySelector

Class Overview

ProxySelector that will use a PAC script to find an proxy for a given URI.

Summary

Public Constructors
PacProxySelector(PacScriptSource pacSource)
Constructor
Public Methods
void connectFailed(URI uri, SocketAddress sa, IOException ioe)
connectFailed
static boolean isEnabled()
Checks if the selector is currently enabled.
List<Proxy> select(URI uri)
select
static void setEnabled(boolean enable)
Can be used to enable / disable the proxy selector.
[Expand]
Inherited Methods
From class java.net.ProxySelector
From class java.lang.Object

Public Constructors

public PacProxySelector (PacScriptSource pacSource)

Constructor

Parameters
pacSource the source for the PAC file.

Public Methods

public void connectFailed (URI uri, SocketAddress sa, IOException ioe)

public static boolean isEnabled ()

Checks if the selector is currently enabled.

Returns
  • true if enabled else false.

public List<Proxy> select (URI uri)

select

public static void setEnabled (boolean enable)

Can be used to enable / disable the proxy selector. If disabled it will return DIRECT for all urls.

Parameters
enable the new status to set.