| java.lang.Object org.apache.batik.bridge.EmbededExternalResourceSecurity
EmbededExternalResourceSecurity | public class EmbededExternalResourceSecurity implements ExternalResourceSecurity(Code) | | This implementation of the ExternalResourceSecurity interface only
allows external resources embeded in the document, i.e., externalResources
embeded with the data protocol.
author: Vincent Hardy version: $Id: EmbededExternalResourceSecurity.java 475477 2006-11-15 22:44:28Z cam $ |
Constructor Summary | |
public | EmbededExternalResourceSecurity(ParsedURL externalResourceURL) Parameters: externalResourceURL - url for the externalResource, as defined inthe externalResource's xlink:href attribute. |
ERROR_EXTERNAL_RESOURCE_NOT_EMBEDED | final public static String ERROR_EXTERNAL_RESOURCE_NOT_EMBEDED(Code) | | Message when trying to load a external resource 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 checkLoadExternalResource method is called.
|
EmbededExternalResourceSecurity | public EmbededExternalResourceSecurity(ParsedURL externalResourceURL)(Code) | | Parameters: externalResourceURL - url for the externalResource, as defined inthe externalResource's xlink:href attribute. If thatattribute was empty, then this parameter shouldbe null |
checkLoadExternalResource | public void checkLoadExternalResource()(Code) | | Controls whether the externalResource should be loaded or not.
throws: SecurityException - if the externalResource should not be loaded. |
|
|