@Test public void content() { final CloseFrame closeFrame = new CloseFrame(3000, "Go away!"); assertThat(closeFrame.content().toString(CharsetUtil.UTF_8), equalTo("c[3000,\"Go away!\"]")); closeFrame.release(); }
@Override public String toString() { return StringUtil.simpleClassName(this) + "[statusCode=" + statusCode + ", statusMsg='" + statusMsg + "']"; }
CloseFrame extends DefaultByteBufHolder implements Frame { @Override public String toString() { return StringUtil.simpleClassName(this) + "[statusCode=" + statusCode + ", statusMsg='" + statusMsg + "']"; } }
CloseFrame extends DefaultByteBufHolder implements Frame { @Override public String toString() { return StringUtil.simpleClassName(this) + "[statusCode=" + statusCode + ", statusMsg='" + statusMsg + "']"; } CloseFrame(final int statusCode, final String statusMsg); }
CloseFrame extends DefaultByteBufHolder implements Frame { @Override public String toString() { return StringUtil.simpleClassName(this) + "[statusCode=" + statusCode + ", statusMsg='" + statusMsg + "']"; } CloseFrame(final int statusCode, final String statusMsg); int statusCode(); String statusMsg(); @Override String toString(); @Override CloseFrame copy(); @Override CloseFrame duplicate(); @Override CloseFrame retain(); @Override CloseFrame retain(int increment); }
CloseFrame extends DefaultByteBufHolder implements Frame { @Override public String toString() { return StringUtil.simpleClassName(this) + "[statusCode=" + statusCode + ", statusMsg='" + statusMsg + "']"; } CloseFrame(final int statusCode, final String statusMsg); int statusCode(); String statusMsg(); @Override String toString(); @Override CloseFrame copy(); @Override CloseFrame duplicate(); @Override CloseFrame retain(); @Override CloseFrame retain(int increment);  }