Class ServletUtil
- java.lang.Object
-
- org.lable.oss.dynamicconfig.servletutil.ServletUtil
-
public class ServletUtil extends Object
Convenience methods for working with dynamic config from a servlet environment.
-
-
Constructor Summary
Constructors Constructor Description ServletUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidsetApplicationNameFromContext(javax.servlet.ServletContext context)Set the context-path as application name.static voidsetApplicationNameFromContext(javax.servlet.ServletContextEvent event)Set the context-path as application name.
-
-
-
Method Detail
-
setApplicationNameFromContext
public static void setApplicationNameFromContext(javax.servlet.ServletContextEvent event)
Set the context-path as application name.- Parameters:
event- ServletContextEvent.
-
setApplicationNameFromContext
public static void setApplicationNameFromContext(javax.servlet.ServletContext context)
Set the context-path as application name.- Parameters:
context- ServletContext.
-
-