1 18 package org.apache.batik.bridge; 19 20 21 28 public class NoLoadExternalResourceSecurity implements ExternalResourceSecurity { 29 32 public static final String ERROR_NO_EXTERNAL_RESOURCE_ALLOWED 33 = "NoLoadExternalResourceSecurity.error.no.external.resource.allowed"; 34 35 39 protected SecurityException se; 40 41 46 public void checkLoadExternalResource(){ 47 if (se != null) { 48 se.fillInStackTrace(); 49 throw se; 50 } 51 } 52 53 55 public NoLoadExternalResourceSecurity(){ 56 se = new SecurityException  57 (Messages.formatMessage(ERROR_NO_EXTERNAL_RESOURCE_ALLOWED, 58 null)); 59 60 } 61 } 62 63 64 65 | Popular Tags |