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
-
Field Summary
FieldsFields inherited from class org.apache.batik.bridge.UserAgentAdapter
ctx, extensions, FEATURES
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Display the specified error (forwards call to displayError(String))getExternalResourceSecurity
(ParsedURL resourceURL, ParsedURL docURL) Returns the security settings for the given resource url and document urlgetScriptSecurity
(String scriptType, ParsedURL scriptURL, ParsedURL docURL) Returns the security settings for the given script type, script url and document urlMethods 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
-
Field Details
-
e
-
-
Constructor Details
-
TestUserAgent
TestUserAgent()
-
-
Method Details
-
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
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
Description copied from class:UserAgentAdapter
Display the specified error (forwards call to displayError(String))- Specified by:
displayError
in interfaceUserAgent
- Overrides:
displayError
in classUserAgentAdapter
-