| java.lang.Object org.apache.batik.bridge.EmbededScriptSecurity
EmbededScriptSecurity | public class EmbededScriptSecurity implements ScriptSecurity(Code) | | This implementation of the ScriptSecurity interface only
allows scripts embeded in the document, i.e., scripts whith either
the same URL as the document (as for event attributes) or scripts
embeded with the data protocol.
author: Vincent Hardy version: $Id: EmbededScriptSecurity.java 475477 2006-11-15 22:44:28Z cam $ |
Constructor Summary | |
public | EmbededScriptSecurity(String scriptType, ParsedURL scriptURL, ParsedURL docURL) Parameters: scriptType - type of script, as found in the type attribute of the <script> element. Parameters: scriptURL - url for the script, as defined inthe script's xlink:href attribute. |
Method Summary | |
public void | checkLoadScript() Controls whether the script should be loaded or not. |
ERROR_CANNOT_ACCESS_DOCUMENT_URL | final public static String ERROR_CANNOT_ACCESS_DOCUMENT_URL(Code) | | Message when trying to load a script file and the Document
does not have a URL
|
ERROR_SCRIPT_NOT_EMBEDED | final public static String ERROR_SCRIPT_NOT_EMBEDED(Code) | | Message when trying to load a script that is not embeded
in the document.
|
se | protected SecurityException se(Code) | | The exception is built in the constructor and thrown if
not null and the checkLoadScript method is called.
|
EmbededScriptSecurity | public EmbededScriptSecurity(String scriptType, ParsedURL scriptURL, ParsedURL docURL)(Code) | | Parameters: scriptType - type of script, as found in the type attribute of the <script> element. Parameters: scriptURL - url for the script, as defined inthe script's xlink:href attribute. If thatattribute was empty, then this parameter shouldbe null Parameters: docURL - url for the document into which the script was found. |
checkLoadScript | public void checkLoadScript()(Code) | | Controls whether the script should be loaded or not.
throws: SecurityException - if the script should not be loaded. |
|
|