public class ContextNamingInfoListener extends Object implements org.apache.catalina.LifecycleListener
 The following entries will be put into the initial context (java:comp/env implied):
 
context/path from Context.getPath()context/encodedPath from Context.getPath() URL-encoded by
 URLEncoder.DEFAULTcontext/version from Context.getWebappVersion()context/name from Container.getName()context/baseName from Context.getBaseName()context/displayName from Context.getDisplayName()
 By default, the root context will contain / and ROOT respectively in the output.
 If you want to retain the standard behavior of an empty string, set
 setEmptyOnRoot(boolean) to true.
 
See the Tomcat documentation for more details on the values.
| Constructor and Description | 
|---|
| ContextNamingInfoListener() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | lifecycleEvent(org.apache.catalina.LifecycleEvent le) | 
| void | setEmptyOnRoot(boolean emptyOnRoot) | 
Copyright © 2013–2023 Michael Osipov. All rights reserved.