public abstract class RemoteEndpointWrapper extends Object implements javax.websocket.RemoteEndpoint
RemoteEndpoint and represents the other side of the websocket connection.| Modifier and Type | Field and Description |
|---|---|
protected EndpointWrapper |
endpointWrapper |
protected SPIRemoteEndpoint |
remoteEndpoint |
protected SessionImpl |
session |
| Modifier and Type | Method and Description |
|---|---|
void |
close(javax.websocket.CloseReason cr) |
void |
flushBatch() |
boolean |
getBatchingAllowed() |
protected boolean |
isPrimitiveData(Object data) |
void |
sendPing(ByteBuffer applicationData) |
void |
sendPong(ByteBuffer applicationData) |
protected Future<?> |
sendSyncBinary(ByteBuffer buf) |
protected Future<?> |
sendSyncObject(Object o) |
protected Future<?> |
sendSyncText(String data) |
void |
setBatchingAllowed(boolean allowed) |
String |
toString() |
protected final SPIRemoteEndpoint remoteEndpoint
protected final SessionImpl session
protected final EndpointWrapper endpointWrapper
protected Future<?> sendSyncText(String data) throws IOException
IOExceptionprotected Future<?> sendSyncBinary(ByteBuffer buf) throws IOException
IOExceptionprotected Future<?> sendSyncObject(Object o) throws IOException, javax.websocket.EncodeException
IOExceptionjavax.websocket.EncodeExceptionprotected boolean isPrimitiveData(Object data)
public void sendPing(ByteBuffer applicationData) throws IOException
sendPing in interface javax.websocket.RemoteEndpointIOExceptionpublic void sendPong(ByteBuffer applicationData) throws IOException
sendPong in interface javax.websocket.RemoteEndpointIOExceptionpublic void setBatchingAllowed(boolean allowed)
setBatchingAllowed in interface javax.websocket.RemoteEndpointpublic boolean getBatchingAllowed()
getBatchingAllowed in interface javax.websocket.RemoteEndpointpublic void flushBatch()
flushBatch in interface javax.websocket.RemoteEndpointpublic void close(javax.websocket.CloseReason cr)
Copyright © 2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.