You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by "Anil K. Vijendran" <An...@eng.sun.com> on 2000/01/21 17:57:37 UTC

ResponseImpl vs HttpServletResponseAdapter

What exactly is the division of responsiblities between ResponseImpl (RI) 
and HttpServletResponseAdapter (HSRA)? Anyone know? 

Some baaad stuff going on here. RI has its own state for headers and such.
HSRA overrides some of the methods (but not all) and uses its own state
variables.

Am trying to track a watchdog failure: AddHeader tests. Seemed like some
serious magic was going on when my printlns in RI.setHeader work but
printlns in RI.addHeader don't. Then I see that HSRA has overridden one
but not the other :-) 

--
Peace, Anil +<:-)



Re: ResponseImpl vs HttpServletResponseAdapter

Posted by co...@costin.dnt.ro.
> What exactly is the division of responsiblities between ResponseImpl (RI) 
> and HttpServletResponseAdapter (HSRA)? Anyone know? 

I didn't had time to change ResponseAdapter, it should go away and merged
into ResponseImpl. It was added as a layer between adapters and the
Response object, but now Response is an interface ( in both tomcat and
Catalina), and adapters can implement Response or extend ResponseImpl.


Costin