[undertow-dev] Minor problem with UndertowSession#addMessageHandler(MessageHandler)
Stuart Douglas
sdouglas at redhat.com
Tue Nov 5 03:31:38 EST 2013
Yes, this is a bug. Can you please file a JIRA at https://issues.jboss.org/browse/UNDERTOW?
Thanks,
Stuart
----- Original Message -----
> From: "Andrej Golovnin" <golovnin at gmx.net>
> To: undertow-dev at lists.jboss.org
> Sent: Monday, 4 November, 2013 9:30:07 PM
> Subject: [undertow-dev] Minor problem with UndertowSession#addMessageHandler(MessageHandler)
>
> Hi all,
>
> there is a minor problem with the current implementation of
> UndertowSession#addMessageHandler(MessageHandler).
>
> If we have the following MessageHandler implementation:
>
> class MessageHandlerImpl implements Part<byte>, Whole<PongMessage> {
>
> public void onMessage(byte[] bytes, boolean last) {
> }
>
> public void onMessage(PongMessage pongMessage) {
> }
>
> }
>
> then only one of the #onMessage-methods would be added as
> a message handler (s. FrameHandler#addHandler() and
> ClassUtils.getHandlerType() for details). The other is ignored.
>
> IMO the current Java WebSockets API spec does not prohibits
> this kind of MessageHandler implementation.
>
> Would you say it is a bug in Undertow?
>
> Best regards,
> Andrej Golovnin
> _______________________________________________
> undertow-dev mailing list
> undertow-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/undertow-dev
>
More information about the undertow-dev
mailing list