PATH  WebObjects 4.0 Documentation > What's New in WebObjects 4.0

Table of Contents Previous Section

WORequestHandler Class

A WORequestHandler is an object that can handle requests received by the WebObjects application server. The WORequestHandler class defines three methods.
WORequestHandler
Method Description
handleRequest: Request handlers must implement this method and perform all request-specific handling. By default, a request is an HTTP request. You must supply your own server-side adaptor to accept anything other than HTTP.
lock Locks access to the WORequestHandler object.
unlock Unlocks access to the WORequestHandler object.

A WORequestHandler class must be registered with the WOApplication object before it can be used. When you register a WORequestHandler, you specify a key for that handler, which is used in the URL. This key can be any alphanumeric string, but must contain at least one letter.

Table of Contents Next Section