I've noticed that the HttpServletRequest.getHeaders doc is contradictory.
The 2nd paragraph of the "description" section (see bellow) says that if no
headers are found it returns an empty enumeration while in the "Returns"
section it says that in such case it returns null.
Any comments or experiences with this?
Walter Lara
Intel Corp.

public java.util.Enumeration getHeaders(java.lang.String name)
----------------------------------------------------------------------------
-------------
Returns all the values of the specified request header as an Enumeration of
String objects.
Some headers, such as Accept-Language can be sent by clients as several
headers each with a different value rather than sending the header as a
comma separated list.

If the request did not include any headers of the specified name, this
method returns an empty Enumeration. The header name is case insensitive.
You can use this method with any request header.

Parameters
-----------------

name - a String specifying the header name

Returns
-----------
a Enumeration containing the values of the requested header, or null if the
request does not have any headers of that name

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to