public class NoLoadScriptSecurity extends java.lang.Object implements ScriptSecurity
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ERROR_NO_SCRIPT_OF_TYPE_ALLOWED
Message when trying to load a script file and the Document
does not have a URL
|
protected java.lang.SecurityException |
se
The exception is built in the constructor and thrown if
the checkLoadScript method is called.
|
| Constructor and Description |
|---|
NoLoadScriptSecurity(java.lang.String scriptType)
Creates a new NoLoadScriptSecurity object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkLoadScript()
Controls whether the script should be loaded or not.
|
public static final java.lang.String ERROR_NO_SCRIPT_OF_TYPE_ALLOWED
protected java.lang.SecurityException se
public NoLoadScriptSecurity(java.lang.String scriptType)
scriptType - type of script, as found in the
type attribute of the <script> element.public void checkLoadScript()
checkLoadScript in interface ScriptSecurityjava.lang.SecurityException - if the script should not be loaded.Copyright ? 2009 Apache Software Foundation. All Rights Reserved.