Package org.apache.batik.test.svg
Class SVGOnLoadExceptionTest.TestUserAgent
- java.lang.Object
-
- org.apache.batik.bridge.UserAgentAdapter
-
- org.apache.batik.test.svg.SVGOnLoadExceptionTest.TestUserAgent
-
- All Implemented Interfaces:
UserAgent
- Enclosing class:
- SVGOnLoadExceptionTest
class SVGOnLoadExceptionTest.TestUserAgent extends UserAgentAdapter
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.Exception
e
-
Fields inherited from class org.apache.batik.bridge.UserAgentAdapter
ctx, extensions, FEATURES
-
-
Constructor Summary
Constructors Constructor Description TestUserAgent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 urlScriptSecurity
getScriptSecurity(java.lang.String scriptType, ParsedURL scriptURL, ParsedURL docURL)
Returns the security settings for the given script type, script url and document url-
Methods inherited from class org.apache.batik.bridge.UserAgentAdapter
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
-
-
-
-
Method Detail
-
getExternalResourceSecurity
public ExternalResourceSecurity getExternalResourceSecurity(ParsedURL resourceURL, ParsedURL docURL)
Description copied from class:UserAgentAdapter
Returns the security settings for the given resource url and document url- Specified by:
getExternalResourceSecurity
in interfaceUserAgent
- Overrides:
getExternalResourceSecurity
in classUserAgentAdapter
- Parameters:
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.
-
getScriptSecurity
public ScriptSecurity getScriptSecurity(java.lang.String scriptType, ParsedURL scriptURL, ParsedURL docURL)
Description copied from class:UserAgentAdapter
Returns the security settings for the given script type, script url and document url- Specified by:
getScriptSecurity
in interfaceUserAgent
- Overrides:
getScriptSecurity
in classUserAgentAdapter
- Parameters:
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.
-
displayError
public void displayError(java.lang.Exception e)
Description copied from class:UserAgentAdapter
Display the specified error (forwards call to displayError(String))- Specified by:
displayError
in interfaceUserAgent
- Overrides:
displayError
in classUserAgentAdapter
-
-