|
SiteMinder Java SDK r12.51 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.netegrity.policyserver.smapi.APIContext
com.netegrity.policyserver.smapi.APIContextLogger
com.netegrity.policyserver.smapi.SmAPIContextLogger
public class SmAPIContextLogger
This class is a wrapper for the SmLogger class from common/smerrlog-java, which provides logging and tracing access to the common C++ logging facility. This class is meant to be used internally within the policy server, and not by customer plugins. A separate instance of this class should be used for each thread (due to transaction ID logging). Currently, this is handled by the code which sets up the APIContext before calling a component which uses it.
| Field Summary |
|---|
| Fields inherited from class com.netegrity.policyserver.smapi.APIContext |
|---|
SM_API_VERSION_V3, SM_API_VERSION_V4, SM_API_VERSION_V4_1 |
| Constructor Summary | |
|---|---|
SmAPIContextLogger(long lpApiContext)
Construct an APIContextLogger from the SiteMinder context pointer. |
|
| Method Summary | |
|---|---|
java.lang.String |
getTransactionId()
Get the transaction ID for this logger. |
void |
log(java.lang.String sFName,
int iMsgId)
Log an info or error message. |
void |
log(java.lang.String sFName,
int iMsgId,
java.lang.String sArg)
Log an info or error message. |
void |
log(java.lang.String sFName,
int iMsgId,
java.lang.String[] sArgs)
Log an info or error message. |
void |
setComponentId(int iComponentId)
Set the component ID to be used for log and trace messages for this context logger. |
void |
setGenericErrorMessageId(int iMsgId)
Set the message ID to be used for an error message from a customer plugin. |
void |
setGenericInfoMessageId(int iMsgId)
Set the message ID to be used for an info message from a customer plugin. |
void |
setTransactionId(java.lang.String transactionId)
Set the request transaction ID for this logger. |
boolean |
shouldTraceComponent(int iComponentId)
Is tracing enabled for this component? |
void |
trace(java.lang.String sFName,
java.lang.String sFuncName,
int iComponentId,
java.lang.String sMsg)
Log a trace message. |
void |
trace(java.lang.String sFName,
java.lang.String sFuncName,
java.lang.String sMsg)
Log a trace message. |
| Methods inherited from class com.netegrity.policyserver.smapi.APIContextLogger |
|---|
error, log |
| Methods inherited from class com.netegrity.policyserver.smapi.APIContext |
|---|
error, getAppSpecificContext, getAttrMap, getVersion, log, trace |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SmAPIContextLogger(long lpApiContext)
lpApiContext - the C++ pointer to lpApiContext.| Method Detail |
|---|
public java.lang.String getTransactionId()
public void setTransactionId(java.lang.String transactionId)
transactionId - the request Transaction ID.public void setGenericErrorMessageId(int iMsgId)
iMsgId - the message IDpublic void setGenericInfoMessageId(int iMsgId)
iMsgId - the message IDpublic void setComponentId(int iComponentId)
the - component ID
public void log(java.lang.String sFName,
int iMsgId)
sFName - the file name which is logging this message.iMsgId - the message ID of the message to log.
public void log(java.lang.String sFName,
int iMsgId,
java.lang.String sArg)
sFName - the file name which is logging this message.iMsgId - the message ID of the message to log.sArg - an additional argument to the message.
public void log(java.lang.String sFName,
int iMsgId,
java.lang.String[] sArgs)
sFName - the file name which is logging this message.iMsgId - the message ID of the message to log.sArgs - a String array of additional arguments to the message.
public void trace(java.lang.String sFName,
java.lang.String sFuncName,
java.lang.String sMsg)
trace in class APIContextLoggersFName - the file name which is logging this message.sFuncName - the name of the function logging this message.sMsg - an additional argument to the message.
public void trace(java.lang.String sFName,
java.lang.String sFuncName,
int iComponentId,
java.lang.String sMsg)
sFName - the file name which is logging this message.sFuncName - the name of the function logging this message.iComponentId - the component ID to use for this trace message.sMsg - an additional argument to the message.public boolean shouldTraceComponent(int iComponentId)
iComponentId - the component ID to use for this trace message.
|
Java SDK r12.51 Mon 04/08/2013 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||