@Test public void shouldAddControlBytesParameter() throws Exception { PingPongExtension extension = new PingPongExtension(requested, extensionHelper); assertEquals(extensionName, extension.getExtensionHeader().getExtensionToken()); assertEquals(Utils.toHex(PingPongExtension.CONTROL_BYTES), extension.getExtensionHeader().getParameters().get(0).getName()); }
@Override public ExtensionHeader getExtensionHeader() { return extension; }
PingPongExtension extends WebSocketExtension { @Override public ExtensionHeader getExtensionHeader() { return extension; } }
PingPongExtension extends WebSocketExtension { @Override public ExtensionHeader getExtensionHeader() { return extension; } PingPongExtension(ExtensionHeader extension, ExtensionHelper extensionHelper); }
PingPongExtension extends WebSocketExtension { @Override public ExtensionHeader getExtensionHeader() { return extension; } PingPongExtension(ExtensionHeader extension, ExtensionHelper extensionHelper); @Override ExtensionHeader getExtensionHeader(); @Override IoFilter getFilter(); }
PingPongExtension extends WebSocketExtension { @Override public ExtensionHeader getExtensionHeader() { return extension; } PingPongExtension(ExtensionHeader extension, ExtensionHelper extensionHelper); @Override ExtensionHeader getExtensionHeader(); @Override IoFilter getFilter();  }