Class GyWebSocketApplication

java.lang.Object
org.glassfish.grizzly.websockets.WebSocketAdapter
org.glassfish.grizzly.websockets.WebSocketApplication
org.noear.solon.server.grizzly.websocket.GyWebSocketApplication
All Implemented Interfaces:
org.glassfish.grizzly.websockets.WebSocketListener

public class GyWebSocketApplication extends org.glassfish.grizzly.websockets.WebSocketApplication
Since:
3.6
Author:
noear
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.glassfish.grizzly.websockets.WebSocket
    createSocket(org.glassfish.grizzly.websockets.ProtocolHandler handler, org.glassfish.grizzly.http.HttpRequestPacket requestPacket, org.glassfish.grizzly.websockets.WebSocketListener... listeners)
     
     
    protected void
    handshake(org.glassfish.grizzly.websockets.HandShake handshake)
     
    protected boolean
    onError(org.glassfish.grizzly.websockets.WebSocket socket, Throwable t)
     

    Methods inherited from class org.glassfish.grizzly.websockets.WebSocketApplication

    add, createSocket, getSupportedExtensions, getWebSockets, isApplicationRequest, onClose, onConnect, onExtensionNegotiation, remove, upgrade

    Methods inherited from class org.glassfish.grizzly.websockets.WebSocketAdapter

    onFragment, onFragment, onMessage, onMessage, onPing, onPong

    Methods inherited from class java.lang.Object

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

    • GyWebSocketApplication

      public GyWebSocketApplication()
  • Method Details

    • createSocket

      public org.glassfish.grizzly.websockets.WebSocket createSocket(org.glassfish.grizzly.websockets.ProtocolHandler handler, org.glassfish.grizzly.http.HttpRequestPacket requestPacket, org.glassfish.grizzly.websockets.WebSocketListener... listeners)
      Overrides:
      createSocket in class org.glassfish.grizzly.websockets.WebSocketApplication
    • handshake

      protected void handshake(org.glassfish.grizzly.websockets.HandShake handshake) throws org.glassfish.grizzly.websockets.HandshakeException
      Overrides:
      handshake in class org.glassfish.grizzly.websockets.WebSocketApplication
      Throws:
      org.glassfish.grizzly.websockets.HandshakeException
    • getSupportedProtocols

      public List<String> getSupportedProtocols(List<String> subProtocol)
      Overrides:
      getSupportedProtocols in class org.glassfish.grizzly.websockets.WebSocketApplication
    • onError

      protected boolean onError(org.glassfish.grizzly.websockets.WebSocket socket, Throwable t)
      Overrides:
      onError in class org.glassfish.grizzly.websockets.WebSocketApplication