/** * Returns the security settings for the given resource * url and document url * * @param resourceURL url for the resource, as defined in * the resource's xlink:href attribute. If that * attribute was empty, then this parameter should * be null * @param docURL url for the document into which the * resource was found. */ public ExternalResourceSecurity getExternalResourceSecurity(ParsedURL resourceURL, ParsedURL docURL) { return new RelaxedExternalResourceSecurity(resourceURL, docURL); }
/** * Returns the security settings for the given resource * url and document url * * @param resourceURL url for the resource, as defined in * the resource's xlink:href attribute. If that * attribute was empty, then this parameter should * be null * @param docURL url for the document into which the * resource was found. */ public ExternalResourceSecurity getExternalResourceSecurity(ParsedURL resourceURL, ParsedURL docURL) { return new RelaxedExternalResourceSecurity(resourceURL, docURL); }
/** * Returns the security settings for the given resource * url and document url * * @param resourceURL url for the resource, as defined in * the resource's xlink:href attribute. If that * attribute was empty, then this parameter should * be null * @param docURL url for the document into which the * resource was found. */ public ExternalResourceSecurity getExternalResourceSecurity(ParsedURL resourceURL, ParsedURL docURL) { return new RelaxedExternalResourceSecurity(resourceURL, docURL); }
/** * Returns the security settings for the given * resource url and document url * * @param resourceURL url for the resource, as defined in * the resource's xlink:href attribute. If that * attribute was empty, then this parameter should * be null * @param docURL url for the document into which the * resource was found. */ public ExternalResourceSecurity getExternalResourceSecurity(ParsedURL resourceURL, ParsedURL docURL){ return new RelaxedExternalResourceSecurity(resourceURL, docURL); /* return new DefaultExternalResourceSecurity(resourceURL, docURL); return new EmbededExternalResourceSecurity(resourceURL); return new NoLoadExternalResourceSecurity(); */ }
/** * Returns the security settings for the given * resource url and document url * * @param resourceURL url for the resource, as defined in * the resource's xlink:href attribute. If that * attribute was empty, then this parameter should * be null * @param docURL url for the document into which the * resource was found. */ public ExternalResourceSecurity getExternalResourceSecurity(ParsedURL resourceURL, ParsedURL docURL){ return new RelaxedExternalResourceSecurity(resourceURL, docURL); /* return new DefaultExternalResourceSecurity(resourceURL, docURL); return new EmbededExternalResourceSecurity(resourceURL); return new NoLoadExternalResourceSecurity(); */ }
/** * Returns the security settings for the given * resource url and document url * * @param resourceURL url for the resource, as defined in * the resource's xlink:href attribute. If that * attribute was empty, then this parameter should * be null * @param docURL url for the document into which the * resource was found. */ public ExternalResourceSecurity getExternalResourceSecurity(ParsedURL resourceURL, ParsedURL docURL){ return new RelaxedExternalResourceSecurity(resourceURL, docURL); /* return new DefaultExternalResourceSecurity(resourceURL, docURL); return new EmbededExternalResourceSecurity(resourceURL); return new NoLoadExternalResourceSecurity(); */ }
/** * Returns the security settings for the given * resource url and document url * * @param resourceURL url for the script, as defined in * the resource's xlink:href attribute. If that * attribute was empty, then this parameter should * be null * @param docURL url for the document into which the * script was found. */ public ExternalResourceSecurity getExternalResourceSecurity(ParsedURL resourceURL, ParsedURL docURL){ if (svgUserAgent != null){ return svgUserAgent.getExternalResourceSecurity(resourceURL, docURL); } else { return new RelaxedExternalResourceSecurity(resourceURL, docURL); } }
/** * Returns the security settings for the given * resource url and document url * * @param resourceURL url for the script, as defined in * the resource's xlink:href attribute. If that * attribute was empty, then this parameter should * be null * @param docURL url for the document into which the * script was found. */ public ExternalResourceSecurity getExternalResourceSecurity(ParsedURL resourceURL, ParsedURL docURL){ if (svgUserAgent != null){ return svgUserAgent.getExternalResourceSecurity(resourceURL, docURL); } else { return new RelaxedExternalResourceSecurity(resourceURL, docURL); } }
/** * Returns the security settings for the given * resource url and document url * * @param resourceURL url for the script, as defined in * the resource's xlink:href attribute. If that * attribute was empty, then this parameter should * be null * @param docURL url for the document into which the * script was found. */ public ExternalResourceSecurity getExternalResourceSecurity(ParsedURL resourceURL, ParsedURL docURL){ if (svgUserAgent != null){ return svgUserAgent.getExternalResourceSecurity(resourceURL, docURL); } else { return new RelaxedExternalResourceSecurity(resourceURL, docURL); } }
public ExternalResourceSecurity getExternalResourceSecurity(ParsedURL resourceURL, ParsedURL docURL) { if ("ANY".equals(resourceOrigin)) { return new RelaxedExternalResourceSecurity(resourceURL, docURL); } else if ("DOCUMENT".equals(resourceOrigin)) { return new DefaultExternalResourceSecurity(resourceURL, docURL); } else if ("EMBEDED".equals(resourceOrigin)) { return new EmbededExternalResourceSecurity(resourceURL); } else { return new NoLoadExternalResourceSecurity(); } }
/** * Returns the security settings for the given * resource url and document url * * @param resourceURL url for the resource, as defined in * the resource's xlink:href attribute. If that * attribute was empty, then this parameter should * be null * @param docURL url for the document into which the * resource was found. */ public ExternalResourceSecurity getExternalResourceSecurity(ParsedURL resourceURL, ParsedURL docURL){ switch(application.getAllowedExternalResourceOrigin()) { case ResourceOrigin.ANY: return new RelaxedExternalResourceSecurity(resourceURL, docURL); case ResourceOrigin.DOCUMENT: return new DefaultExternalResourceSecurity(resourceURL, docURL); case ResourceOrigin.EMBEDED: return new EmbededExternalResourceSecurity(resourceURL); default: return new NoLoadExternalResourceSecurity(); } }
/** * Returns the security settings for the given * resource url and document url * * @param resourceURL url for the resource, as defined in * the resource's xlink:href attribute. If that * attribute was empty, then this parameter should * be null * @param docURL url for the document into which the * resource was found. */ public ExternalResourceSecurity getExternalResourceSecurity(ParsedURL resourceURL, ParsedURL docURL){ switch(application.getAllowedExternalResourceOrigin()) { case ResourceOrigin.ANY: return new RelaxedExternalResourceSecurity(resourceURL, docURL); case ResourceOrigin.DOCUMENT: return new DefaultExternalResourceSecurity(resourceURL, docURL); case ResourceOrigin.EMBEDED: return new EmbededExternalResourceSecurity(resourceURL); default: return new NoLoadExternalResourceSecurity(); } }