|
Oracle Fusion Middleware Java API Reference for Oracle ADF Share 11g Release 1 (11.1.1.6.0) E10686-07 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.adf.share.logging.internal.LoggingUtils
public class LoggingUtils
This class contains some Logging utility functions
Method Summary | |
---|---|
static void |
deactivateExecutionContext()
Deactivate ExecutionContext of current thread (the child thread) This method should be called on child thread, when child thread no longer works for parent thread (in case of worker thread) |
static java.lang.String |
getECID()
Get ECID for current running thread |
static java.lang.String |
getNounType(java.lang.String groupName)
Get noun type from group name which is in the format of /oracle/component_id/noun1/noun2/.../nounN |
static java.lang.String |
getUrl(javax.servlet.http.HttpServletRequest request)
Get url for the http servlet request |
static boolean |
isDMSLoggingEnabled(java.util.logging.Level level)
Check if the DMS's level enables or disables current sensor level. |
static java.lang.String |
newChildExecutionContext()
Create a new ExecutionContext for a child of current thread This method should be called on parent thread. |
static void |
setExecutionContext(java.lang.String key)
Set ExecutionContext for a child This method should be called on child thread, passing the key returned from newChildExecutionContext() |
static java.lang.StringBuffer |
standardizeGroupName(java.lang.String groupName)
Standardize groupName |
static java.lang.String |
standardizeSensorName(java.lang.String name)
Standardize sensor name |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.String getECID()
public static java.lang.String getNounType(java.lang.String groupName)
groupName
-
public static boolean isDMSLoggingEnabled(java.util.logging.Level level)
false
.
level
- the sensor level to be compared with DMS's level
true
means enabled; false
means disabledpublic static java.lang.String getUrl(javax.servlet.http.HttpServletRequest request)
If the request is get, append query string
If the request is post, append post parameter except state
distinguish the request type by prepend "get" or "post"
public static java.lang.StringBuffer standardizeGroupName(java.lang.String groupName)
Check and prepend beginning slash; replace spaces with '_'
groupName
- original group name
public static java.lang.String standardizeSensorName(java.lang.String name)
replace all spaces with '_'
name
- original sensor name
public static java.lang.String newChildExecutionContext()
public static void setExecutionContext(java.lang.String key)
ket
- a reference object to set into child thread so parent-child
association is established for ExecutionContextpublic static void deactivateExecutionContext()
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Share 11g Release 1 (11.1.1.6.0) E10686-07 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |