public class SpdySessionHandler extends SimpleChannelUpstreamHandler implements ChannelDownstreamHandler
ChannelHandler.Sharable| 构造器和说明 |
|---|
SpdySessionHandler(SpdyVersion spdyVersion,
boolean server)
Creates a new session handler.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
exceptionCaught(ChannelHandlerContext ctx,
ExceptionEvent e)
Invoked when an exception was raised by an I/O thread or a
ChannelHandler. |
void |
handleDownstream(ChannelHandlerContext ctx,
ChannelEvent evt)
Handles the specified downstream event.
|
void |
messageReceived(ChannelHandlerContext ctx,
MessageEvent e)
Invoked when a message object (e.g:
ChannelBuffer) was received
from a remote peer. |
void |
setSessionReceiveWindowSize(int sessionReceiveWindowSize) |
channelBound, channelClosed, channelConnected, channelDisconnected, channelInterestChanged, channelOpen, channelUnbound, childChannelClosed, childChannelOpen, handleUpstream, writeCompletepublic SpdySessionHandler(SpdyVersion spdyVersion, boolean server)
spdyVersion - the protocol versionserver - true if and only if this session handler should
handle the server endpoint of the connection.
false if and only if this session handler should
handle the client endpoint of the connection.public void setSessionReceiveWindowSize(int sessionReceiveWindowSize)
public void messageReceived(ChannelHandlerContext ctx, MessageEvent e) throws java.lang.Exception
SimpleChannelUpstreamHandlerChannelBuffer) was received
from a remote peer.messageReceived 在类中 SimpleChannelUpstreamHandlerjava.lang.Exceptionpublic void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e) throws java.lang.Exception
SimpleChannelUpstreamHandlerChannelHandler.exceptionCaught 在类中 SimpleChannelUpstreamHandlerjava.lang.Exceptionpublic void handleDownstream(ChannelHandlerContext ctx, ChannelEvent evt) throws java.lang.Exception
ChannelDownstreamHandlerhandleDownstream 在接口中 ChannelDownstreamHandlerctx - the context object for this handlerevt - the downstream event to process or interceptjava.lang.Exception