class SVGOnLoadExceptionTest.TestUserAgent extends UserAgentAdapter
Modifier and Type | Field and Description |
---|---|
(package private) java.lang.Exception |
e |
ctx, extensions, FEATURES
Constructor and Description |
---|
TestUserAgent() |
Modifier and Type | Method and Description |
---|---|
void |
displayError(java.lang.Exception e)
Display the specified error (forwards call to displayError(String))
|
ExternalResourceSecurity |
getExternalResourceSecurity(ParsedURL resourceURL,
ParsedURL docURL)
Returns the security settings for the given resource
url and document url
|
ScriptSecurity |
getScriptSecurity(java.lang.String scriptType,
ParsedURL scriptURL,
ParsedURL docURL)
Returns the security settings for the given script
type, script url and document url
|
addStdFeatures, checkLoadExternalResource, checkLoadScript, deselectAll, displayError, displayMessage, getAlternateStyleSheet, getBolderFontWeight, getBrokenLinkDocument, getClientAreaLocationOnScreen, getDefaultFontFamily, getEventDispatcher, getFontFamilyResolver, getLanguages, getLighterFontWeight, getMedia, getMediumFontSize, getPixelToMM, getPixelUnitToMillimeter, getStandardBolderFontWeight, getStandardLighterFontWeight, getTransform, getUserStyleSheetURI, getViewportSize, getXMLParserClassName, handleElement, hasFeature, isXMLParserValidating, loadDocument, openLink, registerExtension, runThread, setBridgeContext, setSVGCursor, setTextSelection, setTransform, showAlert, showConfirm, showPrompt, showPrompt, supportExtension
public ExternalResourceSecurity getExternalResourceSecurity(ParsedURL resourceURL, ParsedURL docURL)
UserAgentAdapter
getExternalResourceSecurity
in interface UserAgent
getExternalResourceSecurity
in class UserAgentAdapter
resourceURL
- url for the resource, as defined in
the resource's xlink:href attribute. If that
attribute was empty, then this parameter should
be nulldocURL
- url for the document into which the
resource was found.public ScriptSecurity getScriptSecurity(java.lang.String scriptType, ParsedURL scriptURL, ParsedURL docURL)
UserAgentAdapter
getScriptSecurity
in interface UserAgent
getScriptSecurity
in class UserAgentAdapter
scriptType
- type of script, as found in the
type attribute of the <script> element.scriptURL
- url for the script, as defined in
the script's xlink:href attribute. If that
attribute was empty, then this parameter should
be nulldocURL
- url for the document into which the
script was found.public void displayError(java.lang.Exception e)
UserAgentAdapter
displayError
in interface UserAgent
displayError
in class UserAgentAdapter