Class WebSocketConfigurator

java.lang.Object
javax.websocket.server.ServerEndpointConfig.Configurator
org.javalite.activeweb.websockets.WebSocketConfigurator

public class WebSocketConfigurator extends javax.websocket.server.ServerEndpointConfig.Configurator
Based on: https://stackoverflow.com/questions/17936440/accessing-httpsession-from-httpservletrequest-in-a-web-socket-serverendpoint/17994303#17994303
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    modifyHandshake​(javax.websocket.server.ServerEndpointConfig config, javax.websocket.server.HandshakeRequest request, javax.websocket.HandshakeResponse response)
     

    Methods inherited from class javax.websocket.server.ServerEndpointConfig.Configurator

    checkOrigin, getEndpointInstance, getNegotiatedExtensions, getNegotiatedSubprotocol

    Methods inherited from class java.lang.Object

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

    • WebSocketConfigurator

      public WebSocketConfigurator()
  • Method Details

    • modifyHandshake

      public void modifyHandshake(javax.websocket.server.ServerEndpointConfig config, javax.websocket.server.HandshakeRequest request, javax.websocket.HandshakeResponse response)
      Overrides:
      modifyHandshake in class javax.websocket.server.ServerEndpointConfig.Configurator