Sun Microsystems 5.1.1 manual Collaboration Example, SendResponse Example

Models: 5.1.1

1 114
Download 114 pages 56.55 Kb
Page 26
Image 26

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.

Page 26
Image 26
Sun Microsystems 5.1.1 manual Collaboration Example, SendResponse Example