Why there is no getHeader(String headerName) and getHeaders() met hod in HttpServletResponse?

2004-03-26 Thread Zhang, Larry (L.)
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()

Re: Why there is no getHeader(String headerName) and getHeaders() met hod in HttpServletResponse?

2004-03-26 Thread Richard Yee
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

RE: Why there is no getHeader(String headerName) and getHeaders() met hod in HttpServletResponse?

2004-03-26 Thread Zhang, Larry (L.)
Richard, Thanks for your answers. I think that makes great sense; though I still think to have getHeader() or getHeaders() may be helpful when doing debug for response object. Larry -Original Message- From: Richard Yee [mailto:[EMAIL PROTECTED] Sent: Friday, March 26, 2004 12:06 PM To:

RE: Why there is no getHeader(String headerName) and getHeaders() met hod in HttpServletResponse?

2004-03-26 Thread Yee, Richard K,,DMDCWEST
Larry, For debugging purposes, the org.apache.soap.util.net.TcpTunnelGui utility is useful. It's in the Jakarta Soap project jar file. It will let you view the headers and the markup sent to/from your browser. -Richard -Original Message- From: Zhang, Larry (L.) [mailto:[EMAIL PROTECTED]