WebObjects/Web Applications/Development/WO Adaptor
Appearance
(Redirected from Programming:WebObjects/Web Applications/Development/WO Adaptor)
Overview
[edit | edit source]The WOAdaptor layer of WebObjects can be thought of as a broker of requests and responses. Its role in the framework is to:
- Receive incoming requests of some type (typically HTTP)
- It checks for the configuration file where(host) the requset should be send
- opens TCP/IP socket for destination host
- Package them into a WORequest
- Dispatch the WORequest to the WOApplication
- Receive the WOResponse back from the WOApplication
- Send the response back across whatever protocol the adaptor handles
In most cases, you will be dealing with WODefaultAdaptor, which is provides support for HTTP. However, adaptors could receive requests from any number of sources. As an example, Project WOnder includes ERIMAdaptor, which provides support for requests and responses over Instant Messaging networks.