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 ChannelHandler
ChannelHandler.Sharable -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate static final InternalLoggerprivate final Stringprivate final String -
Constructor Summary
ConstructorsConstructorDescriptionWebSocketServerProtocolHandshakeHandler(String websocketPath, String subprotocols, boolean allowExtensions) -
Method Summary
Modifier and TypeMethodDescriptionvoidexceptionCaught(ChannelHandlerContext ctx, Throwable cause) private static StringgetWebSocketLocation(ChannelPipeline cp, HttpRequest req, String path) voidInvoked when a message object (e.g:ChannelBuffer) was received from a remote peer.private static voidsendHttpResponse(ChannelHandlerContext ctx, HttpRequest req, HttpResponse res)
-
Field Details
-
logger
-
websocketPath
-
subprotocols
-
allowExtensions
private final boolean allowExtensions
-
-
Constructor Details
-
WebSocketServerProtocolHandshakeHandler
-
-
Method Details
-
messageReceived
Description copied from class:SimpleChannelUpstreamHandlerInvoked when a message object (e.g:ChannelBuffer) was received from a remote peer.- Overrides:
messageReceivedin classSimpleChannelUpstreamHandler- Throws:
Exception
-
exceptionCaught
- Throws:
Exception
-
sendHttpResponse
-
getWebSocketLocation
-