|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.opencms.boot.CmsBase
OpenCms Base class for static access to system wide properties and helper functions, e.g. OpenCms logging oder OpenCms base path.
| Field Summary | |
protected static boolean |
c_servletLogging
Indicates if the system log is initialized |
| Fields inherited from interface com.opencms.boot.I_CmsLogChannels |
C_FLEX_CACHE, C_FLEX_LOADER, C_LOGGING, C_MODULE_CRITICAL, C_MODULE_DEBUG, C_MODULE_INFO, C_OPENCMS_CACHE, C_OPENCMS_CRITICAL, C_OPENCMS_CRONSCHEDULER, C_OPENCMS_DEBUG, C_OPENCMS_ELEMENTCACHE, C_OPENCMS_INFO, C_OPENCMS_INIT, C_OPENCMS_POOL, C_OPENCMS_STATICEXPORT, C_OPENCMS_STREAMING, C_PREPROCESSOR_IS_LOGGING |
| Constructor Summary | |
CmsBase()
|
|
| Method Summary | |
static String |
getAbsolutePath(String s)
|
static String |
getAbsoluteWebPath(String s)
|
static String |
getBasePath()
Get the OpenCms base path |
static String |
getPropertiesPath(boolean absolute)
|
static String |
getWebAppName()
Get the OpenCms WebApplicationName |
static String |
getWebBasePath()
Get the OpenCms web-base path |
static void |
initializeServletLogging(source.org.apache.java.util.Configurations config)
Initialize the logging mechanism of the Jserv |
static boolean |
isLogging()
Check if the system logging is active. |
static boolean |
isLogging(String channel)
Check if the system logging is active for the selected channel. |
static void |
log(String channel,
String message)
Log a message into the OpenCms logfile. |
static String |
setBasePath(String s)
Set the base path to the given value |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static boolean c_servletLogging
| Constructor Detail |
public CmsBase()
| Method Detail |
public static void initializeServletLogging(source.org.apache.java.util.Configurations config)
public static boolean isLogging()
true if the logging is active, false otherwise.public static boolean isLogging(String channel)
true if the logging is active for the selected channel, false otherwise.
public static void log(String channel,
String message)
channel - The channel the message is logged intomessage - The message to be logged,public static String setBasePath(String s)
public static String getBasePath()
public static String getWebBasePath()
public static String getWebAppName()
public static String getAbsoluteWebPath(String s)
public static String getAbsolutePath(String s)
public static String getPropertiesPath(boolean absolute)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||