org.apache.batik.bridge
public class NoLoadScriptSecurity extends Object implements ScriptSecurity
| Field Summary | |
|---|---|
| static String | ERROR_NO_SCRIPT_OF_TYPE_ALLOWED
Message when trying to load a script file and the Document
does not have a URL |
| protected SecurityException | se
The exception is built in the constructor and thrown if
the checkLoadScript method is called. |
| Constructor Summary | |
|---|---|
| NoLoadScriptSecurity(String scriptType)
Creates a new NoLoadScriptSecurity object. | |
| Method Summary | |
|---|---|
| void | checkLoadScript()
Controls whether the script should be loaded or not.
|
Parameters: scriptType type of script, as found in the type attribute of the <script> element.
Throws: SecurityException if the script should not be loaded.