[Seaside-dev] server adapter interface changes

Philippe Marschall philippe.marschall at gmail.com
Sun Sep 14 20:37:52 UTC 2008


Hi

This mail describes the changes we did to the server adapter interface
over the weekend. Again it probably only affects Dale and John right
now.

The request handler change has a consequence for the server adapters
as well. They now need to pass the request context instead of the
request to the dispatcher. Server adapters do _not_ .need to set up
the WACurrentRequestContex variable anymore.

In addition to that server adapters that simply use the default
dispatcher are suggested to not cache it but instead send WADispatcher
default for every request. The method does only a nil check and an
instance variable access so there shouldn't be any measurable
performance penalties.

Also be warned that under strange circumstances handleRequest: might
return nil. There is a functional test for this as all as one that
simulates a broken client. You are free to do whatever you feel
appropriate as long as it's a valid HTTP 500 response. However for
security reasons we recommend to not show a stack trace.

You can find the full list of changes done to the server adapter interface at:
http://www.seaside.st/documentation/migration/servers

You can have a look at the Kom and Swazoo 2 implementations as a reference.

Cheers
Philippe


More information about the seaside-dev mailing list