Package com.microstrategy.utils.proxy
Class UrlPacScriptSource
- java.lang.Object
-
- com.microstrategy.utils.proxy.UrlPacScriptSource
-
- All Implemented Interfaces:
PacScriptSource
public class UrlPacScriptSource extends java.lang.Object implements PacScriptSource
Script source that will load the content of a PAC file from an webserver. The script content is cached once it was downloaded.
-
-
Constructor Summary
Constructors Constructor Description UrlPacScriptSource(java.lang.String url)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getScriptContent()
getScriptContentboolean
isScriptValid()
isScriptValidjava.lang.String
toString()
-
-
-
Method Detail
-
getScriptContent
public java.lang.String getScriptContent() throws java.io.IOException
getScriptContent- Specified by:
getScriptContent
in interfacePacScriptSource
- Returns:
- a script.
- Throws:
java.io.IOException
- on read error.- See Also:
com.btr.proxy.selector.pac.PacScriptSource#getScriptContent()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
- See Also:
Object.toString()
-
isScriptValid
public boolean isScriptValid()
isScriptValid- Specified by:
isScriptValid
in interfacePacScriptSource
- Returns:
- true if everything is fine, else false.
-
-