users@websocket-spec.java.net

[jsr356-users] Re: _at_WebSocketMessage javadoc (text format) "converted to that type"

From: Jitendra Kotamraju <jitendra.kotamraju_at_oracle.com>
Date: Thu, 14 Feb 2013 12:47:02 -0800

On 02/14/2013 08:32 AM, Joakim Erdfelt wrote:
> In the javadoc for @WebSocketMessage (text section) it says ...
>
> "Java primitive or class equivalent to receive the whole message
> converted to that type"
> and
> "any object parameter for which the endpoint has a text decoder
> (Decoder.Text or Decoder.TextStream)."
>
> as separate bullet points
>
> Are these not the same concepts?
> In order to be converted, wouldn't you need a Decoder to do it?
There are same concepts. But the support for primitive and its wrapper
class is implicit and endpoint doesn't have
to declare a decoder for that (containers must support these types).


>
> --
> 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/>