Apache Tomcat 7.0.54

org.apache.tomcat.websocket.server
Class WsRemoteEndpointImplServer

java.lang.Object
  extended by org.apache.tomcat.websocket.WsRemoteEndpointImplBase
      extended by org.apache.tomcat.websocket.server.WsRemoteEndpointImplServer
All Implemented Interfaces:
RemoteEndpoint

public class WsRemoteEndpointImplServer
extends WsRemoteEndpointImplBase

This is the server side RemoteEndpoint implementation - i.e. what the server uses to send data to the client. Communication is over a ServletOutputStream.


Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.websocket.RemoteEndpoint
RemoteEndpoint.Async, RemoteEndpoint.Basic
 
Field Summary
 
Fields inherited from class org.apache.tomcat.websocket.WsRemoteEndpointImplBase
BLOCKING_SEND_TIMEOUT_PROPERTY
 
Constructor Summary
WsRemoteEndpointImplServer(AbstractServletOutputStream sos, WsServerContainer serverContainer)
           
 
Method Summary
protected  void doClose()
           
protected  void doWrite(SendHandler handler, ByteBuffer... buffers)
           
protected  long getTimeoutExpiry()
           
protected  boolean isMasked()
           
protected  void onTimeout(boolean useDispatch)
           
 void onWritePossible(boolean useDispatch)
           
 
Methods inherited from class org.apache.tomcat.websocket.WsRemoteEndpointImplBase
close, flushBatch, getBatchingAllowed, getSendStream, getSendTimeout, getSendWriter, sendBytes, sendBytesByCompletion, sendBytesByFuture, sendObject, sendObjectByCompletion, sendObjectByFuture, sendPartialBytes, sendPartialString, sendPing, sendPong, sendString, sendStringByCompletion, sendStringByFuture, setBatchingAllowed, setEncoders, setSendTimeout, setSession
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WsRemoteEndpointImplServer

public WsRemoteEndpointImplServer(AbstractServletOutputStream sos,
                                  WsServerContainer serverContainer)
Method Detail

isMasked

protected final boolean isMasked()
Specified by:
isMasked in class WsRemoteEndpointImplBase

doWrite

protected void doWrite(SendHandler handler,
                       ByteBuffer... buffers)
Specified by:
doWrite in class WsRemoteEndpointImplBase

onWritePossible

public void onWritePossible(boolean useDispatch)

doClose

protected void doClose()
Specified by:
doClose in class WsRemoteEndpointImplBase

getTimeoutExpiry

protected long getTimeoutExpiry()

onTimeout

protected void onTimeout(boolean useDispatch)

Apache Tomcat 7.0.54

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