WebObjects 5.2

com.webobjects.appserver
Interface WOActionResults

All Known Implementing Classes:
WOComponent, WOResponse

public interface WOActionResults

The WOActionResults interface is the return type for direct actions. As a convenience, direct actions can return either WOComponent objects or WOResponse objects, both of which implement the WOActionResults interface. This interface defines only one method: generateResponse.

If you want to return any other class from a direct action, then that class must implement this interface.

See Also:
generateResponse()

Method Summary
 WOResponse generateResponse()
          Returns a response object.
 

Method Detail

generateResponse

public WOResponse generateResponse()
Returns a response object. WOResponse's implementation of this method returns the receiver. WOComponent's implementation of this method calls appendToResponse on itself and all children components in its template and returns the result as a WOResponse object. If you want to return any other class from a direct action, then that class must implement this method.
Returns:
a response object

Last updated Fri Feb 21 13:15:00 PST 2003.

Copyright © 2003 Apple Computer, Inc.