PATH  WebObjects 4.0 Documentation > WebObjects Framework Reference



WORequestHandler

Inherits From:
NSObject

Conforms To: NSObject (NSObject)

Declared in: WebObjects/WOResourceManager.h


Class Description

WORequestHandler is an abstract class that defines request handlers. A request handler is an object that can handle requests received by the WebObjects adaptor. All WebObjects applications have multiple request handlers that can handle certain types of requests. Three private request handlers are defined in the WebObjects framework:

These three request handlers handle most styles of requests that an application can typically receive. If you want to create your own style of request, then you should write your own WORequestHandler. Unless you write your own request handler, your code typically won't have to directly interact with WORequestHandler objects at all.


Adopted Protocols

NSLocking
- lock
- unlock

Method Types

Handling Requests
- handleRequest:

Instance Methods


handleRequest:

- (WOResponse *)handleRequest:(WORequest *)aRequest

Request handlers must implement this method and perform all request-specific handling. (See "Writing Your Own Request Handler" in the class description for examples. <<Find this cross-ref>>) By default, a request is an HTTP request. You must supply your own server-side adaptor to accept anything other than HTTP.





Copyright © 1998, Apple Computer, Inc. All rights reserved.