public class CsrfGuardServletContextListener extends Object implements javax.servlet.ServletContextListener
| Constructor and Description |
|---|
CsrfGuardServletContextListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
contextDestroyed(javax.servlet.ServletContextEvent event) |
void |
contextInitialized(javax.servlet.ServletContextEvent event) |
static String |
getConfigFileName()
config file name if specified in the web.xml
|
static String |
getServletContext()
servlet context (will be the empty string if it is / )
|
static void |
printConfigIfConfigured(javax.servlet.ServletContext context,
String prefix)
Prints the configuration to the ServletContext log file with the given prefix.
|
public static String getServletContext()
public static String getConfigFileName()
public void contextInitialized(javax.servlet.ServletContextEvent event)
contextInitialized in interface javax.servlet.ServletContextListenerpublic static void printConfigIfConfigured(javax.servlet.ServletContext context,
String prefix)
context - The ServletContextprefix - The string used as a prefix when printing the configuration to the logServletContext.log(String)public void contextDestroyed(javax.servlet.ServletContextEvent event)
contextDestroyed in interface javax.servlet.ServletContextListenerCopyright © 2025 OWASP. All rights reserved.