| 程序包 | 说明 | 
|---|---|
| org.jboss.netty.bootstrap | 
 IoC/DI friendly helper classes which enable an easy implementation of
 typical client side and server side channel initialization. 
 | 
| org.jboss.netty.channel | 
 The core channel API which is asynchronous and event-driven abstraction of
 various transports such as a
 NIO Channel. 
 | 
| org.jboss.netty.channel.group | 
 A channel registry which helps a user maintain the list of open
  
Channels and perform bulk operations on them. | 
| org.jboss.netty.channel.local | 
 A virtual transport that enables the communication between the two
 parties in the same virtual machine. 
 | 
| org.jboss.netty.channel.socket | 
 Abstract TCP and UDP socket interfaces which extend the core channel API. 
 | 
| org.jboss.netty.channel.socket.nio | 
 NIO-based socket channel
 API implementation - recommended for a large number of connections (>= 1000). 
 | 
| org.jboss.netty.example.factorial | |
| org.jboss.netty.example.portunification | |
| org.jboss.netty.handler.codec.base64 | 
 Encoder and decoder which transform a
 Base64-encoded
  
String or ChannelBuffer
 into a decoded ChannelBuffer and vice versa. | 
| org.jboss.netty.handler.codec.compression | 
 Encoder and decoder which compresses and decompresses  
ChannelBuffers
 in a compression format such as zlib
 and gzip. | 
| org.jboss.netty.handler.codec.frame | 
 Extensible decoder and its common implementations which deal with the
 packet fragmentation and reassembly issue found in a stream-based transport
 such as TCP/IP. 
 | 
| org.jboss.netty.handler.codec.http | 
 Encoder, decoder and their related message types for HTTP. 
 | 
| org.jboss.netty.handler.codec.http.websocketx | 
 Encoder, decoder, handshakers and their related message types for
 Web Socket data frames. 
 | 
| org.jboss.netty.handler.codec.marshalling | 
 Decoder and Encoder which uses JBoss Marshalling. 
 | 
| org.jboss.netty.handler.codec.oneone | 
 Simplistic abstract classes which help implement encoder and decoder that
 transform an object into another object and vice versa. 
 | 
| org.jboss.netty.handler.codec.protobuf | 
 Encoder and decoder which transform a
 Google Protocol Buffers
  
com.google.protobuf.Message into a ChannelBuffer
 and vice versa. | 
| org.jboss.netty.handler.codec.replay | 
 Specialized variation of  
FrameDecoder
 which enables implementation of a non-blocking decoder in the blocking I/O
 paradigm. | 
| org.jboss.netty.handler.codec.rtsp | 
 An RTSP
 extension based on the HTTP codec. 
 | 
| org.jboss.netty.handler.codec.serialization | 
 Encoder, decoder and their compatibility stream implementations which
 transform a  
Serializable object into a byte buffer and
 vice versa. | 
| org.jboss.netty.handler.codec.socks | 
 Encoder, decoder and their related message types for Socks. 
 | 
| org.jboss.netty.handler.codec.spdy | 
 Encoder, decoder, session handler and their related message types for the SPDY protocol. 
 | 
| org.jboss.netty.handler.codec.string | 
 Encoder and decoder which transform a  
String into a
 ChannelBuffer and vice versa. | 
| org.jboss.netty.handler.ssl | 
 SSL ·
 TLS implementation based on  
SSLEngine | 
| org.jboss.netty.handler.timeout | 
 Adds support for read and write timeout and idle connection notification
 using a  
Timer. | 
| 限定符和类型 | 方法和说明 | 
|---|---|
Channel | 
ServerBootstrap.bind()
Creates a new channel which is bound to the local address which was
 specified in the current  
"localAddress" option. | 
Channel | 
ConnectionlessBootstrap.bind()
Creates a new channel which is bound to the local address which was
 specified in the current  
"localAddress" option. | 
Channel | 
ServerBootstrap.bind(java.net.SocketAddress localAddress)
Creates a new channel which is bound to the specified local address. 
 | 
Channel | 
ConnectionlessBootstrap.bind(java.net.SocketAddress localAddress)
Creates a new channel which is bound to the specified local address. 
 | 
| 限定符和类型 | 接口和说明 | 
|---|---|
interface  | 
ServerChannel
 | 
| 限定符和类型 | 类和说明 | 
|---|---|
class  | 
AbstractChannel
A skeletal  
Channel implementation. | 
class  | 
AbstractServerChannel
A skeletal server-side  
Channel implementation. | 
| 限定符和类型 | 方法和说明 | 
|---|---|
Channel | 
UpstreamMessageEvent.getChannel()  | 
Channel | 
UpstreamChannelStateEvent.getChannel()  | 
Channel | 
DownstreamMessageEvent.getChannel()  | 
Channel | 
DownstreamChannelStateEvent.getChannel()  | 
Channel | 
DefaultWriteCompletionEvent.getChannel()  | 
Channel | 
DefaultExceptionEvent.getChannel()  | 
Channel | 
DefaultChildChannelStateEvent.getChannel()  | 
Channel | 
DefaultChannelPipeline.getChannel()  | 
Channel | 
DefaultChannelFuture.getChannel()  | 
Channel | 
CompleteChannelFuture.getChannel()  | 
Channel | 
ChildChannelStateEvent.getChannel()
Returns the parent  
Channel which is associated
 with this event. | 
Channel | 
ChannelPipeline.getChannel()
Returns the  
Channel that this pipeline is attached to. | 
Channel | 
ChannelHandlerContext.getChannel()
Returns the  
Channel that the ChannelPipeline belongs to. | 
Channel | 
ChannelFuture.getChannel()
Returns a channel where the I/O operation associated with this
 future takes place. 
 | 
Channel | 
ChannelEvent.getChannel()
Returns the  
Channel which is associated with this event. | 
Channel | 
DefaultChildChannelStateEvent.getChildChannel()  | 
Channel | 
ChildChannelStateEvent.getChildChannel()
Returns the child  
Channel whose state has been changed. | 
Channel | 
Channel.getParent()
Returns the parent of this channel. 
 | 
Channel | 
AbstractChannel.getParent()  | 
Channel | 
ChannelFactory.newChannel(ChannelPipeline pipeline)
 | 
| 限定符和类型 | 方法和说明 | 
|---|---|
java.util.Iterator<java.util.Map.Entry<Channel,T>> | 
ChannelLocal.iterator()
Returns a read-only  
Iterator that holds all Map.Entry's of this ChannelLocal | 
| 限定符和类型 | 方法和说明 | 
|---|---|
void | 
DefaultChannelPipeline.attach(Channel channel,
      ChannelSink sink)  | 
void | 
ChannelPipeline.attach(Channel channel,
      ChannelSink sink)
Attaches this pipeline to the specified  
Channel and
 ChannelSink. | 
static ChannelFuture | 
Channels.bind(Channel channel,
    java.net.SocketAddress localAddress)
Sends a  
"bind" request to the last
 ChannelDownstreamHandler in the ChannelPipeline of
 the specified Channel. | 
static ChannelFuture | 
Channels.close(Channel channel)
Sends a  
"close" request to the last
 ChannelDownstreamHandler in the ChannelPipeline of
 the specified Channel. | 
int | 
AbstractChannel.compareTo(Channel o)
Compares the ID of the two channels. 
 | 
static ChannelFuture | 
Channels.connect(Channel channel,
       java.net.SocketAddress remoteAddress)
Sends a  
"connect" request to the last
 ChannelDownstreamHandler in the ChannelPipeline of
 the specified Channel. | 
static ChannelFuture | 
Channels.disconnect(Channel channel)
Sends a  
"disconnect" request to the last
 ChannelDownstreamHandler in the ChannelPipeline of
 the specified Channel. | 
static ChannelFuture | 
Channels.failedFuture(Channel channel,
            java.lang.Throwable cause)
Creates a new  
ChannelFuture which has failed already for the
 specified Channel. | 
static void | 
Channels.fireChannelBound(Channel channel,
                java.net.SocketAddress localAddress)
Sends a  
"channelBound" event to the first
 ChannelUpstreamHandler in the ChannelPipeline of
 the specified Channel. | 
static void | 
Channels.fireChannelClosed(Channel channel)
Sends a  
"channelClosed" event to the first
 ChannelUpstreamHandler in the ChannelPipeline of
 the specified Channel. | 
static ChannelFuture | 
Channels.fireChannelClosedLater(Channel channel)
Sends a  
"channelClosed" event to the first
 ChannelUpstreamHandler in the ChannelPipeline of
 the specified Channel once the io-thread runs again. | 
static void | 
Channels.fireChannelConnected(Channel channel,
                    java.net.SocketAddress remoteAddress)
Sends a  
"channelConnected" event to the first
 ChannelUpstreamHandler in the ChannelPipeline of
 the specified Channel. | 
static void | 
Channels.fireChannelDisconnected(Channel channel)
Sends a  
"channelDisconnected" event to the first
 ChannelUpstreamHandler in the ChannelPipeline of
 the specified Channel. | 
static ChannelFuture | 
Channels.fireChannelDisconnectedLater(Channel channel)
Sends a  
"channelDisconnected" event to the first
 ChannelUpstreamHandler in the ChannelPipeline of
 the specified Channel once the io-thread runs again. | 
static void | 
Channels.fireChannelInterestChanged(Channel channel)
Sends a  
"channelInterestChanged" event to the first
 ChannelUpstreamHandler in the ChannelPipeline of
 the specified Channel. | 
static ChannelFuture | 
Channels.fireChannelInterestChangedLater(Channel channel)
Sends a  
"channelInterestChanged" event to the first
 ChannelUpstreamHandler in the ChannelPipeline of
 the specified Channel once the io-thread runs again. | 
static void | 
Channels.fireChannelOpen(Channel channel)
Sends a  
"channelOpen" event to the first
 ChannelUpstreamHandler in the ChannelPipeline of
 the specified Channel. | 
static void | 
Channels.fireChannelUnbound(Channel channel)
Sends a  
"channelUnbound" event to the first
 ChannelUpstreamHandler in the ChannelPipeline of
 the specified Channel. | 
static ChannelFuture | 
Channels.fireChannelUnboundLater(Channel channel)
Sends a  
"channelUnbound" event to the first
 ChannelUpstreamHandler in the ChannelPipeline of
 the specified Channel once the io-thread runs again. | 
static void | 
Channels.fireExceptionCaught(Channel channel,
                   java.lang.Throwable cause)
Sends a  
"exceptionCaught" event to the first
 ChannelUpstreamHandler in the ChannelPipeline of
 the specified Channel. | 
static ChannelFuture | 
Channels.fireExceptionCaughtLater(Channel channel,
                        java.lang.Throwable cause)
Sends a  
"exceptionCaught" event to the first
 ChannelUpstreamHandler in the ChannelPipeline of
 the specified Channel once the io-thread runs again. | 
static void | 
Channels.fireMessageReceived(Channel channel,
                   java.lang.Object message)
Sends a  
"messageReceived" event to the first
 ChannelUpstreamHandler in the ChannelPipeline of
 the specified Channel. | 
static void | 
Channels.fireMessageReceived(Channel channel,
                   java.lang.Object message,
                   java.net.SocketAddress remoteAddress)
Sends a  
"messageReceived" event to the first
 ChannelUpstreamHandler in the ChannelPipeline of
 the specified Channel belongs. | 
static void | 
Channels.fireWriteComplete(Channel channel,
                 long amount)
Sends a  
"writeComplete" event to the first
 ChannelUpstreamHandler in the ChannelPipeline of
 the specified Channel. | 
static ChannelFuture | 
Channels.fireWriteCompleteLater(Channel channel,
                      long amount)
Sends a  
"writeComplete" event to the first
 ChannelUpstreamHandler in the ChannelPipeline of
 the specified Channel in the next io-thread. | 
static ChannelFuture | 
Channels.future(Channel channel)
Creates a new non-cancellable  
ChannelFuture for the specified
 Channel. | 
static ChannelFuture | 
Channels.future(Channel channel,
      boolean cancellable)
Creates a new  
ChannelFuture for the specified Channel. | 
T | 
ChannelLocal.get(Channel channel)
Returns the value of this variable. 
 | 
protected T | 
ChannelLocal.initialValue(Channel channel)
Returns the initial value of the variable. 
 | 
T | 
ChannelLocal.remove(Channel channel)
Removes the variable and returns the removed value. 
 | 
T | 
ChannelLocal.set(Channel channel,
   T value)
Sets the value of this variable. 
 | 
T | 
ChannelLocal.setIfAbsent(Channel channel,
           T value)
Sets the value of this variable only when no value was set. 
 | 
static ChannelFuture | 
Channels.setInterestOps(Channel channel,
              int interestOps)
Sends a  
"setInterestOps" request to the last
 ChannelDownstreamHandler in the ChannelPipeline of
 the specified Channel. | 
static ChannelFuture | 
Channels.succeededFuture(Channel channel)
Creates a new  
ChannelFuture which is already succeeded for the
 specified Channel. | 
static ChannelFuture | 
Channels.unbind(Channel channel)
Sends a  
"unbind" request to the last
 ChannelDownstreamHandler in the ChannelPipeline of
 the specified Channel. | 
static ChannelFuture | 
Channels.write(Channel channel,
     java.lang.Object message)
Sends a  
"write" request to the last
 ChannelDownstreamHandler in the ChannelPipeline of
 the specified Channel. | 
static ChannelFuture | 
Channels.write(Channel channel,
     java.lang.Object message,
     java.net.SocketAddress remoteAddress)
Sends a  
"write" request to the last
 ChannelDownstreamHandler in the ChannelPipeline of
 the specified Channel. | 
| 构造器和说明 | 
|---|
AbstractChannel(Channel parent,
               ChannelFactory factory,
               ChannelPipeline pipeline,
               ChannelSink sink)
Creates a new instance. 
 | 
AbstractChannel(java.lang.Integer id,
               Channel parent,
               ChannelFactory factory,
               ChannelPipeline pipeline,
               ChannelSink sink)
(Internal use only) Creates a new temporary instance with the specified
 ID. 
 | 
CompleteChannelFuture(Channel channel)
Creates a new instance. 
 | 
DefaultChannelFuture(Channel channel,
                    boolean cancellable)
Creates a new instance. 
 | 
DefaultChildChannelStateEvent(Channel parentChannel,
                             Channel childChannel)
Creates a new instance. 
 | 
DefaultExceptionEvent(Channel channel,
                     java.lang.Throwable cause)
Creates a new instance. 
 | 
DefaultWriteCompletionEvent(Channel channel,
                           long writtenAmount)
Creates a new instance. 
 | 
DownstreamChannelStateEvent(Channel channel,
                           ChannelFuture future,
                           ChannelState state,
                           java.lang.Object value)
Creates a new instance. 
 | 
DownstreamMessageEvent(Channel channel,
                      ChannelFuture future,
                      java.lang.Object message,
                      java.net.SocketAddress remoteAddress)
Creates a new instance. 
 | 
FailedChannelFuture(Channel channel,
                   java.lang.Throwable cause)
Creates a new instance. 
 | 
SucceededChannelFuture(Channel channel)
Creates a new instance. 
 | 
UpstreamChannelStateEvent(Channel channel,
                         ChannelState state,
                         java.lang.Object value)
Creates a new instance. 
 | 
UpstreamMessageEvent(Channel channel,
                    java.lang.Object message,
                    java.net.SocketAddress remoteAddress)
Creates a new instance. 
 | 
| 限定符和类型 | 方法和说明 | 
|---|---|
Channel | 
DefaultChannelGroup.find(java.lang.Integer id)  | 
Channel | 
ChannelGroup.find(java.lang.Integer id)
Returns the  
Channel whose ID matches the specified integer. | 
| 限定符和类型 | 方法和说明 | 
|---|---|
java.util.Iterator<Channel> | 
DefaultChannelGroup.iterator()  | 
| 限定符和类型 | 方法和说明 | 
|---|---|
boolean | 
DefaultChannelGroup.add(Channel channel)  | 
ChannelFuture | 
DefaultChannelGroupFuture.find(Channel channel)  | 
ChannelFuture | 
ChannelGroupFuture.find(Channel channel)
Returns the  
ChannelFuture of the individual I/O operation which
 is associated with the specified Channel. | 
| 限定符和类型 | 接口和说明 | 
|---|---|
interface  | 
LocalChannel
A  
Channel for the local transport. | 
interface  | 
LocalServerChannel
A  
ServerChannel for the local transport. | 
| 限定符和类型 | 接口和说明 | 
|---|---|
interface  | 
DatagramChannel
A UDP/IP  
Channel which is created by DatagramChannelFactory. | 
interface  | 
ServerSocketChannel
A TCP/IP  
ServerChannel which accepts incoming TCP/IP connections. | 
interface  | 
SocketChannel
A TCP/IP socket  
Channel which was either accepted by
 ServerSocketChannel or created by ClientSocketChannelFactory. | 
| 构造器和说明 | 
|---|
ChannelRunnableWrapper(Channel channel,
                      java.lang.Runnable task)  | 
| 限定符和类型 | 类和说明 | 
|---|---|
class  | 
NioDatagramChannel
Provides an NIO based  
DatagramChannel. | 
class  | 
NioSocketChannel  | 
| 限定符和类型 | 方法和说明 | 
|---|---|
protected java.lang.Runnable | 
NioWorker.createRegisterTask(Channel channel,
                  ChannelFuture future)  | 
protected java.lang.Runnable | 
NioServerBoss.createRegisterTask(Channel channel,
                  ChannelFuture future)  | 
protected java.lang.Runnable | 
NioDatagramWorker.createRegisterTask(Channel channel,
                  ChannelFuture future)  | 
protected java.lang.Runnable | 
NioClientBoss.createRegisterTask(Channel channel,
                  ChannelFuture future)  | 
void | 
NioSelector.register(Channel channel,
        ChannelFuture future)  | 
| 构造器和说明 | 
|---|
NioSocketChannel(Channel parent,
                ChannelFactory factory,
                ChannelPipeline pipeline,
                ChannelSink sink,
                java.nio.channels.SocketChannel socket,
                NioWorker worker)  | 
| 限定符和类型 | 方法和说明 | 
|---|---|
protected java.lang.Object | 
BigIntegerDecoder.decode(ChannelHandlerContext ctx,
      Channel channel,
      ChannelBuffer buffer)  | 
protected java.lang.Object | 
NumberEncoder.encode(ChannelHandlerContext ctx,
      Channel channel,
      java.lang.Object msg)  | 
| 限定符和类型 | 方法和说明 | 
|---|---|
protected java.lang.Object | 
PortUnificationServerHandler.decode(ChannelHandlerContext ctx,
      Channel channel,
      ChannelBuffer buffer)  | 
| 限定符和类型 | 方法和说明 | 
|---|---|
protected java.lang.Object | 
Base64Decoder.decode(ChannelHandlerContext ctx,
      Channel channel,
      java.lang.Object msg)  | 
protected java.lang.Object | 
Base64Encoder.encode(ChannelHandlerContext ctx,
      Channel channel,
      java.lang.Object msg)  | 
| 限定符和类型 | 方法和说明 | 
|---|---|
protected java.lang.Object | 
ZlibDecoder.decode(ChannelHandlerContext ctx,
      Channel channel,
      java.lang.Object msg)  | 
protected java.lang.Object | 
ZlibEncoder.encode(ChannelHandlerContext ctx,
      Channel channel,
      java.lang.Object msg)  | 
protected java.lang.Object | 
JdkZlibEncoder.encode(ChannelHandlerContext ctx,
      Channel channel,
      java.lang.Object msg)  | 
| 限定符和类型 | 方法和说明 | 
|---|---|
protected java.lang.Object | 
LineBasedFrameDecoder.decode(ChannelHandlerContext ctx,
      Channel channel,
      ChannelBuffer buffer)  | 
protected java.lang.Object | 
LengthFieldBasedFrameDecoder.decode(ChannelHandlerContext ctx,
      Channel channel,
      ChannelBuffer buffer)  | 
protected abstract java.lang.Object | 
FrameDecoder.decode(ChannelHandlerContext ctx,
      Channel channel,
      ChannelBuffer buffer)
Decodes the received packets so far into a frame. 
 | 
protected java.lang.Object | 
FixedLengthFrameDecoder.decode(ChannelHandlerContext ctx,
      Channel channel,
      ChannelBuffer buffer)  | 
protected java.lang.Object | 
DelimiterBasedFrameDecoder.decode(ChannelHandlerContext ctx,
      Channel channel,
      ChannelBuffer buffer)  | 
protected java.lang.Object | 
FrameDecoder.decodeLast(ChannelHandlerContext ctx,
          Channel channel,
          ChannelBuffer buffer)
Decodes the received data so far into a frame when the channel is
 disconnected. 
 | 
protected java.lang.Object | 
LengthFieldPrepender.encode(ChannelHandlerContext ctx,
      Channel channel,
      java.lang.Object msg)  | 
| 限定符和类型 | 方法和说明 | 
|---|---|
protected java.lang.Object | 
HttpMessageDecoder.decode(ChannelHandlerContext ctx,
      Channel channel,
      ChannelBuffer buffer,
      HttpMessageDecoder.State state)  | 
protected java.lang.Object | 
HttpMessageEncoder.encode(ChannelHandlerContext ctx,
      Channel channel,
      java.lang.Object msg)  | 
| 限定符和类型 | 方法和说明 | 
|---|---|
protected void | 
WebSocket08FrameDecoder.checkCloseFrameBody(Channel channel,
                   ChannelBuffer buffer)  | 
ChannelFuture | 
WebSocketServerHandshaker13.close(Channel channel,
     CloseWebSocketFrame frame)
Echo back the closing frame and close the connection 
 | 
ChannelFuture | 
WebSocketServerHandshaker08.close(Channel channel,
     CloseWebSocketFrame frame)
Echo back the closing frame and close the connection 
 | 
ChannelFuture | 
WebSocketServerHandshaker07.close(Channel channel,
     CloseWebSocketFrame frame)
Echo back the closing frame and close the connection 
 | 
ChannelFuture | 
WebSocketServerHandshaker00.close(Channel channel,
     CloseWebSocketFrame frame)
Echo back the closing frame 
 | 
abstract ChannelFuture | 
WebSocketServerHandshaker.close(Channel channel,
     CloseWebSocketFrame frame)
Performs the closing handshake 
 | 
protected java.lang.Object | 
WebSocket00FrameDecoder.decode(ChannelHandlerContext ctx,
      Channel channel,
      ChannelBuffer buffer,
      VoidEnum state)  | 
protected java.lang.Object | 
WebSocket08FrameDecoder.decode(ChannelHandlerContext ctx,
      Channel channel,
      ChannelBuffer buffer,
      WebSocket08FrameDecoder.State state)  | 
protected java.lang.Object | 
WebSocketFrameAggregator.decode(ChannelHandlerContext ctx,
      Channel channel,
      java.lang.Object message)  | 
protected java.lang.Object | 
WebSocket08FrameEncoder.encode(ChannelHandlerContext ctx,
      Channel channel,
      java.lang.Object msg)  | 
protected java.lang.Object | 
WebSocket00FrameEncoder.encode(ChannelHandlerContext ctx,
      Channel channel,
      java.lang.Object msg)  | 
void | 
WebSocketClientHandshaker13.finishHandshake(Channel channel,
               HttpResponse response)
 Process server response:
 
 
 HTTP/1.1 101 Switching Protocols
 Upgrade: websocket
 Connection: Upgrade
 Sec-WebSocket-Accept: s3pPLMBiTxaQ9kYGzzhZRbK+xOo=
 Sec-WebSocket-Protocol: chat
  
 | 
void | 
WebSocketClientHandshaker08.finishHandshake(Channel channel,
               HttpResponse response)
 Process server response:
 
 
 HTTP/1.1 101 Switching Protocols
 Upgrade: websocket
 Connection: Upgrade
 Sec-WebSocket-Accept: s3pPLMBiTxaQ9kYGzzhZRbK+xOo=
 Sec-WebSocket-Protocol: chat
  
 | 
void | 
WebSocketClientHandshaker07.finishHandshake(Channel channel,
               HttpResponse response)
 Process server response:
 
 
 HTTP/1.1 101 Switching Protocols
 Upgrade: websocket
 Connection: Upgrade
 Sec-WebSocket-Accept: s3pPLMBiTxaQ9kYGzzhZRbK+xOo=
 Sec-WebSocket-Protocol: chat
  
 | 
void | 
WebSocketClientHandshaker00.finishHandshake(Channel channel,
               HttpResponse response)
 Process server response:
 
 
 HTTP/1.1 101 WebSocket Protocol Handshake
 Upgrade: WebSocket
 Connection: Upgrade
 Sec-WebSocket-Origin: http://example.com
 Sec-WebSocket-Location: ws://example.com/demo
 Sec-WebSocket-Protocol: sample
 8jKS'y:G*Co,Wxa-
  
 | 
abstract void | 
WebSocketClientHandshaker.finishHandshake(Channel channel,
               HttpResponse response)
Validates and finishes the opening handshake initiated by  
WebSocketClientHandshaker.handshake(org.jboss.netty.channel.Channel)}. | 
ChannelFuture | 
WebSocketClientHandshaker13.handshake(Channel channel)
/**
 
 Sends the opening request to the server:
 
 
 GET /chat HTTP/1.1
 Host: server.example.com
 Upgrade: websocket
 Connection: Upgrade
 Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==
 Sec-WebSocket-Origin: http://example.com
 Sec-WebSocket-Protocol: chat, superchat
 Sec-WebSocket-Version: 13
  
 | 
ChannelFuture | 
WebSocketClientHandshaker08.handshake(Channel channel)
/**
 
 Sends the opening request to the server:
 
 
 GET /chat HTTP/1.1
 Host: server.example.com
 Upgrade: websocket
 Connection: Upgrade
 Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==
 Sec-WebSocket-Origin: http://example.com
 Sec-WebSocket-Protocol: chat, superchat
 Sec-WebSocket-Version: 8
  
 | 
ChannelFuture | 
WebSocketClientHandshaker07.handshake(Channel channel)
/**
 
 Sends the opening request to the server:
 
 
 GET /chat HTTP/1.1
 Host: server.example.com
 Upgrade: websocket
 Connection: Upgrade
 Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==
 Sec-WebSocket-Origin: http://example.com
 Sec-WebSocket-Protocol: chat, superchat
 Sec-WebSocket-Version: 7
  
 | 
ChannelFuture | 
WebSocketClientHandshaker00.handshake(Channel channel)
 Sends the opening request to the server:
 
 
 GET /demo HTTP/1.1
 Upgrade: WebSocket
 Connection: Upgrade
 Host: example.com
 Origin: http://example.com
 Sec-WebSocket-Key1: 4 @1  46546xW%0l 1 5
 Sec-WebSocket-Key2: 12998 5 Y3 1  .P00
 ^n:ds[4U
  
 | 
abstract ChannelFuture | 
WebSocketClientHandshaker.handshake(Channel channel)
Begins the opening handshake 
 | 
ChannelFuture | 
WebSocketServerHandshaker13.handshake(Channel channel,
         HttpRequest req)
 Handle the web socket handshake for the web socket specification HyBi
 versions 13-17. 
 | 
ChannelFuture | 
WebSocketServerHandshaker08.handshake(Channel channel,
         HttpRequest req)
 Handle the web socket handshake for the web socket specification HyBi version 8 to 10. 
 | 
ChannelFuture | 
WebSocketServerHandshaker07.handshake(Channel channel,
         HttpRequest req)
 Handle the web socket handshake for the web socket specification HyBi version 7. 
 | 
ChannelFuture | 
WebSocketServerHandshaker00.handshake(Channel channel,
         HttpRequest req)
 Handle the web socket handshake for the web socket specification HyBi version 0 and lower. 
 | 
abstract ChannelFuture | 
WebSocketServerHandshaker.handshake(Channel channel,
         HttpRequest req)
Performs the opening handshake 
 | 
ChannelFuture | 
WebSocketServerHandshakerFactory.sendUnsupportedWebSocketVersionResponse(Channel channel)
Return that we need cannot not support the web socket version 
 | 
protected ChannelFuture | 
WebSocketServerHandshaker.writeHandshakeResponse(Channel channel,
                      HttpResponse res,
                      ChannelHandler encoder,
                      ChannelHandler decoder)
Upgrades the connection and send the handshake response. 
 | 
| 限定符和类型 | 方法和说明 | 
|---|---|
protected java.lang.Object | 
MarshallingDecoder.decode(ChannelHandlerContext ctx,
      Channel channel,
      ChannelBuffer buffer)  | 
protected java.lang.Object | 
CompatibleMarshallingDecoder.decode(ChannelHandlerContext ctx,
      Channel channel,
      ChannelBuffer buffer,
      VoidEnum state)  | 
protected java.lang.Object | 
CompatibleMarshallingDecoder.decodeLast(ChannelHandlerContext ctx,
          Channel channel,
          ChannelBuffer buffer,
          VoidEnum state)  | 
protected java.lang.Object | 
MarshallingEncoder.encode(ChannelHandlerContext ctx,
      Channel channel,
      java.lang.Object msg)  | 
protected java.lang.Object | 
CompatibleMarshallingEncoder.encode(ChannelHandlerContext ctx,
      Channel channel,
      java.lang.Object msg)  | 
| 限定符和类型 | 方法和说明 | 
|---|---|
protected abstract java.lang.Object | 
OneToOneDecoder.decode(ChannelHandlerContext ctx,
      Channel channel,
      java.lang.Object msg)
Transforms the specified received message into another message and return
 the transformed message. 
 | 
protected abstract java.lang.Object | 
OneToOneEncoder.encode(ChannelHandlerContext ctx,
      Channel channel,
      java.lang.Object msg)
Transforms the specified message into another message and return the
 transformed message. 
 | 
| 限定符和类型 | 方法和说明 | 
|---|---|
protected java.lang.Object | 
ProtobufVarint32FrameDecoder.decode(ChannelHandlerContext ctx,
      Channel channel,
      ChannelBuffer buffer)  | 
protected java.lang.Object | 
ProtobufDecoder.decode(ChannelHandlerContext ctx,
      Channel channel,
      java.lang.Object msg)  | 
protected java.lang.Object | 
ProtobufVarint32LengthFieldPrepender.encode(ChannelHandlerContext ctx,
      Channel channel,
      java.lang.Object msg)  | 
protected java.lang.Object | 
ProtobufEncoder.encode(ChannelHandlerContext ctx,
      Channel channel,
      java.lang.Object msg)  | 
| 限定符和类型 | 方法和说明 | 
|---|---|
protected java.lang.Object | 
ReplayingDecoder.decode(ChannelHandlerContext ctx,
      Channel channel,
      ChannelBuffer buffer)
 | 
protected abstract java.lang.Object | 
ReplayingDecoder.decode(ChannelHandlerContext ctx,
      Channel channel,
      ChannelBuffer buffer,
      T state)
Decodes the received packets so far into a frame. 
 | 
protected java.lang.Object | 
ReplayingDecoder.decodeLast(ChannelHandlerContext ctx,
          Channel channel,
          ChannelBuffer buffer)  | 
protected java.lang.Object | 
ReplayingDecoder.decodeLast(ChannelHandlerContext ctx,
          Channel channel,
          ChannelBuffer buffer,
          T state)
Decodes the received data so far into a frame when the channel is
 disconnected. 
 | 
| 限定符和类型 | 方法和说明 | 
|---|---|
protected java.lang.Object | 
RtspMessageDecoder.decode(ChannelHandlerContext ctx,
      Channel channel,
      ChannelBuffer buffer,
      HttpMessageDecoder.State state)  | 
protected java.lang.Object | 
RtspMessageEncoder.encode(ChannelHandlerContext ctx,
      Channel channel,
      java.lang.Object msg)  | 
| 限定符和类型 | 方法和说明 | 
|---|---|
protected java.lang.Object | 
ObjectDecoder.decode(ChannelHandlerContext ctx,
      Channel channel,
      ChannelBuffer buffer)  | 
protected java.lang.Object | 
ObjectEncoder.encode(ChannelHandlerContext ctx,
      Channel channel,
      java.lang.Object msg)  | 
protected java.lang.Object | 
CompatibleObjectEncoder.encode(ChannelHandlerContext context,
      Channel channel,
      java.lang.Object msg)  | 
| 限定符和类型 | 方法和说明 | 
|---|---|
protected java.lang.Object | 
SocksAuthRequestDecoder.decode(ChannelHandlerContext ctx,
      Channel channel,
      ChannelBuffer buffer,
      org.jboss.netty.handler.codec.socks.SocksAuthRequestDecoder.State state)  | 
protected java.lang.Object | 
SocksAuthResponseDecoder.decode(ChannelHandlerContext ctx,
      Channel channel,
      ChannelBuffer buffer,
      SocksAuthResponseDecoder.State state)  | 
protected java.lang.Object | 
SocksCmdRequestDecoder.decode(ChannelHandlerContext ctx,
      Channel channel,
      ChannelBuffer buffer,
      org.jboss.netty.handler.codec.socks.SocksCmdRequestDecoder.State state)  | 
protected java.lang.Object | 
SocksCmdResponseDecoder.decode(ChannelHandlerContext ctx,
      Channel channel,
      ChannelBuffer buffer,
      SocksCmdResponseDecoder.State state)  | 
protected java.lang.Object | 
SocksInitRequestDecoder.decode(ChannelHandlerContext ctx,
      Channel channel,
      ChannelBuffer buffer,
      org.jboss.netty.handler.codec.socks.SocksInitRequestDecoder.State state)  | 
protected java.lang.Object | 
SocksInitResponseDecoder.decode(ChannelHandlerContext ctx,
      Channel channel,
      ChannelBuffer buffer,
      SocksInitResponseDecoder.State state)  | 
protected java.lang.Object | 
SocksMessageEncoder.encode(ChannelHandlerContext ctx,
      Channel channel,
      java.lang.Object msg)  | 
| 限定符和类型 | 方法和说明 | 
|---|---|
protected java.lang.Object | 
SpdyFrameCodec.decode(ChannelHandlerContext ctx,
      Channel channel,
      ChannelBuffer buffer)  | 
protected java.lang.Object | 
SpdyHttpDecoder.decode(ChannelHandlerContext ctx,
      Channel channel,
      java.lang.Object msg)  | 
| 限定符和类型 | 方法和说明 | 
|---|---|
protected java.lang.Object | 
StringDecoder.decode(ChannelHandlerContext ctx,
      Channel channel,
      java.lang.Object msg)  | 
protected java.lang.Object | 
StringEncoder.encode(ChannelHandlerContext ctx,
      Channel channel,
      java.lang.Object msg)  | 
| 限定符和类型 | 方法和说明 | 
|---|---|
protected java.lang.Object | 
SslHandler.decode(ChannelHandlerContext ctx,
      Channel channel,
      ChannelBuffer in)  | 
| 限定符和类型 | 方法和说明 | 
|---|---|
Channel | 
DefaultIdleStateEvent.getChannel()  | 
| 构造器和说明 | 
|---|
DefaultIdleStateEvent(Channel channel,
                     IdleState state,
                     long lastActivityTimeMillis)
Creates a new instance. 
 |