ChannelHandler that encodes and decodes SPDY Frames.
| Modifier and Type | Field and Description |
|---|---|
| private ChannelHandlerContext | |
| private static final SpdyProtocolException | |
| private boolean | |
| private final SpdyFrameDecoder | |
| private final SpdyFrameEncoder | |
| private final SpdyHeaderBlockDecoder | |
| private final SpdyHeaderBlockEncoder | |
| private SpdyHeadersFrame | |
| private SpdySettingsFrame | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public | SpdyFrameCodec(SpdyVersion version)
Creates a new instance with the specified |
| public | SpdyFrameCodec(SpdyVersion version, boolean validateHeaders)
Creates a new instance with the specified |
| public | SpdyFrameCodec(SpdyVersion version, int maxChunkSize, int maxHeaderSize, int compressionLevel, int windowBits, int memLevel)
Creates a new instance with the specified |
| public | SpdyFrameCodec(SpdyVersion version, int maxChunkSize, int maxHeaderSize, int compressionLevel, int windowBits, int memLevel, boolean validateHeaders)
Creates a new instance with the specified |
| protected | SpdyFrameCodec(SpdyVersion version, int maxChunkSize, SpdyHeaderBlockDecoder spdyHeaderBlockDecoder, SpdyHeaderBlockEncoder spdyHeaderBlockEncoder, boolean validateHeaders)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | bind(ChannelHandlerContext
the ctx, SocketAddress ChannelHandlerContext for which the bind operation is madethe localAddress, ChannelPromise SocketAddress to which it should boundthe promise)ChannelPromise to notify once the operation completesImplements io. |
| public void | channelReadComplete(ChannelHandlerContext ctx)
Overrides io. Implements io. ChannelHandlerContext#fireChannelReadComplete() to forward
to the next ChannelInboundHandler in the ChannelPipeline.
|
| public void | close(ChannelHandlerContext
the ctx, ChannelPromise ChannelHandlerContext for which the close operation is madethe promise)ChannelPromise to notify once the operation completesImplements io. |
| public void | connect(ChannelHandlerContext
the ctx, SocketAddress ChannelHandlerContext for which the connect operation is madethe remoteAddress, SocketAddress SocketAddress to which it should connectthe localAddress, ChannelPromise SocketAddress which is used as source on connectthe promise)ChannelPromise to notify once the operation completesImplements io. |
| protected void | decode(ChannelHandlerContext
the ctx, ByteBuf ChannelHandlerContext which this ByteToMessageDecoder belongs tothe in, List<Object> ByteBuf from which to read datathe out)List to which decoded messages should be addedImplements abstract io. ByteBuf to an other.
|
| public void | deregister(ChannelHandlerContext
the ctx, ChannelPromise ChannelHandlerContext for which the close operation is madethe promise)ChannelPromise to notify once the operation completesImplements io. EventLoop.
|
| public void | disconnect(ChannelHandlerContext
the ctx, ChannelPromise ChannelHandlerContext for which the disconnect operation is madethe promise)ChannelPromise to notify once the operation completesImplements io. |
| public void | flush(ChannelHandlerContext
the ctx)ChannelHandlerContext for which the flush operation is madeImplements io. |
| public void | handlerAdded(ChannelHandlerContext ctx)
Overrides io. Implements io. ChannelHandler was added to the actual context and it's ready to handle events.
|
| public void | read(ChannelHandlerContext ctx)
Implements io. ChannelHandlerContext#read().
|
| public void | readDataFrame(int streamId, boolean last, ByteBuf data)
Implements io. |
| public void | readFrameError(String message)
Implements io. |
| public void | readGoAwayFrame(int lastGoodStreamId, int statusCode)
Implements io. |
| public void | readHeaderBlock(ByteBuf headerBlock)
Implements io. |
| public void | readHeaderBlockEnd()
Implements io. |
| public void | readHeadersFrame(int streamId, boolean last)
Implements io. |
| public void | readPingFrame(int id)
Implements io. |
| public void | readRstStreamFrame(int streamId, int statusCode)
Implements io. |
| public void | readSetting(int id, int value, boolean persistValue, boolean persisted)
Implements io. |
| public void | readSettingsEnd()
Implements io. |
| public void | readSettingsFrame(boolean clearPersisted)
Implements io. |
| public void | readSynReplyFrame(int streamId, boolean last)
Implements io. |
| public void | readSynStreamFrame(int streamId, int associatedToStreamId, byte priority, boolean last, boolean unidirectional)
Implements io. |
| public void | readWindowUpdateFrame(int streamId, int deltaWindowSize)
Implements io. |
| public void | write(ChannelHandlerContext
the ctx, Object ChannelHandlerContext for which the write operation is madethe message to write msg, ChannelPromise the promise)ChannelPromise to notify once the operation completesImplements io. |
| ctx | back to summary |
|---|---|
| private ChannelHandlerContext ctx | |
| INVALID_FRAME | back to summary |
|---|---|
| private static final SpdyProtocolException INVALID_FRAME | |
| read | back to summary |
|---|---|
| private boolean read | |
| spdyFrameDecoder | back to summary |
|---|---|
| private final SpdyFrameDecoder spdyFrameDecoder | |
| spdyFrameEncoder | back to summary |
|---|---|
| private final SpdyFrameEncoder spdyFrameEncoder | |
| spdyHeaderBlockDecoder | back to summary |
|---|---|
| private final SpdyHeaderBlockDecoder spdyHeaderBlockDecoder | |
| spdyHeaderBlockEncoder | back to summary |
|---|---|
| private final SpdyHeaderBlockEncoder spdyHeaderBlockEncoder | |
| spdyHeadersFrame | back to summary |
|---|---|
| private SpdyHeadersFrame spdyHeadersFrame | |
| spdySettingsFrame | back to summary |
|---|---|
| private SpdySettingsFrame spdySettingsFrame | |
| validateHeaders | back to summary |
|---|---|
| private final boolean validateHeaders | |
| SpdyFrameCodec | back to summary |
|---|---|
| public SpdyFrameCodec(SpdyVersion version) Creates a new instance with the specified | |
| SpdyFrameCodec | back to summary |
|---|---|
| public SpdyFrameCodec(SpdyVersion version, boolean validateHeaders) Creates a new instance with the specified | |
| SpdyFrameCodec | back to summary |
|---|---|
| public SpdyFrameCodec(SpdyVersion version, int maxChunkSize, int maxHeaderSize, int compressionLevel, int windowBits, int memLevel) Creates a new instance with the specified | |
| SpdyFrameCodec | back to summary |
|---|---|
| public SpdyFrameCodec(SpdyVersion version, int maxChunkSize, int maxHeaderSize, int compressionLevel, int windowBits, int memLevel, boolean validateHeaders) Creates a new instance with the specified | |
| SpdyFrameCodec | back to summary |
|---|---|
| protected SpdyFrameCodec(SpdyVersion version, int maxChunkSize, SpdyHeaderBlockDecoder spdyHeaderBlockDecoder, SpdyHeaderBlockEncoder spdyHeaderBlockEncoder, boolean validateHeaders) | |
| bind | back to summary |
|---|---|
| public void bind(ChannelHandlerContext ctx, SocketAddress localAddress, ChannelPromise promise) throws Exception Implements io. Doc from io. Called once a bind operation is made.
| |
| channelReadComplete | back to summary |
|---|---|
| public void channelReadComplete(ChannelHandlerContext ctx) throws Exception Overrides io. Implements io. Doc from io. Calls
| |
| close | back to summary |
|---|---|
| public void close(ChannelHandlerContext ctx, ChannelPromise promise) throws Exception Implements io. Doc from io. Called once a close operation is made.
| |
| connect | back to summary |
|---|---|
| public void connect(ChannelHandlerContext ctx, SocketAddress remoteAddress, SocketAddress localAddress, ChannelPromise promise) throws Exception Implements io. Doc from io. Called once a connect operation is made.
| |
| decode | back to summary |
|---|---|
| protected void decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) throws Exception Implements abstract io. Doc from io. Decode the from one
| |
| deregister | back to summary |
|---|---|
| public void deregister(ChannelHandlerContext ctx, ChannelPromise promise) throws Exception Implements io. Doc from io. Called once a deregister operation is made from the current registered
| |
| disconnect | back to summary |
|---|---|
| public void disconnect(ChannelHandlerContext ctx, ChannelPromise promise) throws Exception Implements io. Doc from io. Called once a disconnect operation is made.
| |
| flush | back to summary |
|---|---|
| public void flush(ChannelHandlerContext ctx) throws Exception Implements io. Doc from io. Called once a flush operation is made. The flush operation will try to flush out all previous written messages that are pending.
| |
| handlerAdded | back to summary |
|---|---|
| public void handlerAdded(ChannelHandlerContext ctx) throws Exception Overrides io. Implements io. Doc from io. Gets called after the
| |
| read | back to summary |
|---|---|
| public void read(ChannelHandlerContext ctx) throws Exception Implements io. Doc from io. Intercepts
| |
| readDataFrame | back to summary |
|---|---|
| public void readDataFrame(int streamId, boolean last, ByteBuf data) Implements io. Doc from io. Called when a DATA frame is received.
| |
| readFrameError | back to summary |
|---|---|
| public void readFrameError(String message) Implements io. Doc from io. Called when an unrecoverable session error has occurred.
| |
| readGoAwayFrame | back to summary |
|---|---|
| public void readGoAwayFrame(int lastGoodStreamId, int statusCode) Implements io. Doc from io. Called when a GOAWAY frame is received.
| |
| readHeaderBlock | back to summary |
|---|---|
| public void readHeaderBlock(ByteBuf headerBlock) Implements io. Doc from io. Called when the header block within a SYN_STREAM, SYN_REPLY, or HEADERS frame is received.
| |
| readHeaderBlockEnd | back to summary |
|---|---|
| public void readHeaderBlockEnd() Implements io. Doc from io. Called when an entire header block has been received.
| |
| readHeadersFrame | back to summary |
|---|---|
| public void readHeadersFrame(int streamId, boolean last) Implements io. Doc from io. Called when a HEADERS frame is received. The Name/Value Header Block is not included. See readHeaderBlock().
| |
| readPingFrame | back to summary |
|---|---|
| public void readPingFrame(int id) Implements io. Doc from io. Called when a PING frame is received.
| |
| readRstStreamFrame | back to summary |
|---|---|
| public void readRstStreamFrame(int streamId, int statusCode) Implements io. Doc from io. Called when a RST_STREAM frame is received.
| |
| readSetting | back to summary |
|---|---|
| public void readSetting(int id, int value, boolean persistValue, boolean persisted) Implements io. Doc from io. Called when an individual setting within a SETTINGS frame is received.
| |
| readSettingsEnd | back to summary |
|---|---|
| public void readSettingsEnd() Implements io. Doc from io. Called when the entire SETTINGS frame has been received.
| |
| readSettingsFrame | back to summary |
|---|---|
| public void readSettingsFrame(boolean clearPersisted) Implements io. Doc from io. Called when a SETTINGS frame is received. Settings are not included. See readSetting().
| |
| readSynReplyFrame | back to summary |
|---|---|
| public void readSynReplyFrame(int streamId, boolean last) Implements io. Doc from io. Called when a SYN_REPLY frame is received. The Name/Value Header Block is not included. See readHeaderBlock().
| |
| readSynStreamFrame | back to summary |
|---|---|
| public void readSynStreamFrame(int streamId, int associatedToStreamId, byte priority, boolean last, boolean unidirectional) Implements io. Doc from io. Called when a SYN_STREAM frame is received. The Name/Value Header Block is not included. See readHeaderBlock().
| |
| readWindowUpdateFrame | back to summary |
|---|---|
| public void readWindowUpdateFrame(int streamId, int deltaWindowSize) Implements io. Doc from io. Called when a WINDOW_UPDATE frame is received.
| |
| write | back to summary |
|---|---|
| public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) throws Exception Implements io. Doc from io. Called once a write operation is made. The write operation will write the messages through the
| |