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.
- Version:
- $Id$
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringMessage when trying to load an external resourceprotected SecurityExceptionThe exception is built in the constructor and thrown if not null and the checkLoadExternalResource method is called. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidControls 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:
checkLoadExternalResourcein interfaceExternalResourceSecurity- Throws:
SecurityException- if the externalResource should not be loaded.
-