From 58423a448a3233f84204b0b44e0b8e35193bf600 Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Tue, 15 Apr 2014 20:15:30 +0200 Subject: [PATCH] Add missing override annotations --- .../netty/handler/codec/spdy/SpdyFrameCodec.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyFrameCodec.java b/codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyFrameCodec.java index 272dc0cf80..8ec98227fd 100644 --- a/codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyFrameCodec.java +++ b/codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyFrameCodec.java @@ -211,12 +211,14 @@ public final class SpdyFrameCodec extends ByteToMessageDecoder implements SpdyFr } } + @Override public void readDataFrame(int streamId, boolean last, ByteBuf data) { SpdyDataFrame spdyDataFrame = new DefaultSpdyDataFrame(streamId, data); spdyDataFrame.setLast(last); ctx.fireChannelRead(spdyDataFrame); } + @Override public void readSynStreamFrame( int streamId, int associatedToStreamId, byte priority, boolean last, boolean unidirectional) { SpdySynStreamFrame spdySynStreamFrame = new DefaultSpdySynStreamFrame(streamId, associatedToStreamId, priority); @@ -225,52 +227,62 @@ public final class SpdyFrameCodec extends ByteToMessageDecoder implements SpdyFr spdyHeadersFrame = spdySynStreamFrame; } + @Override public void readSynReplyFrame(int streamId, boolean last) { SpdySynReplyFrame spdySynReplyFrame = new DefaultSpdySynReplyFrame(streamId); spdySynReplyFrame.setLast(last); spdyHeadersFrame = spdySynReplyFrame; } + @Override public void readRstStreamFrame(int streamId, int statusCode) { SpdyRstStreamFrame spdyRstStreamFrame = new DefaultSpdyRstStreamFrame(streamId, statusCode); ctx.fireChannelRead(spdyRstStreamFrame); } + @Override public void readSettingsFrame(boolean clearPersisted) { spdySettingsFrame = new DefaultSpdySettingsFrame(); spdySettingsFrame.setClearPreviouslyPersistedSettings(clearPersisted); } + @Override public void readSetting(int id, int value, boolean persistValue, boolean persisted) { spdySettingsFrame.setValue(id, value, persistValue, persisted); } + @Override public void readSettingsEnd() { Object frame = spdySettingsFrame; spdySettingsFrame = null; ctx.fireChannelRead(frame); } + @Override public void readPingFrame(int id) { SpdyPingFrame spdyPingFrame = new DefaultSpdyPingFrame(id); ctx.fireChannelRead(spdyPingFrame); } + @Override public void readGoAwayFrame(int lastGoodStreamId, int statusCode) { SpdyGoAwayFrame spdyGoAwayFrame = new DefaultSpdyGoAwayFrame(lastGoodStreamId, statusCode); ctx.fireChannelRead(spdyGoAwayFrame); } + @Override public void readHeadersFrame(int streamId, boolean last) { spdyHeadersFrame = new DefaultSpdyHeadersFrame(streamId); spdyHeadersFrame.setLast(last); } + @Override public void readWindowUpdateFrame(int streamId, int deltaWindowSize) { SpdyWindowUpdateFrame spdyWindowUpdateFrame = new DefaultSpdyWindowUpdateFrame(streamId, deltaWindowSize); ctx.fireChannelRead(spdyWindowUpdateFrame); } + @Override public void readHeaderBlock(ByteBuf headerBlock) { try { spdyHeaderBlockDecoder.decode(headerBlock, spdyHeadersFrame); @@ -279,6 +291,7 @@ public final class SpdyFrameCodec extends ByteToMessageDecoder implements SpdyFr } } + @Override public void readHeaderBlockEnd() { Object frame = null; try { @@ -293,6 +306,7 @@ public final class SpdyFrameCodec extends ByteToMessageDecoder implements SpdyFr } } + @Override public void readFrameError(String message) { ctx.fireExceptionCaught(INVALID_FRAME); }