In all of the method annotations javadoc, it ends with the statement ...
"The parameters may be listed in any order."
But didn't the EG decide that the string or java primitive parameters (that
are also annotated with @WebSocketPathParam) should always be last in the
parameter list?
I would hate to see ...
@WebSocketEndpoint("/channel/{userid}/{visibility}")
public class ChatSocket {
@WebSocketMessage
public void onPartialMessage(@WebSocketPathParam("visibility") boolean
visibility, boolean finalData, Session session,
@WebSocketPathParam("userid") String userid, ByteBuffer data)
{
}
}
--
Joakim Erdfelt <joakim_at_intalio.com>
webtide.com <http://www.webtide.com/>
Developer advice, services and support
from the Jetty & CometD experts
eclipse.org/jetty - cometd.org