com.vaadin.flow.server.startup.
Class ServletVerifier
- java.lang.Object
-
- com.vaadin.flow.server.startup.ServletVerifier
-
All Implemented Interfaces:
ClassLoaderAwareServletContainerInitializer
,VaadinContextStartupInitializer
,VaadinServletContextStartupInitializer
,javax.servlet.ServletContainerInitializer
public class ServletVerifier extends Object implements VaadinServletContextStartupInitializer
Verify the servlet version on container initialization.
In cases of non compatible servlet version application deployment will fail.
For internal use only. May be renamed or removed in a future release.
Since:
1.0
-
-
Constructor Summary
Constructors Constructor Description ServletVerifier()
-
Method Summary
All Methods Modifier and Type Method Description void
initialize(Set<Class<?>> classSet, VaadinContext context)
Applies this initializer to the given context
static void
verifyServletVersion()
Verify that the used servlet version is not too old.
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.vaadin.flow.server.startup.ClassLoaderAwareServletContainerInitializer
onStartup, requiresLookup
-
Methods inherited from interface com.vaadin.flow.server.startup.VaadinServletContextStartupInitializer
process
-
-
-
-
Method Detail
-
initialize
public void initialize(Set<Class<?>> classSet, VaadinContext context) throws VaadinInitializerException
Description copied from interface:
VaadinContextStartupInitializer
Applies this initializer to the given context
Specified by:
initialize
in interfaceVaadinContextStartupInitializer
Parameters:
classSet
- the Set of application classes which this initializer needs to do its jobcontext
- theVaadinContext
to use with this initializerThrows:
VaadinInitializerException
- if an error has occurred
-
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
-
-