Class WebSocketServerContainerInitializer

  • All Implemented Interfaces:
    javax.servlet.ServletContainerInitializer

    public class WebSocketServerContainerInitializer
    extends java.lang.Object
    implements javax.servlet.ServletContainerInitializer
    • Constructor Detail

      • WebSocketServerContainerInitializer

        public WebSocketServerContainerInitializer()
    • Method Detail

      • isEnabledViaContext

        public static boolean isEnabledViaContext​(javax.servlet.ServletContext context,
                                                  java.lang.String keyName,
                                                  boolean defValue)
        Test a ServletContext for init-param or attribute at keyName for true or false setting that determines if the specified feature is enabled (or not).
        Parameters:
        context - the context to search
        keyName - the key name
        defValue - the default value, if the value is not specified in the context
        Returns:
        the value for the feature key
      • onStartup

        public void onStartup​(java.util.Set<java.lang.Class<?>> c,
                              javax.servlet.ServletContext context)
                       throws javax.servlet.ServletException
        Specified by:
        onStartup in interface javax.servlet.ServletContainerInitializer
        Throws:
        javax.servlet.ServletException