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, writeComplete
public 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
SimpleChannelUpstreamHandler
ChannelBuffer
) was received
from a remote peer.messageReceived
在类中 SimpleChannelUpstreamHandler
java.lang.Exception
public void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e) throws java.lang.Exception
SimpleChannelUpstreamHandler
ChannelHandler
.exceptionCaught
在类中 SimpleChannelUpstreamHandler
java.lang.Exception
public void handleDownstream(ChannelHandlerContext ctx, ChannelEvent evt) throws java.lang.Exception
ChannelDownstreamHandler
handleDownstream
在接口中 ChannelDownstreamHandler
ctx
- the context object for this handlerevt
- the downstream event to process or interceptjava.lang.Exception