Class WebSocketServerProtocolHandshakeHandler
java.lang.Object
org.jboss.netty.channel.SimpleChannelUpstreamHandler
org.jboss.netty.handler.codec.http.websocketx.WebSocketServerProtocolHandshakeHandler
- All Implemented Interfaces:
ChannelHandler
,ChannelUpstreamHandler
Handles the HTTP handshake (the HTTP Upgrade request)
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jboss.netty.channel.ChannelHandler
ChannelHandler.Sharable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean
private static final InternalLogger
private final String
private final String
-
Constructor Summary
ConstructorsConstructorDescriptionWebSocketServerProtocolHandshakeHandler
(String websocketPath, String subprotocols, boolean allowExtensions) -
Method Summary
Modifier and TypeMethodDescriptionvoid
exceptionCaught
(ChannelHandlerContext ctx, Throwable cause) private static String
getWebSocketLocation
(ChannelPipeline cp, HttpRequest req, String path) void
Invoked when a message object (e.g:ChannelBuffer
) was received from a remote peer.private static void
sendHttpResponse
(ChannelHandlerContext ctx, HttpRequest req, HttpResponse res) Methods inherited from class org.jboss.netty.channel.SimpleChannelUpstreamHandler
channelBound, channelClosed, channelConnected, channelDisconnected, channelInterestChanged, channelOpen, channelUnbound, childChannelClosed, childChannelOpen, exceptionCaught, handleUpstream, writeComplete
-
Field Details
-
logger
-
websocketPath
-
subprotocols
-
allowExtensions
private final boolean allowExtensions
-
-
Constructor Details
-
WebSocketServerProtocolHandshakeHandler
-
-
Method Details
-
messageReceived
Description copied from class:SimpleChannelUpstreamHandler
Invoked when a message object (e.g:ChannelBuffer
) was received from a remote peer.- Overrides:
messageReceived
in classSimpleChannelUpstreamHandler
- Throws:
Exception
-
exceptionCaught
- Throws:
Exception
-
sendHttpResponse
-
getWebSocketLocation
-