Class WebSocketEndPoint

  • All Implemented Interfaces:
    java.io.Serializable

    public class WebSocketEndPoint
    extends javax.websocket.Endpoint
    implements java.io.Serializable
    A WebSocket EndPoint for WebSocket based Update Engine and WebSocket implemented ServerPush.
    Since:
    8.5.0
    Author:
    wenninghsu
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void onClose​(javax.websocket.Session wsession, javax.websocket.CloseReason closeReason)  
      void onError​(javax.websocket.Session wsession, java.lang.Throwable throwable)  
      void onOpen​(javax.websocket.Session wsession, javax.websocket.EndpointConfig config)  
      protected void sendText​(java.lang.String text)  
      protected void setWebSocketServerPush​(WebSocketServerPush wssp)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WebSocketEndPoint

        public WebSocketEndPoint()
    • Method Detail

      • onOpen

        public void onOpen​(javax.websocket.Session wsession,
                           javax.websocket.EndpointConfig config)
        Specified by:
        onOpen in class javax.websocket.Endpoint
      • onClose

        public void onClose​(javax.websocket.Session wsession,
                            javax.websocket.CloseReason closeReason)
        Overrides:
        onClose in class javax.websocket.Endpoint
      • onError

        public void onError​(javax.websocket.Session wsession,
                            java.lang.Throwable throwable)
        Overrides:
        onError in class javax.websocket.Endpoint
      • sendText

        protected void sendText​(java.lang.String text)
                         throws java.io.IOException
        Throws:
        java.io.IOException