
David,
I agree to your statement,
Header names are something constant :-). But parameters passed to the servlet may vary. Sometimes could one parameter take more values (array) But same thing is achivable by returning enumeration from method getParameterValues, as follows.
If I have to develop such methods then I would preffer to keep the return type of all methods same either by applying this logic to getParameterValues
or your logic to methods like getHeaderNames,getParameterNames etc.
(anyone kinldy correct me if I'm going wrong)
So the question still remains,why Sun choose to have different Return type for getParameterValues
Cheers
-P
[ August 26, 2004: Message edited by: Praful Thakare ]
[ August 26, 2004: Message edited by: Praful Thakare ]