Inherits from: NSObject
Conforms to: NSObject
(NSObject)
Declared in: WebObjects/WOAdaptor.h
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:
- Creation
- - initWithName:arguments:
- Obtaining attributes
- - doesBusyRunOnce
- - dispatchesRequestsConcurrently
- - port
- Event registering
- - registerForEvents
- - unregisterForEvents
- Running
- - runOnce
- (BOOL)dispatchesRequestsConcurrently
See Also: - adaptorsDispatchRequestsConcurrently ( WOApplication class)
- (BOOL)doesBusyRunOnce
- (id)initWithName:(NSString
*)aName
arguments:(NSDictionary *)someArguments
The WOApplication method adaptorWithName:arguments: invokes this message when it encounters an WOAdaptor option on the command line. The WOApplication retains each of its WOAdaptors.
See Also: - adaptorWithName:arguments: ( WOApplication class)
- (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)
- (void)registerForEvents
See Also: - runLoop ( WOApplication class)
- (void)runOnce
See Also: - doesBusyRunOnce
- (void)unregisterForEvents