Daniel Fagerstrom wrote:
I would like o.a.c.environment.[Request|Response|Session] to extend
javax.servlet.http.Http[ServletRequest|ServletResponse|Session]
respectively.
The gain of doing so is that it will be easier to reuse Cocoon
components outside Cocoon and that it will be simpler to use Cocoon
together with other frameworks (see
http://thread.gmane.org/gmane.text.xml.cocoon.devel/59035/focus=59143
for a discussion about this).
A drawback is that some slight back incompatibility is introduced. The
most important one Request.getSession will have HttpSession as return
type instead of Session, and that user code needs to switch from Session
to HttpSession or downcast the return value to Session. Uses of
o.a.c.environment.Cookie needs to be switched to
javax.servlet.http.Cookie, (which has exactly the same API), see
http://article.gmane.org/gmane.text.xml.cocoon.devel/74322 and
http://thread.gmane.org/gmane.text.xml.cocoon.devel/74276.
I don't want this to collide with releasing 2.2, so I'll wait with
introducing the changes if there is any risk for that.
If we follow our release policies, we wouldn't be allowed to introduce this
change for any 2.2.x release and 2.3 is far away I'd guess. But since we have
released the first series of RC1 without having announced them so far, my vote
is +1.
--
Reinhard Pötz Independent Consultant, Trainer & (IT)-Coach
{Software Engineering, Open Source, Web Applications, Apache Cocoon}
web(log): http://www.poetz.cc
--------------------------------------------------------------------