Package 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 Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinitialize(Set<Class<?>> classSet, VaadinContext context)Applies this initializer to the given contextstatic voidverifyServletVersion()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:VaadinContextStartupInitializerApplies this initializer to the given context- Specified by:
initializein interfaceVaadinContextStartupInitializer- Parameters:
classSet- the Set of application classes which this initializer needs to do its jobcontext- theVaadinContextto use with this initializer- Throws:
VaadinInitializerException- if an error has occurred
-
verifyServletVersion
public static void verifyServletVersion() throws javax.servlet.ServletExceptionVerify that the used servlet version is not too old.- Throws:
javax.servlet.ServletException- thrown if the servlet version is not compatible
-
-