org.glassfish.tyrus.grizzly
Class GrizzlyRemoteEndpoint
java.lang.Object
org.glassfish.tyrus.grizzly.GrizzlyRemoteEndpoint
- All Implemented Interfaces:
- javax.websocket.RemoteEndpoint
public class GrizzlyRemoteEndpoint
- extends Object
- implements javax.websocket.RemoteEndpoint
- Author:
- Danny Coward (danny.coward at oracle.com)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GrizzlyRemoteEndpoint
public GrizzlyRemoteEndpoint(org.glassfish.grizzly.websockets.WebSocket socket)
get
public static GrizzlyRemoteEndpoint get(org.glassfish.grizzly.websockets.WebSocket socket)
remove
public static void remove(org.glassfish.grizzly.websockets.WebSocket socket)
sendString
public void sendString(String text)
throws IOException
- Specified by:
sendString in interface javax.websocket.RemoteEndpoint
- Throws:
IOException
sendBytes
public void sendBytes(ByteBuffer byteBuffer)
throws IOException
- Specified by:
sendBytes in interface javax.websocket.RemoteEndpoint
- Throws:
IOException
sendPartialString
public void sendPartialString(String fragment,
boolean isLast)
throws IOException
- Specified by:
sendPartialString in interface javax.websocket.RemoteEndpoint
- Throws:
IOException
sendPartialBytes
public void sendPartialBytes(ByteBuffer byteBuffer,
boolean b)
throws IOException
- Specified by:
sendPartialBytes in interface javax.websocket.RemoteEndpoint
- Throws:
IOException
getSendStream
public OutputStream getSendStream()
throws IOException
- Specified by:
getSendStream in interface javax.websocket.RemoteEndpoint
- Throws:
IOException
getSendWriter
public Writer getSendWriter()
throws IOException
- Specified by:
getSendWriter in interface javax.websocket.RemoteEndpoint
- Throws:
IOException
sendObject
public void sendObject(Object o)
throws IOException,
javax.websocket.EncodeException
- Specified by:
sendObject in interface javax.websocket.RemoteEndpoint
- Throws:
IOException
javax.websocket.EncodeException
sendStringByCompletion
public void sendStringByCompletion(String s,
javax.websocket.SendHandler sendHandler)
- Specified by:
sendStringByCompletion in interface javax.websocket.RemoteEndpoint
sendStringByFuture
public Future<javax.websocket.SendResult> sendStringByFuture(String s)
- Specified by:
sendStringByFuture in interface javax.websocket.RemoteEndpoint
sendBytesByFuture
public Future<javax.websocket.SendResult> sendBytesByFuture(ByteBuffer byteBuffer)
- Specified by:
sendBytesByFuture in interface javax.websocket.RemoteEndpoint
sendBytesByCompletion
public void sendBytesByCompletion(ByteBuffer byteBuffer,
javax.websocket.SendHandler sendHandler)
- Specified by:
sendBytesByCompletion in interface javax.websocket.RemoteEndpoint
sendObjectByFuture
public Future<javax.websocket.SendResult> sendObjectByFuture(Object o)
- Specified by:
sendObjectByFuture in interface javax.websocket.RemoteEndpoint
sendObjectByCompletion
public void sendObjectByCompletion(Object o,
javax.websocket.SendHandler sendHandler)
- Specified by:
sendObjectByCompletion in interface javax.websocket.RemoteEndpoint
sendPing
public void sendPing(ByteBuffer byteBuffer)
- Specified by:
sendPing in interface javax.websocket.RemoteEndpoint
sendPong
public void sendPong(ByteBuffer byteBuffer)
- Specified by:
sendPong in interface javax.websocket.RemoteEndpoint
Copyright © 2012. All Rights Reserved.