org.eclipse.jetty.websocket
Interface WebSocket.FrameConnection
- All Superinterfaces:
- WebSocket.Connection
- All Known Implementing Classes:
- WebSocketConnectionD00
- 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()
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 © 1995-2011 Mort Bay Consulting. All Rights Reserved.