Package org.apache.batik.bridge
Class WindowWrapper.GetURLFunctionWrapper
- java.lang.Object
-
- org.apache.batik.bridge.WindowWrapper.GetURLFunctionWrapper
-
- All Implemented Interfaces:
Window.URLResponseHandler
- Enclosing class:
- WindowWrapper
protected static class WindowWrapper.GetURLFunctionWrapper extends java.lang.Object implements Window.URLResponseHandler
To wrap a function passed to getURL().
-
-
Field Summary
Fields Modifier and Type Field Description protected org.mozilla.javascript.Function
function
The function wrapper.protected RhinoInterpreter
interpreter
The current interpreter.protected WindowWrapper
windowWrapper
The WindowWrapper
-
Constructor Summary
Constructors Constructor Description GetURLFunctionWrapper(RhinoInterpreter ri, org.mozilla.javascript.Function fct, WindowWrapper ww)
Creates a wrapper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
getURLDone(boolean success, java.lang.String mime, java.lang.String content)
Called before 'getURL()' returns.
-
-
-
Field Detail
-
interpreter
protected RhinoInterpreter interpreter
The current interpreter.
-
function
protected org.mozilla.javascript.Function function
The function wrapper.
-
windowWrapper
protected WindowWrapper windowWrapper
The WindowWrapper
-
-
Constructor Detail
-
GetURLFunctionWrapper
public GetURLFunctionWrapper(RhinoInterpreter ri, org.mozilla.javascript.Function fct, WindowWrapper ww)
Creates a wrapper.
-
-
Method Detail
-
getURLDone
public void getURLDone(boolean success, java.lang.String mime, java.lang.String content)
Called before 'getURL()' returns.- Specified by:
getURLDone
in interfaceWindow.URLResponseHandler
- Parameters:
success
- Whether the data was successfully retreived.mime
- The data MIME type.content
- The data.
-
-