org.eclipse.jetty.websocket
Interface WebSocket.Connection
- All Known Implementing Classes:
- WebSocketConnectionD00
- Enclosing interface:
- WebSocket
public static interface WebSocket.Connection
Method Summary |
void |
disconnect(int closeCode,
String message)
|
int |
getMaxBinaryMessageSize()
Size in bytes of the maximum binary message to be received |
int |
getMaxTextMessageSize()
Size in characters of the maximum text message to be received |
String |
getProtocol()
|
boolean |
isMore(byte flags)
|
boolean |
isOpen()
|
void |
sendControl(byte control,
byte[] data,
int offset,
int length)
|
void |
sendFrame(byte flags,
byte opcode,
byte[] data,
int offset,
int length)
|
void |
sendMessage(byte[] data,
int offset,
int length)
|
void |
sendMessage(String data)
|
void |
setMaxBinaryMessageSize(int size)
|
void |
setMaxTextMessageSize(int size)
|
getProtocol
String getProtocol()
sendMessage
void sendMessage(String data)
throws IOException
- Throws:
IOException
sendMessage
void sendMessage(byte[] data,
int offset,
int length)
throws IOException
- Throws:
IOException
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
disconnect
void disconnect(int closeCode,
String message)
isOpen
boolean isOpen()
isMore
boolean isMore(byte flags)
setMaxTextMessageSize
void setMaxTextMessageSize(int size)
setMaxBinaryMessageSize
void setMaxBinaryMessageSize(int size)
getMaxTextMessageSize
int getMaxTextMessageSize()
- Size in characters of the maximum text message to be received
- Returns:
- <0 No aggregation of frames to messages, >=0 max size of text frame aggregation buffer in characters
getMaxBinaryMessageSize
int getMaxBinaryMessageSize()
- Size in bytes of the maximum binary message to be received
- Returns:
- <0 no aggregation of binary frames, >=0 size of binary frame aggregation buffer
Copyright © 1995-2011 Mort Bay Consulting. All Rights Reserved.