public class WebSocketRemoteEndpoint extends Object implements javax.net.websocket.RemoteEndpoint<Object>
Modifier and Type | Field and Description |
---|---|
LogicalConnection |
connection |
OutgoingFrames |
outgoing |
MessageOutputStream |
stream |
MessageWriter |
writer |
Constructor and Description |
---|
WebSocketRemoteEndpoint(LogicalConnection connection,
OutgoingFrames outgoing) |
Modifier and Type | Method and Description |
---|---|
InetSocketAddress |
getInetSocketAddress() |
OutputStream |
getSendStream() |
Writer |
getSendWriter() |
void |
sendBytes(ByteBuffer data) |
Future<javax.net.websocket.SendResult> |
sendBytes(ByteBuffer data,
javax.net.websocket.SendHandler completion) |
void |
sendObject(Object o) |
Future<javax.net.websocket.SendResult> |
sendObject(Object o,
javax.net.websocket.SendHandler handler) |
void |
sendPartialBytes(ByteBuffer partialByte,
boolean isLast) |
void |
sendPartialString(String fragment,
boolean isLast) |
void |
sendPing(ByteBuffer applicationData) |
void |
sendPong(ByteBuffer applicationData) |
void |
sendString(String text) |
Future<javax.net.websocket.SendResult> |
sendString(String text,
javax.net.websocket.SendHandler completion) |
public final LogicalConnection connection
public final OutgoingFrames outgoing
public MessageOutputStream stream
public MessageWriter writer
public WebSocketRemoteEndpoint(LogicalConnection connection, OutgoingFrames outgoing)
public InetSocketAddress getInetSocketAddress()
public OutputStream getSendStream() throws IOException
getSendStream
in interface javax.net.websocket.RemoteEndpoint<Object>
IOException
public Writer getSendWriter() throws IOException
getSendWriter
in interface javax.net.websocket.RemoteEndpoint<Object>
IOException
public void sendBytes(ByteBuffer data) throws IOException
sendBytes
in interface javax.net.websocket.RemoteEndpoint<Object>
IOException
public Future<javax.net.websocket.SendResult> sendBytes(ByteBuffer data, javax.net.websocket.SendHandler completion)
sendBytes
in interface javax.net.websocket.RemoteEndpoint<Object>
public void sendObject(Object o) throws IOException, javax.net.websocket.EncodeException
sendObject
in interface javax.net.websocket.RemoteEndpoint<Object>
IOException
javax.net.websocket.EncodeException
public Future<javax.net.websocket.SendResult> sendObject(Object o, javax.net.websocket.SendHandler handler)
sendObject
in interface javax.net.websocket.RemoteEndpoint<Object>
public void sendPartialBytes(ByteBuffer partialByte, boolean isLast) throws IOException
sendPartialBytes
in interface javax.net.websocket.RemoteEndpoint<Object>
IOException
public void sendPartialString(String fragment, boolean isLast) throws IOException
sendPartialString
in interface javax.net.websocket.RemoteEndpoint<Object>
IOException
public void sendPing(ByteBuffer applicationData)
sendPing
in interface javax.net.websocket.RemoteEndpoint<Object>
public void sendPong(ByteBuffer applicationData)
sendPong
in interface javax.net.websocket.RemoteEndpoint<Object>
public void sendString(String text) throws IOException
sendString
in interface javax.net.websocket.RemoteEndpoint<Object>
IOException
public Future<javax.net.websocket.SendResult> sendString(String text, javax.net.websocket.SendHandler completion)
sendString
in interface javax.net.websocket.RemoteEndpoint<Object>
Copyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.