org.eclipse.jetty.websocket
Interface WebSocket.FrameConnection
- All Superinterfaces:
- WebSocket.Connection
- Enclosing interface:
- WebSocket
public static interface WebSocket.FrameConnection
- extends WebSocket.Connection
Frame Level Connection
The Connection interface at the level of sending/receiving frames rather than messages.
isMessageComplete
boolean isMessageComplete(byte flags)
close
void close(int closeCode,
String message)
binaryOpcode
byte binaryOpcode()
textOpcode
byte textOpcode()
continuationOpcode
byte continuationOpcode()
finMask
byte finMask()
isControl
boolean isControl(byte opcode)
isText
boolean isText(byte opcode)
isBinary
boolean isBinary(byte opcode)
isContinuation
boolean isContinuation(byte opcode)
isClose
boolean isClose(byte opcode)
isPing
boolean isPing(byte opcode)
isPong
boolean isPong(byte opcode)
sendControl
void sendControl(byte control,
byte[] data,
int offset,
int length)
throws IOException
- Throws:
IOException
sendFrame
void sendFrame(byte flags,
byte opcode,
byte[] data,
int offset,
int length)
throws IOException
- Throws:
IOException
Copyright © 2011. All Rights Reserved.