public abstract class SPIRemoteEndpoint extends Object
RemoteEndpoint interface which should be implemented
by container implementations.| Constructor and Description |
|---|
SPIRemoteEndpoint() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
close(javax.websocket.CloseReason closeReason)
Send a Close message.
|
abstract void |
sendBinary(ByteBuffer data)
Send a binary message, returning when all of the message has been transmitted.
|
abstract void |
sendBinary(ByteBuffer partialByte,
boolean isLast)
Send a binary message in pieces, blocking until all of the message has been transmitted.
|
abstract void |
sendPing(ByteBuffer applicationData)
Send a Ping message containing the given application data to the remote endpoint.
|
abstract void |
sendPong(ByteBuffer applicationData)
Allows the developer to send an unsolicited Pong message containing the given application
data in order to serve as a unidirectional
heartbeat for the session.
|
abstract void |
sendText(String text)
Send a text message, blocking until all of the message has been transmitted.
|
abstract void |
sendText(String fragment,
boolean isLast)
Send a text message in pieces, blocking until all of the message has been transmitted.
|
public abstract void sendText(String text) throws IOException
text - the message to be sent.IOExceptionpublic abstract void sendBinary(ByteBuffer data) throws IOException
data - the message to be sent.IOExceptionpublic abstract void sendText(String fragment, boolean isLast) throws IOException
fragment - the piece of the message being sent.isLast - Whether the fragment being sent is the last piece of the message.IOExceptionpublic abstract void sendBinary(ByteBuffer partialByte, boolean isLast) throws IOException
partialByte - the piece of the message being sent.isLast - Whether the fragment being sent is the last piece of the message.IOExceptionpublic abstract void sendPing(ByteBuffer applicationData) throws IOException
applicationData - the data to be carried in the ping request.IOExceptionpublic abstract void sendPong(ByteBuffer applicationData) throws IOException
applicationData - the application data to be carried in the pong response.IOExceptionpublic abstract void close(javax.websocket.CloseReason closeReason)
closeReason - close reason.Copyright © 2012-2013. All Rights Reserved.