
Chapter 3 | Section 3.3 |
Understanding the HTTPS eWay OTD | HTTPS Server OTD |
Collaboration Example
The following example shows a simple Java Collaboration that retrieves the HTTP method from the Request node via the Method property, creates an HTML response indicating the HTTP method retrieved from the request, sets the ContentType property as “text/html” on the Response node, sets the Text property with the HTML response, and then calls the sendResponse() method on the HTTP server input OTD to send the constructed response to the HTTP client.
Figure 7 sendResponse() Example
HTTPS eWay Adapter User’s Guide | 26 | Sun Microsystems, Inc. |