Using the Java SDK
Working with server side events and the Host Access for the Cloud SDK you can supply procedural Java code that can extend and improve the presentation of host data. To help you create server side events, Host Access for the Cloud has an SDK to provide you with a starting point.
The API documentation, including samples, is available in a ZIP file (hacloud-extras-<version>.zip
) from the same download location as the Host Access for the Cloud product files. They are also always available online: Javadocs.
-
You enable extensions in the Host Access For The Cloud console. There are detailed instructions available from the Extension page help icon .
-
Write the Java code necessary to accomplish the task and compile the code into a Java class within a JAR (Java Archive) file.
-
Copy the JAR file to a folder named
/server
and create a ZIP file containing the/server
folder at the root and any other extensions you want to use. -
From the Admin Console drop-down menu, open Host Access for the Cloud.
-
Using the Extension page, upload the ZIP file.
-
Redeploy the service.
-
As you configure the session in the web client, from Settings, click Customization, and type the fully qualified class name to the event.
-
Launch the session and test the event.