Package org.opennms.web.servlet
Class ServletInitializer
- java.lang.Object
-
- org.opennms.web.servlet.ServletInitializer
-
public abstract class ServletInitializer extends Object
Encapsulates all initialization and configuration needed by the OpenNMS servlets and JSPs.- Author:
- Lawrence Karnowski , OpenNMS
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidinit(javax.servlet.ServletContext context)Initialize servlet and JSP configuration on the first invocation of this method.
-
-
-
Method Detail
-
init
public static void init(javax.servlet.ServletContext context) throws javax.servlet.ServletExceptionInitialize servlet and JSP configuration on the first invocation of this method. All other invocations are ignored. This method is synchronized to ensure only the first invocation performs the initialization.Call this method in the
initmethod of your servlet or JSP. It will read the servlet initialization parameters from theServletConfigandServletContextand OpenNMS configuration files.- Parameters:
context- theServletContextinstance in which your servlet is running- Throws:
javax.servlet.ServletException- if any.
-
-