public class NoLoadScriptSecurity extends Object implements ScriptSecurity
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
NoLoadScriptSecurity(String scriptType)
Creates a new NoLoadScriptSecurity object.
|
public static final String ERROR_NO_SCRIPT_OF_TYPE_ALLOWED
protected SecurityException se
public NoLoadScriptSecurity(String scriptType)
scriptType
- type of script, as found in the
type attribute of the <script> element.public void checkLoadScript()
checkLoadScript
in interface ScriptSecurity
SecurityException
- if the script should not be loaded.Copyright ? 2009 Apache Software Foundation. All Rights Reserved.