(informal protocol)
Framework | /System/Library/Frameworks/WebKit.framework |
Availability | Available in Mac OS X v10.3.9 and later. |
Companion guide | |
Declared in | WebJavaPlugIn.h |
The WebJavaPlugIn
protocol provides methods to facilitate JNI access to the Java virtual machine via the plug-in.
Sends a message directly to a Java object in a plug-in.
- (jvalue)webPlugInCallJava:(jobject)objectisStatic:(BOOL)isStaticreturnType:(WebJNIReturnType)returnTypemethod:(jmethodID)methodarguments:(jvalue *)argscallingURL:(NSURL *)urlexceptionDescription:(NSString **)exceptionString
The Java instance receiving the message.
If YES
, method is expected to be a class method.
The return type of the Java method.
The Java method being called.
The arguments for the method specified by method
.
The URL for the page that contains the JavaScript that is interacting with Java.
A string for describing any exceptions thrown by Java. Pass nil
if you do not want an exception description.
The return value of the Java method.
This method is preferred over using JNI to send messages to Java applets, and is required to guarantee the correct thread will receive the message. Always invoke this method from within the main thread.
WebJavaPlugIn.h
Returns a jobject
that represents a Java applet in a WebPlugInContainer
.
- (jobject)webPlugInGetApplet
A jobject
that represents the applet.
Always invoke this method from within the main thread.
WebJavaPlugIn.h
The return type of the Java method.
typedef enum { WebJNIReturnTypeInvalid = 0, WebJNIReturnTypeVoid, WebJNIReturnTypeObject, WebJNIReturnTypeBoolean, WebJNIReturnTypeByte, WebJNIReturnTypeChar, WebJNIReturnTypeShort, WebJNIReturnTypeInt, WebJNIReturnTypeLong, WebJNIReturnTypeFloat, WebJNIReturnTypeDouble } WebJNIReturnType;
WebJNIReturnTypeInvalid
The return type is invalid.
Available in Mac OS X v10.3 and later.
Declared in WebJavaPlugIn.h
.
WebJNIReturnTypeVoid
The return type is void.
Available in Mac OS X v10.3 and later.
Declared in WebJavaPlugIn.h
.
WebJNIReturnTypeObject
The return type is an object.
Available in Mac OS X v10.3 and later.
Declared in WebJavaPlugIn.h
.
WebJNIReturnTypeBoolean
The return type is a Boolean value.
Available in Mac OS X v10.3 and later.
Declared in WebJavaPlugIn.h
.
WebJNIReturnTypeByte
The return type is a byte
value.
Available in Mac OS X v10.3 and later.
Declared in WebJavaPlugIn.h
.
WebJNIReturnTypeChar
The return type is a char
value.
Available in Mac OS X v10.3 and later.
Declared in WebJavaPlugIn.h
.
WebJNIReturnTypeShort
The return type is a short
value.
Available in Mac OS X v10.3 and later.
Declared in WebJavaPlugIn.h
.
WebJNIReturnTypeInt
The return type is an int
value.
Available in Mac OS X v10.3 and later.
Declared in WebJavaPlugIn.h
.
WebJNIReturnTypeLong
The return type is a long
value.
Available in Mac OS X v10.3 and later.
Declared in WebJavaPlugIn.h
.
WebJNIReturnTypeFloat
The return type is a float
value.
Available in Mac OS X v10.3 and later.
Declared in WebJavaPlugIn.h
.
WebJNIReturnTypeDouble
The return type is a double
value.
Available in Mac OS X v10.3 and later.
Declared in WebJavaPlugIn.h
.
Last updated: 2010-02-24