users@websocket-spec.java.net

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

From: Jitendra Kotamraju <jitendra.kotamraju_at_oracle.com>
Date: Tue, 12 Feb 2013 16:00:19 -0800

On 2/12/13 2:54 PM, Joakim Erdfelt wrote:
> 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?
I think it should return empty list(Effective java advocates to return
empty collections.)

Jitu
>
> (and for that matter, same question applies to other getters of
> collections in the api)
>
> --
> Joakim Erdfelt <joakim_at_intalio.com <mailto:joakim_at_intalio.com>>
> webtide.com <http://www.webtide.com/>
> Developer advice, services and support
> from the Jetty & CometD experts
> eclipse.org/jetty <http://eclipse.org/jetty/> - cometd.org
> <http://cometd.org/>
>
>
> On Tue, Feb 12, 2013 at 3:37 PM, Danny Coward <danny.coward_at_oracle.com
> <mailto: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 <mailto:joakim_at_intalio.com>>
>> webtide.com <http://www.webtide.com/>
>> Developer advice, services and support
>> from the Jetty & CometD experts
>> eclipse.org/jetty <http://eclipse.org/jetty/> - cometd.org
>> <http://cometd.org/>
>
>
> --
> <http://www.oracle.com> *Danny Coward *
> Java EE
> Oracle Corporation
>
>