com.vaadin.flow.server.startup.
Class ServletVerifier
- java.lang.Object
-
- com.vaadin.flow.server.startup.ServletVerifier
-
All Implemented Interfaces:
public class ServletVerifier extends Object implements ClassLoaderAwareServletContainerInitializer
Verify the servlet version on container initialization.
In cases of non compatible servlet version application deployment will fail.
Since:
1.0
-
-
Constructor Summary
Constructors Constructor and Description ServletVerifier()
-
Method Summary
All Methods Modifier and Type Method and Description void
process(Set<Class<?>> c, ServletContext ctx)
Implement this method instead of
ClassLoaderAwareServletContainerInitializer.onStartup(Set, ServletContext)
to handle classes accessible by different classloaders.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
-
-
-
-
Method Detail
-
process
public void process(Set<Class<?>> c, ServletContext ctx) throws ServletException
Description copied from interface:
ClassLoaderAwareServletContainerInitializer
Implement this method instead of
ClassLoaderAwareServletContainerInitializer.onStartup(Set, ServletContext)
to handle classes accessible by different classloaders.Specified by:
process
in interfaceClassLoaderAwareServletContainerInitializer
Parameters:
c
- the Set of application classes that extend, implement, or have been annotated with the class types specified by theHandlesTypes
annotation, or null if there are no matches, or this ServletContainerInitializer has not been annotated with HandlesTypesctx
- the ServletContext of the web application that is being started and in which the classes contained in c were foundThrows:
ServletException
- if an error has occurredSee Also:
ClassLoaderAwareServletContainerInitializer.onStartup(Set, ServletContext)
-
verifyServletVersion
public static void verifyServletVersion() throws ServletException
Verify that the used servlet version is not too old.
Throws:
ServletException
- thrown if the servlet version is not compatible
-
-