Package org.jboss.netty.handler.codec.http.websocketx
package org.jboss.netty.handler.codec.http.websocketx
Encoder, decoder, handshakers and their related message types for
Web Socket data frames.
This package supports different web socket specification versions (hence the X suffix). The specification current supported are:
- draft-ietf-hybi-thewebsocketprotocol-00
- draft-ietf-hybi-thewebsocketprotocol-07
- draft-ietf-hybi-thewebsocketprotocol-10
- RFC 6455 (originally draft-ietf-hybi-thewebsocketprotocol-17)
For the detailed instruction on adding add Web Socket support to your HTTP
server, take a look into the WebSocketServerX example located in the
org.jboss.netty.example.http.websocket
package.
-
ClassDescriptionWeb Socket frame containing binary dataWeb Socket Frame for closing the connectionWeb Socket continuation frame containing continuation text or binary data.Web Socket frame containing binary dataWeb Socket frame containing binary dataWeb Socket text frame with assumed UTF-8 encodingChecks UTF8 bytes for validity before converting it into a stringDecodes
ChannelBuffer
s intoWebSocketFrame
s.Encodes aWebSocketFrame
into aChannelBuffer
.Decodes a web socket frame from wire protocol version 7 format.Encodes a web socket frame into wire protocol version 7 format.Decodes a web socket frame from wire protocol version 8 format.Encodes a web socket frame into wire protocol version 8 format.Decodes a web socket frame from wire protocol version 13 format.Encodes a web socket frame into wire protocol version 13 format.Base class for web socket client handshake implementationsPerforms client side opening and closing handshakes for web socket specification version draft-ietf-hybi-thewebsocketprotocol- 00Performs client side opening and closing handshakes for web socket specification version draft-ietf-hybi-thewebsocketprotocol- 07Performs client side opening and closing handshakes for web socket specification version draft-ietf-hybi-thewebsocketprotocol- 10Performs client side opening and closing handshakes for web socket specification version draft-ietf-hybi-thewebsocketprotocol- 17Instances the appropriate handshake class to use for clientsBase class for web socket framesHandler that aggregate fragmented WebSocketFrame's.Type of web socket framesException during handshaking processBase class for server side web socket opening and closing handshakesPerforms server side opening and closing handshakes for web socket specification version draft-ietf-hybi-thewebsocketprotocol- 00Performs server side opening and closing handshakes for web socket specification version draft-ietf-hybi-thewebsocketprotocol- 07Performs server side opening and closing handshakes for web socket specification version draft-ietf-hybi-thewebsocketprotocol- 10Performs server side opening and closing handshakes for RFC 6455 (originally web socket specification version draft-ietf-hybi-thewebsocketprotocol- 17).Instances the appropriate handshake class to use for serversHandles WebSocket control frames (Close, Ping, Pong) and data frames (Text and Binary) are passed to the next handler in the pipeline.Handles the HTTP handshake (the HTTP Upgrade request)TODO Document me.Versions of the web socket specification.