public class SpdySessionHandler
extends io.netty.channel.ChannelDuplexHandler
| Constructor and Description |
|---|
SpdySessionHandler(SpdyVersion version,
boolean server)
Creates a new session handler.
|
SpdySessionHandler(SpdyVersion version,
boolean server,
int maxLocalConcurrentStreams)
Creates a new session handler.
|
| Modifier and Type | Method and Description |
|---|---|
void |
channelActive(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelInactive(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelRead(io.netty.channel.ChannelHandlerContext ctx,
Object msg) |
void |
close(io.netty.channel.ChannelHandlerContext ctx,
io.netty.channel.ChannelPromise promise) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
void |
handlerAdded(io.netty.channel.ChannelHandlerContext ctx) |
void |
setSessionReceiveWindowSize(int sessionReceiveWindowSize) |
void |
write(io.netty.channel.ChannelHandlerContext ctx,
Object msg,
io.netty.channel.ChannelPromise promise) |
bind, connect, deregister, disconnect, flush, readchannelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredensureNotSharable, handlerRemoved, isSharablepublic SpdySessionHandler(SpdyVersion version, boolean server)
Remote-initiated streams are accepted up to
concurrently (matching the HTTP/2 default, see
RFC 7540, Section 6.5.2).
Use SpdySessionHandler(SpdyVersion, boolean, int) to configure a different limit.
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 SpdySessionHandler(SpdyVersion version, boolean server, int maxLocalConcurrentStreams)
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.maxLocalConcurrentStreams - the maximum number of concurrent remote-initiated streams
that will be accepted. This bounds the memory a remote peer can force this
handler to allocate by opening streams. SYN_STREAM frames received
once this limit is reached are rejected with a RST_STREAM carrying
SpdyStreamStatus.REFUSED_STREAM. Must be positive.public void setSessionReceiveWindowSize(int sessionReceiveWindowSize)
public void handlerAdded(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
handlerAdded in interface io.netty.channel.ChannelHandlerhandlerAdded in class io.netty.channel.ChannelHandlerAdapterExceptionpublic void channelActive(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelActive in interface io.netty.channel.ChannelInboundHandlerchannelActive in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void channelRead(io.netty.channel.ChannelHandlerContext ctx,
Object msg)
throws Exception
channelRead in interface io.netty.channel.ChannelInboundHandlerchannelRead in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelInactive in interface io.netty.channel.ChannelInboundHandlerchannelInactive 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 interface io.netty.channel.ChannelInboundHandlerexceptionCaught in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic 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.ChannelDuplexHandlerExceptionCopyright © 2008–2026 The Netty Project. All rights reserved.