Package org.apache.batik.bridge
Class NoLoadExternalResourceSecurity
java.lang.Object
org.apache.batik.bridge.NoLoadExternalResourceSecurity
- All Implemented Interfaces:
ExternalResourceSecurity
This implementation does not allow any external resources to be
referenced from an SVG document.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Message when trying to load an external resourceprotected SecurityException
The exception is built in the constructor and thrown if not null and the checkLoadExternalResource method is called. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Controls whether the external resource should be loaded or not.
-
Field Details
-
ERROR_NO_EXTERNAL_RESOURCE_ALLOWED
Message when trying to load an external resource- See Also:
-
se
The exception is built in the constructor and thrown if not null and the checkLoadExternalResource method is called.
-
-
Constructor Details
-
NoLoadExternalResourceSecurity
public NoLoadExternalResourceSecurity()
-
-
Method Details
-
checkLoadExternalResource
public void checkLoadExternalResource()Controls whether the external resource should be loaded or not.- Specified by:
checkLoadExternalResource
in interfaceExternalResourceSecurity
- Throws:
SecurityException
- if the externalResource should not be loaded.
-