com.vaadin.flow.server.startup.

Class ServletVerifier

  • All Implemented Interfaces:

    javax.servlet.ServletContainerInitializer


    public class ServletVerifier
    extends Object
    implements javax.servlet.ServletContainerInitializer

    Verify the servlet version on container initialization.

    In cases of non compatible servlet version application deployment will fail.

    • Constructor Detail

      • ServletVerifier

        public ServletVerifier()
    • Method Detail

      • onStartup

        public void onStartup(Set<Class<?>> c,
                              javax.servlet.ServletContext ctx)
                       throws javax.servlet.ServletException

        Specified by:

        onStartup in interface javax.servlet.ServletContainerInitializer

        Throws:

        javax.servlet.ServletException

      • verifyServletVersion

        public static void verifyServletVersion()
                                         throws javax.servlet.ServletException

        Verify that the used servlet version is not too old.

        Throws:

        javax.servlet.ServletException - thrown if the servlet version is not compatible