public class WebSocketRemoteEndpoint extends Object implements RemoteEndpoint
| Modifier and Type | Field and Description |
|---|---|
LogicalConnection |
connection |
OutgoingFrames |
outgoing |
| Constructor and Description |
|---|
WebSocketRemoteEndpoint(LogicalConnection connection,
OutgoingFrames outgoing) |
| Modifier and Type | Method and Description |
|---|---|
InetSocketAddress |
getInetSocketAddress() |
void |
sendBytes(ByteBuffer data)
Blocking write of bytes.
|
void |
sendBytes(ByteBuffer data,
WriteCallback callback) |
Future<Void> |
sendBytesByFuture(ByteBuffer data) |
void |
sendFrame(WebSocketFrame frame,
WriteCallback callback) |
void |
sendPartialBytes(ByteBuffer fragment,
boolean isLast) |
void |
sendPartialString(String fragment,
boolean isLast) |
void |
sendPing(ByteBuffer applicationData) |
void |
sendPong(ByteBuffer applicationData) |
void |
sendString(String text) |
void |
sendString(String text,
WriteCallback callback) |
Future<Void> |
sendStringByFuture(String text) |
public final LogicalConnection connection
public final OutgoingFrames outgoing
public WebSocketRemoteEndpoint(LogicalConnection connection, OutgoingFrames outgoing)
public InetSocketAddress getInetSocketAddress()
public void sendBytes(ByteBuffer data) throws IOException
sendBytes in interface RemoteEndpointIOExceptionpublic Future<Void> sendBytesByFuture(ByteBuffer data)
sendBytesByFuture in interface RemoteEndpointpublic void sendBytes(ByteBuffer data, WriteCallback callback)
sendBytes in interface RemoteEndpointpublic void sendFrame(WebSocketFrame frame, WriteCallback callback)
public void sendPartialBytes(ByteBuffer fragment, boolean isLast) throws IOException
sendPartialBytes in interface RemoteEndpointIOExceptionpublic void sendPartialString(String fragment, boolean isLast) throws IOException
sendPartialString in interface RemoteEndpointIOExceptionpublic void sendPing(ByteBuffer applicationData) throws IOException
sendPing in interface RemoteEndpointIOExceptionpublic void sendPong(ByteBuffer applicationData) throws IOException
sendPong in interface RemoteEndpointIOExceptionpublic void sendString(String text) throws IOException
sendString in interface RemoteEndpointIOExceptionpublic Future<Void> sendStringByFuture(String text)
sendStringByFuture in interface RemoteEndpointpublic void sendString(String text, WriteCallback callback)
sendString in interface RemoteEndpointCopyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.