(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.
– webPlugInCallJava:isStatic:returnType:method:arguments:callingURL:exceptionDescription: required method
– webPlugInGetApplet required method
Sends a message directly to a Java object in a plug-in. (required)
- (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.hReturns a jobject that represents a Java applet in a WebPlugInContainer. (required)
- (jobject)webPlugInGetApplet
A jobject that represents the applet.
Always invoke this method from within the main thread.
WebJavaPlugIn.hThe return type of the Java method.
typedef enum { WebJNIReturnTypeInvalid = 0,
WebJNIReturnTypeVoid,
WebJNIReturnTypeObject,
WebJNIReturnTypeBoolean,
WebJNIReturnTypeByte,
WebJNIReturnTypeChar,
WebJNIReturnTypeShort,
WebJNIReturnTypeInt,
WebJNIReturnTypeLong,
WebJNIReturnTypeFloat,
WebJNIReturnTypeDouble } WebJNIReturnType;
WebJNIReturnTypeInvalidThe return type is invalid.
Available in Mac OS X v10.3 and later.
Declared in WebJavaPlugIn.h.
WebJNIReturnTypeVoidThe return type is void.
Available in Mac OS X v10.3 and later.
Declared in WebJavaPlugIn.h.
WebJNIReturnTypeObjectThe return type is an object.
Available in Mac OS X v10.3 and later.
Declared in WebJavaPlugIn.h.
WebJNIReturnTypeBooleanThe return type is a Boolean value.
Available in Mac OS X v10.3 and later.
Declared in WebJavaPlugIn.h.
WebJNIReturnTypeByteThe return type is a byte value.
Available in Mac OS X v10.3 and later.
Declared in WebJavaPlugIn.h.
WebJNIReturnTypeCharThe return type is a char value.
Available in Mac OS X v10.3 and later.
Declared in WebJavaPlugIn.h.
WebJNIReturnTypeShortThe return type is a short value.
Available in Mac OS X v10.3 and later.
Declared in WebJavaPlugIn.h.
WebJNIReturnTypeIntThe return type is an int value.
Available in Mac OS X v10.3 and later.
Declared in WebJavaPlugIn.h.
WebJNIReturnTypeLongThe return type is a long value.
Available in Mac OS X v10.3 and later.
Declared in WebJavaPlugIn.h.
WebJNIReturnTypeFloatThe return type is a float value.
Available in Mac OS X v10.3 and later.
Declared in WebJavaPlugIn.h.
WebJNIReturnTypeDoubleThe return type is a double value.
Available in Mac OS X v10.3 and later.
Declared in WebJavaPlugIn.h.
Last updated: 2009-07-23