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