users@websocket-spec.java.net

[jsr356-users] Re: Session.getNegotiatedExtensions() content?

From: Joakim Erdfelt <joakim_at_intalio.com>
Date: Tue, 12 Feb 2013 15:54:24 -0700

So it is.

I'll doublecheck my api jars ... *grumble* ...

Anyway, second, related question.

Is Extension.getParameters() allowed to return null? or should it at least
return an empty list?

(and for that matter, same question applies to other getters of collections
in the api)

--
Joakim Erdfelt <joakim_at_intalio.com>
webtide.com <http://www.webtide.com/>
Developer advice, services and support
from the Jetty & CometD experts
eclipse.org/jetty - cometd.org
On Tue, Feb 12, 2013 at 3:37 PM, Danny Coward <danny.coward_at_oracle.com>wrote:
>  Hi Joakim,
>
> We changed it to
>
>     List<Extension> getNegotiatedExtensions();
>
> sometime after public draft - its in the v012 API.
>
> Cheers,
>
> - Danny
>
>
>
> On 2/12/13 2:21 PM, Joakim Erdfelt wrote:
>
> In Session.getNegotiatedExtensions() the return is a List<String>
>
>  Is the entries for this the extension names only?
> Or do they contain the extension configuration (parameters) as well?
> Suggestion, how about changing this return type to
> List<javax.websocket.Extension> instead?
>
>  --
> Joakim Erdfelt <joakim_at_intalio.com>
> webtide.com <http://www.webtide.com/>
> Developer advice, services and support
> from the Jetty & CometD experts
> eclipse.org/jetty - cometd.org
>
>
>
> --
>   <http://www.oracle.com> * Danny Coward *
>  Java EE
> Oracle Corporation
>