org.apache.batik.bridge

Class NoLoadExternalResourceSecurity

public class NoLoadExternalResourceSecurity extends Object implements ExternalResourceSecurity

This implementation does not allow any external resources to be referenced from an SVG document.
Field Summary
static StringERROR_NO_EXTERNAL_RESOURCE_ALLOWED
Message when trying to load an external resource
protected SecurityExceptionse
The exception is built in the constructor and thrown if not null and the checkLoadExternalResource method is called.
Constructor Summary
NoLoadExternalResourceSecurity()
Method Summary
voidcheckLoadExternalResource()
Controls whether the external resource should be loaded or not.

Field Detail

ERROR_NO_EXTERNAL_RESOURCE_ALLOWED

public static final String ERROR_NO_EXTERNAL_RESOURCE_ALLOWED
Message when trying to load an external resource

se

protected SecurityException se
The exception is built in the constructor and thrown if not null and the checkLoadExternalResource method is called.

Constructor Detail

NoLoadExternalResourceSecurity

public NoLoadExternalResourceSecurity()

Method Detail

checkLoadExternalResource

public void checkLoadExternalResource()
Controls whether the external resource should be loaded or not.

Throws: SecurityException if the externalResource should not be loaded.

Copyright B) 2007 Apache Software Foundation. All Rights Reserved.