cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reinhard Poetz <>
Subject Re: [vote] Let our environment abtractions extend the http servlet ones
Date Sat, 04 Aug 2007 15:19:18 GMT
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 
> 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 
> and 
> 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}


View raw message