org.apache.batik.bridge

Class RelaxedExternalResourceSecurity

public class RelaxedExternalResourceSecurity extends Object implements ExternalResourceSecurity

This implementation of ExternalResourceSecurity allows any external references.
Constructor Summary
RelaxedExternalResourceSecurity(ParsedURL externalResourceURL, ParsedURL docURL)
Method Summary
voidcheckLoadExternalResource()
Controls whether the externalResource should be loaded or not.

Constructor Detail

RelaxedExternalResourceSecurity

public RelaxedExternalResourceSecurity(ParsedURL externalResourceURL, ParsedURL docURL)

Parameters: externalResourceURL url for the externalResource, as defined in the externalResource's xlink:href attribute. If that attribute was empty, then this parameter should be null docURL url for the document into which the externalResource was found.

Method Detail

checkLoadExternalResource

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

Throws: SecurityException if the externalResource should not be loaded.

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