Table of Contents Previous Section
WODirectAction Initialization
Unlike applications, components, and sessions, WODirectAction objects do not persist between cycles of the request-response loop. A WODirectAction object is initialized at the beginning of a direct action request-response loop cycle and is released or marked for garbage collection at the end of the cycle. The designated initializer for WODirectAction is initWithRequest:. In Java, the constructor must take a WORequest argument, for example:
public DirectAction(WORequest) { ... }In the initWithRequest: method (or constructor), you perform anything that should happen before the WODirectAction performs any of the actions that it declares.
Table of Contents Next Section