Larry, I'll go out on a limb here and say that since the response is being generated on the server by a servlet or JSP, there is no need for getHeader() or getHeaders() methods because the developer is setting them. The HttpServletResponse interface has addHeader() and addXXXHeader() methods to add headers to the response. There is also the containsHeader() method which returns a boolean.
-Richard --- "Zhang, Larry (L.)" <[EMAIL PROTECTED]> wrote: > Folks, this may be an off topic question, but I am > curious to understand why. > > We know that Http protocol has features such as > Headers. Both response and request have HTTP > headers. It is easy to get the headers in J2EE from > a HttpServletRequest objects using getHeader() > and/or getHeaders() methods, however, there is no > corresponding methods in HttpServletResponse. What > is the reasoning behind this design? > > Thanks. > > Larry Zhang > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > __________________________________ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]