public class NoLoadExternalResourceSecurity extends Object implements ExternalResourceSecurity
Modifier and Type | Field and Description |
---|---|
static String |
ERROR_NO_EXTERNAL_RESOURCE_ALLOWED
Message when trying to load an external resource
|
protected SecurityException |
se
The exception is built in the constructor and thrown if
not null and the checkLoadExternalResource method is called.
|
Constructor and Description |
---|
NoLoadExternalResourceSecurity() |
Modifier and Type | Method and Description |
---|---|
void |
checkLoadExternalResource()
Controls whether the external resource should be loaded or not.
|
public static final String ERROR_NO_EXTERNAL_RESOURCE_ALLOWED
protected SecurityException se
public void checkLoadExternalResource()
checkLoadExternalResource
in interface ExternalResourceSecurity
SecurityException
- if the externalResource should not be loaded.Copyright © 2000–2023 Apache Software Foundation. All rights reserved.