Package org.apache.batik.bridge
Class NoLoadExternalResourceSecurity
- java.lang.Object
-
- org.apache.batik.bridge.NoLoadExternalResourceSecurity
-
- All Implemented Interfaces:
ExternalResourceSecurity
public class NoLoadExternalResourceSecurity extends java.lang.Object implements ExternalResourceSecurity
This implementation does not allow any external resources to be referenced from an SVG document.- Version:
- $Id: NoLoadExternalResourceSecurity.java 1733416 2016-03-03 07:07:13Z gadams $
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ERROR_NO_EXTERNAL_RESOURCE_ALLOWED
Message when trying to load an external resourceprotected java.lang.SecurityException
se
The exception is built in the constructor and thrown if not null and the checkLoadExternalResource method is called.
-
Constructor Summary
Constructors Constructor Description NoLoadExternalResourceSecurity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkLoadExternalResource()
Controls whether the external resource should be loaded or not.
-
-
-
Field Detail
-
ERROR_NO_EXTERNAL_RESOURCE_ALLOWED
public static final java.lang.String ERROR_NO_EXTERNAL_RESOURCE_ALLOWED
Message when trying to load an external resource- See Also:
- Constant Field Values
-
se
protected java.lang.SecurityException se
The exception is built in the constructor and thrown if not null and the checkLoadExternalResource method is called.
-
-
Method Detail
-
checkLoadExternalResource
public void checkLoadExternalResource()
Controls whether the external resource should be loaded or not.- Specified by:
checkLoadExternalResource
in interfaceExternalResourceSecurity
- Throws:
java.lang.SecurityException
- if the externalResource should not be loaded.
-
-