RE: Slightly OT: NoBodyResponse

2004-03-17 Thread Shapira, Yoav

Hi,

While I was reading some mail archives today, I stumbles stumbled over
a few postings discribing problems with webapplications referring to a
class called javax.servlet.http.NoBodyResponse and sometimes
javax.servlet.http.NoBodyOutputStream. I was curious, so I browsed
through the javadocs. The odd this is, this class in not mentioned in
any of the recent versions of the servlet api. My second guess was
that it must be a tomcat specific extension (as many postings
mentioned running tomcat), but it's not part of tomcat's javadocs,
either. Perhaps any of you guys could enighten me...

These are private support classes of the Servlet API.  They're still
present, but they're file-private inner classes and thus no in the
JavaDoc (intentionally).  The class name you're quoting for them is
wrong, by the way: it's javax.servlet.http.HttpServlet$NoBodyResponse
and javax.servlet.http.HttpServlet$NoBodyOutputStream.  You can see them
both at
http://cvs.apache.org/viewcvs.cgi/jakarta-servletapi-5/jsr154/src/share/
javax/servlet/http/HttpServlet.java?rev=1.6view=markup.

Your second guess is also wrong, and I wouldn't normally mention this
but it's significant: there's nothing tomcat-specific (or specific to
any server) in the javax.servlet classes.  There can't be, there won't
be, as it's a J2EE standard API.  We can't even accidentally change it,
because although those classes are hosted on our CVS server, we don't
have commit privileges to them.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Slightly OT: NoBodyResponse

2004-03-17 Thread Philipp Taprogge
Hi and thanks for your response!

Shapira, Yoav wrote:
These are private support classes of the Servlet API.  They're still
present, but they're file-private inner classes and thus no in the
JavaDoc (intentionally).
I thought so, that's why I asked.

 The class name you're quoting for them is
wrong, by the way: it's javax.servlet.http.HttpServlet$NoBodyResponse
and javax.servlet.http.HttpServlet$NoBodyOutputStream.
That explains it. As I said, I just quoted them from several newsgroup 
postings I stumbled across.

Your second guess is also wrong, and I wouldn't normally mention this
but it's significant: there's nothing tomcat-specific (or specific to
any server) in the javax.servlet classes.
It would by all means be bad practice and I would never imply that the 
tomcat developers worked that way, but since HttpServletResponse is 
not final, it could hypothetically be extended by a third party inside 
the same package. I just thought I might have accidently discovered a 
sin of the past ;-)
Thanks for your clarification.

	Phil

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]