Module io.sf.carte.echosvg.bridge
Package io.sf.carte.echosvg.bridge
Class RelaxedExternalResourceSecurity
java.lang.Object
io.sf.carte.echosvg.bridge.RelaxedExternalResourceSecurity
- All Implemented Interfaces:
ExternalResourceSecurity
This implementation of
ExternalResourceSecurity
allows any
external references.-
Constructor Summary
ConstructorDescriptionRelaxedExternalResourceSecurity
(ParsedURL externalResourceURL, ParsedURL docURL) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Controls whether the externalResource should be loaded or not.
-
Constructor Details
-
RelaxedExternalResourceSecurity
- 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 Details
-
checkLoadExternalResource
public void checkLoadExternalResource()Controls whether the externalResource should be loaded or not.- Specified by:
checkLoadExternalResource
in interfaceExternalResourceSecurity
- Throws:
SecurityException
- if the externalResource should not be loaded.
-