public class SpdySessionHandler
extends io.netty.channel.ChannelDuplexHandler
| Constructor and Description |
|---|
SpdySessionHandler(int version,
boolean server)
Creates a new session handler.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close(io.netty.channel.ChannelHandlerContext ctx,
io.netty.channel.ChannelPromise promise) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
void |
messageReceived(io.netty.channel.ChannelHandlerContext ctx,
io.netty.channel.MessageList<Object> in) |
void |
write(io.netty.channel.ChannelHandlerContext ctx,
io.netty.channel.MessageList<Object> msgs,
io.netty.channel.ChannelPromise promise) |
bind, connect, deregister, disconnect, readchannelActive, channelInactive, channelReadSuspended, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredpublic SpdySessionHandler(int version,
boolean server)
version - 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 messageReceived(io.netty.channel.ChannelHandlerContext ctx,
io.netty.channel.MessageList<Object> in)
throws Exception
messageReceived in interface io.netty.channel.ChannelInboundHandlermessageReceived in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause)
throws Exception
exceptionCaught in interface io.netty.channel.ChannelHandlerexceptionCaught in class io.netty.channel.ChannelHandlerAdapterExceptionpublic void close(io.netty.channel.ChannelHandlerContext ctx,
io.netty.channel.ChannelPromise promise)
throws Exception
close in interface io.netty.channel.ChannelOutboundHandlerclose in class io.netty.channel.ChannelDuplexHandlerExceptionpublic void write(io.netty.channel.ChannelHandlerContext ctx,
io.netty.channel.MessageList<Object> msgs,
io.netty.channel.ChannelPromise promise)
throws Exception
write in interface io.netty.channel.ChannelOutboundHandlerwrite in class io.netty.channel.ChannelDuplexHandlerExceptionCopyright © 2008-2013 The Netty Project. All Rights Reserved.