WebSocket 1.0 - Apache Tomcat 7.0.47

javax.websocket
Interface RemoteEndpoint.Basic

All Superinterfaces:
RemoteEndpoint
Enclosing interface:
RemoteEndpoint

public static interface RemoteEndpoint.Basic
extends RemoteEndpoint


Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.websocket.RemoteEndpoint
RemoteEndpoint.Async, RemoteEndpoint.Basic
 
Method Summary
 java.io.OutputStream getSendStream()
           
 java.io.Writer getSendWriter()
           
 void sendBinary(java.nio.ByteBuffer data)
          Send the message, blocking until the message is sent.
 void sendBinary(java.nio.ByteBuffer partialByte, boolean isLast)
          Sends part of a binary message to the remote endpoint.
 void sendObject(java.lang.Object o)
           
 void sendText(java.lang.String text)
          Send the message, blocking until the message is sent.
 void sendText(java.lang.String fragment, boolean isLast)
          Sends part of a text message to the remote endpoint.
 
Methods inherited from interface javax.websocket.RemoteEndpoint
flushBatch, getBatchingAllowed, sendPing, sendPong, setBatchingAllowed
 

Method Detail

sendText

void sendText(java.lang.String text)
              throws java.io.IOException
Send the message, blocking until the message is sent.

Parameters:
text - The text message to send.
Throws:
java.io.IOException

sendBinary

void sendBinary(java.nio.ByteBuffer data)
                throws java.io.IOException
Send the message, blocking until the message is sent.

Parameters:
data - The binary message to send
Throws:
java.io.IOException

sendText

void sendText(java.lang.String fragment,
              boolean isLast)
              throws java.io.IOException
Sends part of a text message to the remote endpoint. Once the first part of a message has been sent, no other text or binary messages may be sent until all remaining parts of this message have been sent.

Parameters:
fragment - The partial message to send
isLast - true if this is the last part of the message, otherwise false
Throws:
java.io.IOException

sendBinary

void sendBinary(java.nio.ByteBuffer partialByte,
                boolean isLast)
                throws java.io.IOException
Sends part of a binary message to the remote endpoint. Once the first part of a message has been sent, no other text or binary messages may be sent until all remaining parts of this message have been sent.

Parameters:
partialByte - The partial message to send
isLast - true if this is the last part of the message, otherwise false
Throws:
java.io.IOException

getSendStream

java.io.OutputStream getSendStream()
                                   throws java.io.IOException
Throws:
java.io.IOException

getSendWriter

java.io.Writer getSendWriter()
                             throws java.io.IOException
Throws:
java.io.IOException

sendObject

void sendObject(java.lang.Object o)
                throws java.io.IOException,
                       EncodeException
Throws:
java.io.IOException
EncodeException

WebSocket 1.0 - Apache Tomcat 7.0.47

Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.