jsr369-experts@servlet-spec.java.net

[jsr369-experts] Re: From JSF EG: HttpServletRequest#getCookie(String name)

From: Mark Thomas <markt_at_apache.org>
Date: Thu, 10 Sep 2015 12:01:18 +0100

On 09/09/2015 22:49, Edward Burns wrote:
>>>>>> On Wed, 9 Sep 2015 13:53:23 +0200, Bauke Scholtz <balusc_at_gmail.com> said:
>
> B> The same applies to HttpServletRequest#getCookie(String name) by the way.
>
> Here's one more. How about adding
>
> public Cookie getCookie(String name)
>
> to HttpServletRequest?
>
> Or do we need to support multiple cookies with the same name such as:
>
> public List<Cookie> getCookie(String name)

Yes we need to support multiple cookies with the same name. The method
should probably be getCookies(String)

The return value should be Cookie[] to be consistent with getCookies()

Mark