EAF 7.4 Implementation

com.lutris.appserver.server.httpPresentation
Class AppletUtils

java.lang.Object
  extended by com.lutris.appserver.server.httpPresentation.AppletUtils

public class AppletUtils
extends java.lang.Object

This is the counterpart to com.lutris.applet.LBSConnection. This class creates tags with extra initialization parameters. LBSConnection reads those extra initialization parameters and uses them to establish a connection back to the Mutliserver. This file is used by a presentation object, while LBSConnection is included in the applet's jar file or classes directory. This way it does not need to include the com.lutris.appserver.server.* classes.

See Also:
com.lutris.applet.LBSConnection.

Method Summary
static java.lang.String createAppletTag(HttpPresentationComms comms, java.lang.String targetURL, java.lang.String options, java.lang.String[] parameterNames, java.lang.String[] parameterValues, java.lang.String alternateHtml)
          This assumes that if cookies are being used, the name of the cookie is the application name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createAppletTag

public static java.lang.String createAppletTag(HttpPresentationComms comms,
                                               java.lang.String targetURL,
                                               java.lang.String options,
                                               java.lang.String[] parameterNames,
                                               java.lang.String[] parameterValues,
                                               java.lang.String alternateHtml)
This assumes that if cookies are being used, the name of the cookie is the application name. This is true if the StandardApplication is being used.

Parameters:
comms - HTTP communications object. Contains objects and interfaces to read the request and send a response.
targetURL - The URL of the presentation object the applet should connect to. For example: "/package/Presentaion.po". The server name and presentation path will automatically be added.
options - A list of various applet options to be included in the applet tag. For example: "code=myApplet.class width=400 height=100". These three are required options.
parameterNames - An array of parameter names, for example: {"X", "Y", "maxIterations"}. This is optional.
parameterValues - An array of parameter values, for example: {"24", "19", "2000"}. Either this an parameterNames must be null, or they must have the same number of elements. parameterNames[i] is matched up with parameterValues[i]. This is optional.
alternateHtml - Any HTML to display if the browser does not support applets. This is optional, and may be null.
Returns:
A string of the form " ..... ".

EAF 7.4 Implementation