[aida] Custom request handling howto?
Janko Mivšek
janko.mivsek at eranova.si
Tue Nov 20 23:48:16 CET 2007
Michael, just before sleep I'm answering just a simplest question :)
Michael Rueger wrote:
>> This seems also a generalization of current Object>>printWebPageFor:
>> method, which looks a good approach.
>
> I first thought about simply overriding that method on my resource
> subclass, but then some crucial information like the current request is
> missing in that call. (assuming that the last request in the session
> object might not be the one you are currently processing)
Last request actually is a request currently processed and not a
previous one. Well, method name should obviously be better ...Maybe is a
time to rename it? Simply to #currentRequest?
But current request becomes last request after response is sent and
before the next request came. But again, who cares about it during that
time? Well, some housekeeping methods determine a session activity from
timestamp of last request...
So, what is better among two bad choices, that's the question now!
Janko
--
Janko Mivšek
AIDA/Web
Smalltalk Web Application Server
http://www.aidaweb.si
More information about the Aida
mailing list