Class DefaultContainerConfigurator

java.lang.Object
javax.websocket.server.ServerEndpointConfig.Configurator
io.undertow.websockets.jsr.DefaultContainerConfigurator

public class DefaultContainerConfigurator extends javax.websocket.server.ServerEndpointConfig.Configurator
Server default container configurator.

This API is stupid, because it has no way to attach deployment specific context.

Author:
Stuart Douglas
  • Field Details

  • Constructor Details

    • DefaultContainerConfigurator

      public DefaultContainerConfigurator()
  • Method Details

    • getNegotiatedSubprotocol

      public String getNegotiatedSubprotocol(List<String> supported, List<String> requested)
      Overrides:
      getNegotiatedSubprotocol in class javax.websocket.server.ServerEndpointConfig.Configurator
    • getNegotiatedExtensions

      public List<javax.websocket.Extension> getNegotiatedExtensions(List<javax.websocket.Extension> installed, List<javax.websocket.Extension> requested)
      Overrides:
      getNegotiatedExtensions in class javax.websocket.server.ServerEndpointConfig.Configurator
    • checkOrigin

      public boolean checkOrigin(String originHeaderValue)
      Overrides:
      checkOrigin in class javax.websocket.server.ServerEndpointConfig.Configurator
    • modifyHandshake

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

      public <T> T getEndpointInstance(Class<T> endpointClass) throws InstantiationException
      Overrides:
      getEndpointInstance in class javax.websocket.server.ServerEndpointConfig.Configurator
      Throws:
      InstantiationException