Add missing override annotations
This commit is contained in:
parent
350c8ef42a
commit
58423a448a
@ -211,12 +211,14 @@ public final class SpdyFrameCodec extends ByteToMessageDecoder implements SpdyFr
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void readDataFrame(int streamId, boolean last, ByteBuf data) {
|
public void readDataFrame(int streamId, boolean last, ByteBuf data) {
|
||||||
SpdyDataFrame spdyDataFrame = new DefaultSpdyDataFrame(streamId, data);
|
SpdyDataFrame spdyDataFrame = new DefaultSpdyDataFrame(streamId, data);
|
||||||
spdyDataFrame.setLast(last);
|
spdyDataFrame.setLast(last);
|
||||||
ctx.fireChannelRead(spdyDataFrame);
|
ctx.fireChannelRead(spdyDataFrame);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void readSynStreamFrame(
|
public void readSynStreamFrame(
|
||||||
int streamId, int associatedToStreamId, byte priority, boolean last, boolean unidirectional) {
|
int streamId, int associatedToStreamId, byte priority, boolean last, boolean unidirectional) {
|
||||||
SpdySynStreamFrame spdySynStreamFrame = new DefaultSpdySynStreamFrame(streamId, associatedToStreamId, priority);
|
SpdySynStreamFrame spdySynStreamFrame = new DefaultSpdySynStreamFrame(streamId, associatedToStreamId, priority);
|
||||||
@ -225,52 +227,62 @@ public final class SpdyFrameCodec extends ByteToMessageDecoder implements SpdyFr
|
|||||||
spdyHeadersFrame = spdySynStreamFrame;
|
spdyHeadersFrame = spdySynStreamFrame;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void readSynReplyFrame(int streamId, boolean last) {
|
public void readSynReplyFrame(int streamId, boolean last) {
|
||||||
SpdySynReplyFrame spdySynReplyFrame = new DefaultSpdySynReplyFrame(streamId);
|
SpdySynReplyFrame spdySynReplyFrame = new DefaultSpdySynReplyFrame(streamId);
|
||||||
spdySynReplyFrame.setLast(last);
|
spdySynReplyFrame.setLast(last);
|
||||||
spdyHeadersFrame = spdySynReplyFrame;
|
spdyHeadersFrame = spdySynReplyFrame;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void readRstStreamFrame(int streamId, int statusCode) {
|
public void readRstStreamFrame(int streamId, int statusCode) {
|
||||||
SpdyRstStreamFrame spdyRstStreamFrame = new DefaultSpdyRstStreamFrame(streamId, statusCode);
|
SpdyRstStreamFrame spdyRstStreamFrame = new DefaultSpdyRstStreamFrame(streamId, statusCode);
|
||||||
ctx.fireChannelRead(spdyRstStreamFrame);
|
ctx.fireChannelRead(spdyRstStreamFrame);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void readSettingsFrame(boolean clearPersisted) {
|
public void readSettingsFrame(boolean clearPersisted) {
|
||||||
spdySettingsFrame = new DefaultSpdySettingsFrame();
|
spdySettingsFrame = new DefaultSpdySettingsFrame();
|
||||||
spdySettingsFrame.setClearPreviouslyPersistedSettings(clearPersisted);
|
spdySettingsFrame.setClearPreviouslyPersistedSettings(clearPersisted);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void readSetting(int id, int value, boolean persistValue, boolean persisted) {
|
public void readSetting(int id, int value, boolean persistValue, boolean persisted) {
|
||||||
spdySettingsFrame.setValue(id, value, persistValue, persisted);
|
spdySettingsFrame.setValue(id, value, persistValue, persisted);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void readSettingsEnd() {
|
public void readSettingsEnd() {
|
||||||
Object frame = spdySettingsFrame;
|
Object frame = spdySettingsFrame;
|
||||||
spdySettingsFrame = null;
|
spdySettingsFrame = null;
|
||||||
ctx.fireChannelRead(frame);
|
ctx.fireChannelRead(frame);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void readPingFrame(int id) {
|
public void readPingFrame(int id) {
|
||||||
SpdyPingFrame spdyPingFrame = new DefaultSpdyPingFrame(id);
|
SpdyPingFrame spdyPingFrame = new DefaultSpdyPingFrame(id);
|
||||||
ctx.fireChannelRead(spdyPingFrame);
|
ctx.fireChannelRead(spdyPingFrame);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void readGoAwayFrame(int lastGoodStreamId, int statusCode) {
|
public void readGoAwayFrame(int lastGoodStreamId, int statusCode) {
|
||||||
SpdyGoAwayFrame spdyGoAwayFrame = new DefaultSpdyGoAwayFrame(lastGoodStreamId, statusCode);
|
SpdyGoAwayFrame spdyGoAwayFrame = new DefaultSpdyGoAwayFrame(lastGoodStreamId, statusCode);
|
||||||
ctx.fireChannelRead(spdyGoAwayFrame);
|
ctx.fireChannelRead(spdyGoAwayFrame);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void readHeadersFrame(int streamId, boolean last) {
|
public void readHeadersFrame(int streamId, boolean last) {
|
||||||
spdyHeadersFrame = new DefaultSpdyHeadersFrame(streamId);
|
spdyHeadersFrame = new DefaultSpdyHeadersFrame(streamId);
|
||||||
spdyHeadersFrame.setLast(last);
|
spdyHeadersFrame.setLast(last);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void readWindowUpdateFrame(int streamId, int deltaWindowSize) {
|
public void readWindowUpdateFrame(int streamId, int deltaWindowSize) {
|
||||||
SpdyWindowUpdateFrame spdyWindowUpdateFrame = new DefaultSpdyWindowUpdateFrame(streamId, deltaWindowSize);
|
SpdyWindowUpdateFrame spdyWindowUpdateFrame = new DefaultSpdyWindowUpdateFrame(streamId, deltaWindowSize);
|
||||||
ctx.fireChannelRead(spdyWindowUpdateFrame);
|
ctx.fireChannelRead(spdyWindowUpdateFrame);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void readHeaderBlock(ByteBuf headerBlock) {
|
public void readHeaderBlock(ByteBuf headerBlock) {
|
||||||
try {
|
try {
|
||||||
spdyHeaderBlockDecoder.decode(headerBlock, spdyHeadersFrame);
|
spdyHeaderBlockDecoder.decode(headerBlock, spdyHeadersFrame);
|
||||||
@ -279,6 +291,7 @@ public final class SpdyFrameCodec extends ByteToMessageDecoder implements SpdyFr
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void readHeaderBlockEnd() {
|
public void readHeaderBlockEnd() {
|
||||||
Object frame = null;
|
Object frame = null;
|
||||||
try {
|
try {
|
||||||
@ -293,6 +306,7 @@ public final class SpdyFrameCodec extends ByteToMessageDecoder implements SpdyFr
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void readFrameError(String message) {
|
public void readFrameError(String message) {
|
||||||
ctx.fireExceptionCaught(INVALID_FRAME);
|
ctx.fireExceptionCaught(INVALID_FRAME);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user