@Test public void testLaxInvalidClose() { WebSocketFrame frame = new CloseFrame().setFin(false); ByteBuffer actual = generateWholeFrame(laxGenerator, frame); String expected = "0800"; assertFrameHex("Lax Invalid Close Frame", expected, actual); }
public WebSocketFrame setFin(boolean fin) { this.finRsvOp = (byte) ((finRsvOp & 0x7F) | (fin ? 0x80 : 0x00)); return this; }
WebSocketFrame implements Frame { public WebSocketFrame setFin(boolean fin) { this.finRsvOp = (byte) ((finRsvOp & 0x7F) | (fin ? 0x80 : 0x00)); return this; } }
WebSocketFrame implements Frame { public WebSocketFrame setFin(boolean fin) { this.finRsvOp = (byte) ((finRsvOp & 0x7F) | (fin ? 0x80 : 0x00)); return this; } protected  WebSocketFrame(byte opcode); }
WebSocketFrame implements Frame { public WebSocketFrame setFin(boolean fin) { this.finRsvOp = (byte) ((finRsvOp & 0x7F) | (fin ? 0x80 : 0x00)); return this; } protected  WebSocketFrame(byte opcode); static WebSocketFrame copy(Frame original); abstract void assertValid(); @Override boolean equals(Object obj); @Override byte[] getMask(); @Override final byte getOpCode(); @Override ByteBuffer getPayload(); String getPayloadAsUTF8(); @Override int getPayloadLength(); @Override Type getType(); @Override int hashCode(); @Override boolean hasPayload(); abstract boolean isControlFrame(); abstract boolean isDataFrame(); @Override boolean isFin(); @Override boolean isMasked(); @Override boolean isRsv1(); @Override boolean isRsv2(); @Override boolean isRsv3(); void reset(); WebSocketFrame setFin(boolean fin); Frame setMask(byte[] maskingKey); Frame setMasked(boolean mask); WebSocketFrame setPayload(ByteBuffer buf); WebSocketFrame setRsv1(boolean rsv1); WebSocketFrame setRsv2(boolean rsv2); WebSocketFrame setRsv3(boolean rsv3); @Override String toString(); }
WebSocketFrame implements Frame { public WebSocketFrame setFin(boolean fin) { this.finRsvOp = (byte) ((finRsvOp & 0x7F) | (fin ? 0x80 : 0x00)); return this; } protected  WebSocketFrame(byte opcode); static WebSocketFrame copy(Frame original); abstract void assertValid(); @Override boolean equals(Object obj); @Override byte[] getMask(); @Override final byte getOpCode(); @Override ByteBuffer getPayload(); String getPayloadAsUTF8(); @Override int getPayloadLength(); @Override Type getType(); @Override int hashCode(); @Override boolean hasPayload(); abstract boolean isControlFrame(); abstract boolean isDataFrame(); @Override boolean isFin(); @Override boolean isMasked(); @Override boolean isRsv1(); @Override boolean isRsv2(); @Override boolean isRsv3(); void reset(); WebSocketFrame setFin(boolean fin); Frame setMask(byte[] maskingKey); Frame setMasked(boolean mask); WebSocketFrame setPayload(ByteBuffer buf); WebSocketFrame setRsv1(boolean rsv1); WebSocketFrame setRsv2(boolean rsv2); WebSocketFrame setRsv3(boolean rsv3); @Override String toString();  }