PATH |
WOAdaptor
Inherits from: Object
Package: com.webobjects.appserver
Class Description
WOAdaptor is an abstract class that represents objects that can receive events from a WebObjects adaptor. A WebObjects adaptor is a process that handles communication between the server and a WebObjects application. The WebObjects application (a WOApplication instance) communicates with the adaptor using messages defined in the WOAdaptor class.
The purpose of the WOAdaptor class is to perform these tasks:
- Register with the application's run loop to begin receiving events.
- Receive incoming events from the run loop and package them as WORequest objects.
- Forward the WORequest to the WOApplication by sending it the message dispatchRequest.
- Receive the WOResponse object from the WOApplication and send it to the client using an RPC mechanism.
Constants
WOAdaptor constants:
Class Variable | Description |
DefaultListenQueueSize |
This class constant is an integer that specifies the maximum queue length for the listener thread. WOAdaptor's implementation sets this value to 128. Override this value by changing the WOListenQueueSize property. |
Method Types
Constructors WOAdaptor Obtaining attributes doesBusyRunOnce dispatchesRequestsConcurrently port Event registering registerForEvents unregisterForEvents Running runOnce
Constructors
WOAdaptor
public WOAdaptor( String aName, NSDictionary someArguments)
The WOApplication method adaptorWithName invokes this message when it encounters an WOAdaptor option on the command line. The WOApplication retains each of its WOAdaptors.
See Also: adaptorWithName (WOApplication class)
Instance Methods
dispatchesRequestsConcurrently
public boolean dispatchesRequestsConcurrently()
See Also: adaptorsDispatchRequestsConcurrently (WOApplication class)
doesBusyRunOnce
public boolean doesBusyRunOnce()
port
public int port()
After the application's constructor has been called, port returns the port number on which this adaptor will listen. During execution of the application's constructor, this method returns the value of the WOPort user default (or the value of the -WOPort command-line option, of one was specified when the application was started).
See Also: port (WOApplication class)
registerForEvents
public abstract void registerForEvents()
runOnce
public abstract void runOnce()
See Also: doesBusyRunOnce
toString
public String toString()
unregisterForEvents
public abstract void unregisterForEvents()
© 2001 Apple Computer, Inc. (Last Published April 15, 2001)