PATH |
- Inherits from:
- com.webobjects.appserver.WOComponent
- Package:
- com.webobjects.eodistribution
WOJavaClientApplet is the web component used by Java Client applications to create and download to the client an applet of class com.apple.client.interface.EOApplet. This component passes several parameters to the applet, including the dimensions, code/codebase, and additional EOApplication-specific parameters-such as the initial EOInterfaceController subclass name and language.
WOJavaClientApplet is able to generate the HTML required by SunSoft's Java Plug-in for Microsoft's Internet Explorer and Netscape's browsers. The plug-in is usually required for Netscape, while Internet Explorer often works without it (whether or not the plug-in is required depends on the applet's contents).
Java Client applications can be started outside of a web browser using the following command-line syntax:
java -classpath path_list com.apple.client.eointerface.EOApplication application_urlWhen a Java Client application is started outside of a browser, the WOJavaClientApplet is still used on the server side to determine the additional EOApplication-specific parameters. Thus the bindings listed below can still apply even in the absence of a web browser.
The following tables lists those bindings used by WOJavaClientApplet:
Binding | Description |
width | Width of applet in the HTML page. |
height | Height of applet in the HTML page. |
useJavaPlugin | If this flag is true, the WOJavaClientApplet generates HTML that causes Internet Explorer and Netscape's browsers to use SunSoft's Java Plug-in. |
archive | Standard applet parameter. |
code | Standard applet parameter. |
codebase | Standard applet parameter. |
distributionContext | The EODistributionContext used by the applet to handle requests from the client. If the WOJavaClientApplet does not have a binding for the distribution context, it instantiates one with the session's defaultEditingContext, sets the session as the delegate of the distribution context, and itself as the invocation target. |
interfaceControllerClassName | The class name of the initial EOInterfaceController subclass that becomes visible when an application is launched (in the applet if launched inside a browser). |
applicationClassName | The name of the EOApplication subclass implementing the application. |
language | The preferred language for the application. |
channelClassName | The class name of the distribution channel to be used by the client. |
temporaryGIDBase | The base from which temporary global ID's are generated. |
allParameterNames | An NSArray containing the applet's parameters. |
sessionID | The receiver's session ID. |
componentURL | The URL for the receiver's action. |
WOJavaClientApplet defines the following String constants. Each constant corresponds to a WOJavaClientApplet binding and is a key for use in the dictionary returned by clientSideRequestApplicationParameters.
Constant | Corresponding Binding |
WidthKey | width |
HeightKey | height |
UseJavaPluginKey | useJavaPlugin |
ArchiveKey | archive |
CodeKey | code |
CodebaseKey | codebase |
DistributionContextKey | distributionContext |
InterfaceControllerClassNameKey | interfaceControllerClassName |
ApplicationClassNameKey | applicationClassName |
LanguageKey | language |
ChannelClassNameKey | channelClassName |
TemporaryGIDBaseKey | temporaryGIDBase |
AllParameterNamesKey | allParameterNames |
SessionIDKey | sessionID |
ComponentURLKey | componentURL |
WOJavaClientApplet also defines String constants for the names of the notifications it posts. For more information, see "Notifications" (page 40).
public WOJavaClientApplet(WOContext context)
public String allParameterNamesString()
public String applicationClassName()
public String archive()
public String channelClassName()
See Also: interfaceControllerClassName
public NSDictionary clientSideRequestApplicationParameters()
See Also: interfaceControllerClassName
public String code()
public String codebase()
public String componentURL()
public EODistributionContext distributionContext()
public Object handleClientRequest()
See Also: responseToClientMessage (EODistributionContext class)
public String interfaceControllerClassName()
See Also: channelClassName, clientSideRequestApplicationParameters
public NSArray otherParameterNames()
public String otherParametersString()
="
value"
name="
value" ...
public String otherParameterValue()
otherParameterName
instance variable.
public String sessionID()
public boolean shouldOmitApplicationClassName()
public boolean shouldOmitChannelClassName()
public boolean shouldOmitInterfaceControllerClassName()
public boolean synchronizesVariablesWithBindings()
public String temporaryGIDBase()
Notification Object | The WOJavaClientApplet that vended a component URL. |
Userinfo | None |
Notification Object | The WOJavaClientApplet that's about to be deallocated. |
Userinfo | None |
© 2001 Apple Computer, Inc. (Last Published April 17, 2001)