public class ServletVerifier extends Object implements ClassLoaderAwareServletContainerInitializer
In cases of non compatible servlet version application deployment will fail.
For internal use only. May be renamed or removed in a future release.
Constructor and Description |
---|
ServletVerifier() |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onStartup, requiresLookup
public void process(Set<Class<?>> c, ServletContext ctx) throws ServletException
ClassLoaderAwareServletContainerInitializer
ClassLoaderAwareServletContainerInitializer.onStartup(Set, ServletContext)
to handle classes accessible by different classloaders.process
in interface ClassLoaderAwareServletContainerInitializer
c
- the Set of application classes that extend, implement, or have
been annotated with the class types specified by the
HandlesTypes
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 foundServletException
- if an error has occurredClassLoaderAwareServletContainerInitializer.onStartup(Set, ServletContext)
public static void verifyServletVersion() throws ServletException
ServletException
- thrown if the servlet version is not compatibleCopyright © 2025. All rights reserved.