public class ServletVerifier extends Object implements javax.servlet.ServletContainerInitializer
In cases of non compatible servlet version application deployment will fail.
Constructor and Description |
---|
ServletVerifier() |
Modifier and Type | Method and Description |
---|---|
void |
onStartup(Set<Class<?>> c,
javax.servlet.ServletContext ctx) |
static void |
verifyServletVersion()
Verify that the used servlet version is not too old.
|
public void onStartup(Set<Class<?>> c, javax.servlet.ServletContext ctx) throws javax.servlet.ServletException
onStartup
in interface javax.servlet.ServletContainerInitializer
javax.servlet.ServletException
public static void verifyServletVersion() throws javax.servlet.ServletException
javax.servlet.ServletException
- thrown if the servlet version is not compatibleCopyright © 2019. All rights reserved.