![]()
|
||||||||||||||||
DropletSupport The
Droplets Platform uses a Web server to serve image and parameter files
to its client-side GUIs. Droplets can interoperate with any Web server
to this end, but in order to use the Droplets Platform HTTP
Tunnel (and thus communicate over port 80) or Redirector
you need to use either the Microsoft IIS or Apache
Web server.
*there
must be one imagedir for each application skin served by the Droplets
Server
DropletSupportThe DropletSupport directory contains the IIS Web server-specific files, specifically the HTTP Tunnel for enabling client/server communication over port 80, and the Redirector for serving graphics files.
HTTP TunnelThe Droplets Platform's HTTP Tunnel (36KB) allows the Droplets Server to speak (in conjunction with the Web server) in HTTP over port 80. This is necessary because many Internet users access their Droplets from work behind a firewall which has the Droplets Protocol's native port (8194) closed. When there is no firewall (or the firewall is configured to accept connections over port 8194) the Droplets Server and Client speak to one another through a persistent connection over 8194 using the Droplets Protocol. When this is not possible, the HTTP Tunnel wraps the Droplets Protocol in HTTP and sends it over port 80 via the Web Server. The HTTP Tunnel should always be installed on the same machine as its Web server. The HTTP Tunnel file's name is DropletHttpTunnel.dll. It should always be located at:
The Droplets Redirector (32KB) is a specialized tool for the serving of graphics files (GIFs and JPEGs) to your Droplets. It fetches images from specific URLs on behalf of the Droplets Client, because when running as an applet the Client can speak to only one server. The Redirector file's name is DropletRediretor.dll. It should always be located at:
SecureDropletSupportThe Droplets Server can host secure Droplets that are rendered via HTTPS in conjunction with an IIS Web server. To this end, when you install the Droplets UI Server for Windows, an IIS directory is created called "SecureDropletSupport", which contains a Droplets HTTP Tunnel for communication via HTTPS. You must therefore secure the SecureDropletSupport directory as you would any other secure directory, associating an X.509 certificate with it and enabling it to speak HTTPS. See the Secure Droplets tutorial for any known issues with Droplets support of HTTPS.
Two separate directories must be in place within your Web server's file structure in order for an application skin to be served, a custom directory which contains params.txt and an imagejar. In addition, if you're going to serve multiple skins from your Web server, you'll need a separate params.txt directory and imagejar for each of them, plus a skins.txt file with information on all skin directories. Creating a skin directoryFor each application skin that you serve with your Droplets application(s), there must be a corresponding directory that contains the following files:
params.txt; These files can be in any directory within the Web server's directory structure that you wish. One way to group them is to create one directory per skin under the Web server's root directory; if you're serving multiple Droplet applications, though, you'll want to create a separate directory for each of these, with a sub-directory for each of their skins. Regardless, each skin directory must be indicated correctly in the Droplets application's .drp file, which is generated by one of your Web pages; you should therefore make sure that the location of your skin directory matches the imagedir location as defined in your .drp-generating Web page. See Web site Integration for more information on this. params.txt is a text file that gives the Droplets Client its appearance parameters. For more information on skinning, see the Skinning Droplets document for developers.
The imagejarThe imagejar is a zipped version of the Skin directory structure. While it's not strictly required by the Droplets Platform, it is highly recommended because it greatly speeds application performance. Using it, applications fetch all of their graphics files in a single connection (as opposed to one HTTP connection per image). If you do use an imagejar, you should have one imagejar for each of the skins that you are serving in your deployment, and they must be located in the root directory of your Web server (i.e. wwwroot for IIS). Typically, it has a descriptive name that associates it with its skin, for example:
depending on whether you're serving one or more Droplet applications.
If you do use an imagejar, you'll still have to have a separate skin directory with the application skins' params.txt file, but there will be no need to store the individual GIFs in the Web server directory.
Skins.txtIn order to serve multiple application skins per Droplets application, a file named skins.txt must be placed in:
where "AppName" represents the calc value in the application .drp file (i.e. its name) with which these skins should be associated. The purpose of skins.txt is to alert the Droplets Platform to the names and locations of each skin directory (more on that in the next section). This file is simply a listing of skin names along with the URL of their params.txt file and the name of its associated GIF file. Each has the format skin name | reserved | skindir | skinjar:
"Help with this Droplet"It's possible to include online help with Droplets applications, using either online help generators or written yourself in HTML. When you do use online help with the Droplets Platform, it must be placed in the DropletConfig directory as follows:
where
"AppName" stands
in for the calc parameter
in the application's .drp
file (i.e. its name) and help.html
is the first page opened in the help directory. Droplet Email, for example,
has its help files located in wwwroot\DropletConfig\Apps\Email.
|
||||||||||||||||