@Test public void settingsHighestID() { ByteBuffer buffer = ByteBuffer.wrap(TestMessages.SETTINGS_HIGHEST_ID_BUFFER); Http2SettingsFrame frame = (Http2SettingsFrame) decoder.decode(buffer, context); assertNotNull(frame); assertEquals(6, frame.getLength()); assertEquals(4, frame.getType()); assertEquals(0x00, frame.getFlags()); assertEquals(32, frame.getStreamID()); assertEquals(1, frame.getSettings().size()); Http2Setting setting = frame.getSettings().iterator().next(); assertEquals(0x00FFFF, setting.getID()); assertEquals(0x01020304L, setting.getValue()); }
@Override public Http2Frame decode(ByteBuffer input, Http2Connection context) { return context.decode(input); }
Http2ProtocolDecoder implements ProtocolDecoder<ByteBuffer, Http2Frame, Http2Connection> { @Override public Http2Frame decode(ByteBuffer input, Http2Connection context) { return context.decode(input); } }
Http2ProtocolDecoder implements ProtocolDecoder<ByteBuffer, Http2Frame, Http2Connection> { @Override public Http2Frame decode(ByteBuffer input, Http2Connection context) { return context.decode(input); }  }
Http2ProtocolDecoder implements ProtocolDecoder<ByteBuffer, Http2Frame, Http2Connection> { @Override public Http2Frame decode(ByteBuffer input, Http2Connection context) { return context.decode(input); }  @Override Http2Connection createDecoderState(); @Override Http2Frame decode(ByteBuffer input, Http2Connection context); @Override void finishDecode(Http2Connection context); }
Http2ProtocolDecoder implements ProtocolDecoder<ByteBuffer, Http2Frame, Http2Connection> { @Override public Http2Frame decode(ByteBuffer input, Http2Connection context) { return context.decode(input); }  @Override Http2Connection createDecoderState(); @Override Http2Frame decode(ByteBuffer input, Http2Connection context); @Override void finishDecode(Http2Connection context);  }