public class WebSocketConnectionNegotiator
extends org.jboss.netty.channel.SimpleChannelUpstreamHandler
This handler reacts to Netty's CONNECTED event and handles the handshake of the WebSockets HTTP upgrade handshake. Upon successful completion, it forwards a CONNECTED event upstream to the underlying protocol making use of the websocket transport. For instance, STOMP.
| Constructor and Description |
|---|
WebSocketConnectionNegotiator(InetSocketAddress serverAddress,
Handshake handshake,
boolean useSSL) |
| Modifier and Type | Method and Description |
|---|---|
void |
channelConnected(org.jboss.netty.channel.ChannelHandlerContext context,
org.jboss.netty.channel.ChannelStateEvent e) |
void |
messageReceived(org.jboss.netty.channel.ChannelHandlerContext context,
org.jboss.netty.channel.MessageEvent e) |
public WebSocketConnectionNegotiator(InetSocketAddress serverAddress, Handshake handshake, boolean useSSL) throws NoSuchAlgorithmException
NoSuchAlgorithmExceptionCopyright © 2013 JBoss by Red Hat. All Rights Reserved.