Request Level
The request-response cycle has three phases, the first for transferring user-entered data to the objects associated with the request page, the second for invoking an action method, and the third for generating and returning the response. Figure 16 shows how WebObjects requests are handled at the transaction level.
- WORequest (in Java, Request)
- WOResponse (in Java, Response)
- WOContext (in Java, Context)
Stores essential data about an HTTP request, such as header information, form values, HTTP version, host and page name, and session, context, and sender IDs.
Stores and allows the modification of HTTP response data, such as header information, status, and HTTP version. It also provides convenience methods for appending HTML and simple textual data to the content of the response (that is, the response page).
Provides access to the objects involved in the current cycle, such as the current request, response, session, and application objects. It also stores the component (either the current page or one of its subcomponents) to which the elements of the page make reference when they "push and pull" values through association. See "How HTML Pages Are Generated" for an explanation. The WOContext object acts as a "cursor," traversing the object graph during each phase of the request-response loop. The WOContext for a cycle is identified by a unique context ID, which appears in the URL.
Table of Contents Next Section