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.Exceptione-
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 voiddisplayError(java.lang.Exception e)Display the specified error (forwards call to displayError(String))ExternalResourceSecuritygetExternalResourceSecurity(ParsedURL resourceURL, ParsedURL docURL)Returns the security settings for the given resource url and document urlScriptSecuritygetScriptSecurity(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:UserAgentAdapterReturns the security settings for the given resource url and document url- Specified by:
getExternalResourceSecurityin interfaceUserAgent- Overrides:
getExternalResourceSecurityin 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:UserAgentAdapterReturns the security settings for the given script type, script url and document url- Specified by:
getScriptSecurityin interfaceUserAgent- Overrides:
getScriptSecurityin 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:UserAgentAdapterDisplay the specified error (forwards call to displayError(String))- Specified by:
displayErrorin interfaceUserAgent- Overrides:
displayErrorin classUserAgentAdapter
-
-