Package org.apache.batik.bridge
Class RelaxedExternalResourceSecurity
- java.lang.Object
-
- org.apache.batik.bridge.RelaxedExternalResourceSecurity
-
- All Implemented Interfaces:
ExternalResourceSecurity
public class RelaxedExternalResourceSecurity extends java.lang.Object implements ExternalResourceSecurity
This implementation ofExternalResourceSecurity
allows any external references.
-
-
Constructor Summary
Constructors Constructor Description RelaxedExternalResourceSecurity(ParsedURL externalResourceURL, ParsedURL docURL)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkLoadExternalResource()
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 nulldocURL
- 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.- Specified by:
checkLoadExternalResource
in interfaceExternalResourceSecurity
- Throws:
java.lang.SecurityException
- if the externalResource should not be loaded.
-
-