beautypg.com

Session level – Apple WebObjects 3.5 User Manual

Page 66

background image

Chapter 5

WebObjects Viewed Through Its Classes

66

Figure 14. Request-Response Loop: Application and Server Level

The HTTP server sends a request to the application’s adaptor. The adaptor
packages the incoming HTTP request in a form the WebObjects application
can understand and forwards it to the application. The application initiates and
manages the process of request handling and returns the completed response to
the adaptor, which gives it to the HTTP server in a form the server can
understand.

Two classes are involved at this level:

WOAdaptor (in Java, Adaptor)

Defines the interface for objects mediating the exchange of data between
an HTTP server and a WebObjects application. This is an abstract class.

WOApplication (in Java, WebApplication)

Receives requests from the adaptor and initiates and coordinates the
request-handling process, after which it returns a response to the adaptor.
WOApplication also creates dynamic elements “on the fly” and manages
adaptors, sessions, application resources, and components.

Session Level

At the session level, the request-response loop looks like that shown in
Figure 15.

adaptor

Request

Response

HTTP server

application