Class ContainerDefaultConfigurator


  • public final class ContainerDefaultConfigurator
    extends javax.websocket.server.ServerEndpointConfig.Configurator
    The "Container Default Configurator" per the JSR-356 spec.
    See Also:
    behavior of
    • Constructor Summary

      Constructors 
      Constructor Description
      ContainerDefaultConfigurator()
      Default Constructor required, as javax.websocket.server.ServerEndpointConfig$Configurator.fetchContainerDefaultConfigurator() will be the one that instantiates this class in most cases.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean checkOrigin​(java.lang.String originHeaderValue)  
      <T> T getEndpointInstance​(java.lang.Class<T> endpointClass)  
      java.util.List<javax.websocket.Extension> getNegotiatedExtensions​(java.util.List<javax.websocket.Extension> installed, java.util.List<javax.websocket.Extension> requested)  
      java.lang.String getNegotiatedSubprotocol​(java.util.List<java.lang.String> supported, java.util.List<java.lang.String> requested)  
      void modifyHandshake​(javax.websocket.server.ServerEndpointConfig sec, javax.websocket.server.HandshakeRequest request, javax.websocket.HandshakeResponse response)  
      • Methods inherited from class java.lang.Object

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

      • ContainerDefaultConfigurator

        public ContainerDefaultConfigurator()
        Default Constructor required, as javax.websocket.server.ServerEndpointConfig$Configurator.fetchContainerDefaultConfigurator() will be the one that instantiates this class in most cases.
    • Method Detail

      • checkOrigin

        public boolean checkOrigin​(java.lang.String originHeaderValue)
        Overrides:
        checkOrigin in class javax.websocket.server.ServerEndpointConfig.Configurator
      • getEndpointInstance

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

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

        public java.lang.String getNegotiatedSubprotocol​(java.util.List<java.lang.String> supported,
                                                         java.util.List<java.lang.String> requested)
        Overrides:
        getNegotiatedSubprotocol 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