Class NoLoadScriptSecurity
java.lang.Object
org.apache.batik.bridge.NoLoadScriptSecurity
- All Implemented Interfaces:
ScriptSecurity
This implementation for the
ScriptSecurity interface
does not allow scripts to be loaded.- Version:
- $Id$
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringMessage when trying to load a script file and the Document does not have a URLprotected SecurityExceptionThe exception is built in the constructor and thrown if the checkLoadScript method is called. -
Constructor Summary
ConstructorsConstructorDescriptionNoLoadScriptSecurity(String scriptType) Creates a new NoLoadScriptSecurity object. -
Method Summary
Modifier and TypeMethodDescriptionvoidControls whether the script should be loaded or not.
-
Field Details
-
ERROR_NO_SCRIPT_OF_TYPE_ALLOWED
Message when trying to load a script file and the Document does not have a URL- See Also:
-
se
The exception is built in the constructor and thrown if the checkLoadScript method is called.
-
-
Constructor Details
-
NoLoadScriptSecurity
Creates a new NoLoadScriptSecurity object.- Parameters:
scriptType- type of script, as found in the type attribute of the <script> element.
-
-
Method Details
-
checkLoadScript
public void checkLoadScript()Controls whether the script should be loaded or not.- Specified by:
checkLoadScriptin interfaceScriptSecurity- Throws:
SecurityException- if the script should not be loaded.
-