On 3/25/13 3:49 PM, Mark Thomas wrote:
> On 25/03/2013 22:46, Danny Coward wrote:
>> Hi Mark,
>>
>> I'll pass this one alone too.
> Thanks.
>
>> On 3/25/13 6:26 AM, Mark Thomas wrote:
>>> 6)
>>> What are the allowed values of T for implementations of
>>> MessageHandler.Whole<T> and MessageHandler.Partial<T>. My assumption
>>> (based on OnMessage) is:
>>> Whole:
>>> String, Java primitive or class equivalent, Reader, any class with a
>>> decoder, byte[], ByteBuffer, InputStream
>>> Partial:
>>> String, byte[], ByteBuffer
>> Yes. Is there a test that does not follow the rules here ?
> No, but the spec isn't particularly clear about what is and what is not
> allowed. Could some clarification be added?
Hi Mark - complementing the javadoc on @OnMessage which defines which
parameter types are allowed (not the same, but obviously related),
there's an explicit listing in the javadoc for MessageHandler.Partial
and MessageHandler.Whole on what parametrised types are allowed. I think
that covers it ?
- d
> (and I missed PongMessage)
>
> Cheers,
>
> Mark
>
--
<http://www.oracle.com> *Danny Coward *
Java EE
Oracle Corporation