com.novell.nxpe.trace
Class Trace
java.lang.Object
com.novell.nxpe.trace.Trace
public class Trace
- extends java.lang.Object
Base class for encapsulated trace information
Trace Output Format Description
The trace output will have the following format:
For Conditions:
~~~~~~~~~[~]\r\n
where...
The type of trace object (TYPE_CONDITION)
Unique id of the action invoked
The enumerative value and parameter list of the LHS Operand
The display name of the condition operator.
The enumerative value and parameter list of the RHS Operand
The values of the LHS and RHS operands separated by the ':' character.
The string "NOT" if the result was negated prior to reporting
Numerical result found in NxpeResult.java
(Optional) String indicating error that caused the final result
For PEP Actions:
~~~~~~~~~\r\n
where...
The type of trace object (TYPE_PEP_ACTION)
Unique id of the action invoked
Name of action
Action specific trace string 1 (must not include sensitive/secure data)
Action specific trace string 2 (must not include sensitive/secure data)
Action specific trace string 3 (may include sensitive/secure data)
Numerical result found in NxpeResult.java
For PEP Action Completion:
~~~~~~~~~[~]\r\n
where...
The type of trace object (TYPE_PEP_ACTION_COMPLETE)
Unique id of the action invoked
Name of action
Parameters passed to action handler
Numerical result found in NxpeResult.java
(Optional) - string indicating error that occurred while performing action
For ExternalActions:
~~~~~~~~\r\n
where...
The type of trace object (TYPE_EXTERNAL_ACTION)
Unique id of the action invoked
Name of external action
Numerical result found in NxpeResult.java
For Rules:
~~~~~~~~~\r\n
where...
The type of trace object (TYPE_RULE)
Unique id of the rule being evaluated
Name of rule's parent policy
true = "DNF", otherwise "CNF".
Number of condition sets and actions for this rule
Numerical result found in NxpeResult.java
For RuleList:
~~~0~~~~~~\r\n
where...
The type of trace object (TYPE_RULELIST)
The number of rules in the RuleList
Numerical result found in NxpeResult.java
For ConditionSet:
~~~~~~~~~\r\n
where...
The type of trace object (TYPE_CONDITIONSET)
Unique id of the action invoked
If bJoinType is true then "ANDs", otherwise "ORs".
If bNot is true then "NOT", otherwise ""
Numerical result found in NxpeResult.java
- Since:
- NXPE1.0
- Author:
- Paladin Team
Method Summary |
protected static void |
AddTrace(NxpeInformationContext hInformation,
NxpeResponseContext hResponse,
java.lang.String eTraceType,
java.lang.String interfaceId,
java.lang.String pszLHSOperand,
java.lang.String pszOperator,
java.lang.String pszRHSOperand,
java.lang.String pszValue,
java.lang.String pszMisc,
NxpeResult eResult,
java.lang.String pszErrorString)
|
protected static java.lang.String |
BuildTraceString(NxpeInformationContext hInformation,
java.lang.String eTraceType,
java.lang.String interfaceId,
java.lang.String pszTraceString1,
java.lang.String pszTraceString2,
java.lang.String pszTraceString3,
java.lang.String pszTraceString4,
java.lang.String pszTraceString5,
NxpeResult eResult,
java.lang.String pszErrorString)
|
protected static java.lang.String |
getErrorString(NxpeException exception,
java.lang.String prefix)
|
java.lang.String |
getTraceString()
Returns string representing encapsulated data including
without possible sensitive/secure data |
java.lang.String |
getTraceType()
Returns trace type of specific object |
static void |
TRACE_ACTION_COMPLETE(NxpeInformationContext hInformation,
NxpeResponseContext hResponse,
java.lang.String interfaceId,
java.lang.String pszActionName,
NxpeParameterList hActionParameterList,
NxpeResult eResult,
NxpeException exception)
|
static void |
TRACE_ACTION(NxpeInformationContext hInformation,
NxpeResponseContext hResponse,
java.lang.String interfaceId,
java.lang.String pszActionName,
java.lang.String pszActionTrace1,
java.lang.String pszActionTrace2,
java.lang.String pszActionTrace3,
NxpeResult eResult)
|
static void |
TRACE_CONDITION(NxpeInformationContext hInformation,
NxpeResponseContext hResponse,
java.lang.String interfaceId,
int iLHSEnum,
java.lang.String pszLHSValue,
java.lang.String pszLHSParams,
java.lang.String pszOP,
int iRHSEnum,
java.lang.String pszRHSValue,
java.lang.String pszRHSParams,
boolean bNegateResult,
NxpeResult eResult)
|
static void |
TRACE_CONDITION(NxpeInformationContext hInformation,
NxpeResponseContext hResponse,
java.lang.String interfaceId,
int iLHSEnum,
java.lang.String pszLHSValue,
java.lang.String pszLHSParams,
java.lang.String pszOP,
int iRHSEnum,
java.lang.String pszRHSValue,
java.lang.String pszRHSParams,
boolean bNegateResult,
NxpeResult eResult,
NxpeException exception)
|
static void |
TRACE_CONDITIONSET(NxpeInformationContext hInformation,
NxpeResponseContext hResponse,
java.lang.String interfaceId,
boolean bJoinType,
boolean bNot,
int iConditionCount,
NxpeResult eResult)
|
static void |
TRACE_EXTERNAL_ACTION_COMPLETE(NxpeInformationContext hInformation,
NxpeResponseContext hResponse,
java.lang.String interfaceId,
java.lang.String pszActionName,
NxpeResult eResult,
NxpeException exception)
|
static void |
TRACE_EXTERNAL_ACTION(NxpeInformationContext hInformation,
NxpeResponseContext hResponse,
java.lang.String interfaceId,
java.lang.String pszActionName,
NxpeResult eResult)
|
static void |
TRACE_EXTERNAL_CONDITION_COMPLETE(NxpeInformationContext hInformation,
NxpeResponseContext hResponse,
java.lang.String interfaceId,
java.lang.String pszConditionName,
boolean bNOT,
NxpeResult eResult,
NxpeException exception)
|
static void |
TRACE_EXTERNAL_CONDITION(NxpeInformationContext hInformation,
NxpeResponseContext hResponse,
java.lang.String interfaceId,
java.lang.String pszConditionName,
boolean bNOT,
NxpeResult eResult)
|
static void |
TRACE_EXTERNAL_DATA_ELEMENT_COMPLETE(NxpeInformationContext hInformation,
NxpeResponseContext hResponse,
java.lang.String interfaceId,
java.lang.String pszConditionName,
int iEnumerativeValue,
java.lang.Object oDataElement,
NxpeException exception)
|
static void |
TRACE_EXTERNAL_DATA_ELEMENT(NxpeInformationContext hInformation,
NxpeResponseContext hResponse,
java.lang.String interfaceId,
java.lang.String pszConditionName,
int iEnumerativeValue,
java.lang.String strParameter)
|
static void |
TRACE_RULE(NxpeInformationContext hInformation,
NxpeResponseContext hResponse,
java.lang.String interfaceId,
java.lang.String pszParentPolicyName,
boolean bConditionSetJoinType,
int iConditionSetCount,
int iActionCount,
NxpeResult eResult)
|
static void |
TRACE_RULELIST(NxpeInformationContext hInformation,
NxpeResponseContext hResponse,
int iRuleCount,
NxpeResult eResult)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TYPE_CONDITION
public static java.lang.String TYPE_CONDITION
TYPE_EXTERNAL_CONDITION
public static java.lang.String TYPE_EXTERNAL_CONDITION
TYPE_EXTERNAL_CONDITION_COMPLETE
public static java.lang.String TYPE_EXTERNAL_CONDITION_COMPLETE
TYPE_EXTERNAL_DATA_ELEMENT
public static java.lang.String TYPE_EXTERNAL_DATA_ELEMENT
TYPE_EXTERNAL_DATA_ELEMENT_COMPLETE
public static java.lang.String TYPE_EXTERNAL_DATA_ELEMENT_COMPLETE
TYPE_CONDITIONSET
public static java.lang.String TYPE_CONDITIONSET
TYPE_PEP_ACTION
public static java.lang.String TYPE_PEP_ACTION
TYPE_PEP_ACTION_COMPLETE
public static java.lang.String TYPE_PEP_ACTION_COMPLETE
TYPE_EXTERNAL_ACTION
public static java.lang.String TYPE_EXTERNAL_ACTION
TYPE_EXTERNAL_ACTION_COMPLETE
public static java.lang.String TYPE_EXTERNAL_ACTION_COMPLETE
TYPE_RULE
public static java.lang.String TYPE_RULE
TYPE_RULELIST
public static java.lang.String TYPE_RULELIST
TYPE_SELECTOR
public static java.lang.String TYPE_SELECTOR
TRACE_CONDITION
public static void TRACE_CONDITION(NxpeInformationContext hInformation,
NxpeResponseContext hResponse,
java.lang.String interfaceId,
int iLHSEnum,
java.lang.String pszLHSValue,
java.lang.String pszLHSParams,
java.lang.String pszOP,
int iRHSEnum,
java.lang.String pszRHSValue,
java.lang.String pszRHSParams,
boolean bNegateResult,
NxpeResult eResult,
NxpeException exception)
throws NxpeException
- Throws:
NxpeException
TRACE_CONDITION
public static void TRACE_CONDITION(NxpeInformationContext hInformation,
NxpeResponseContext hResponse,
java.lang.String interfaceId,
int iLHSEnum,
java.lang.String pszLHSValue,
java.lang.String pszLHSParams,
java.lang.String pszOP,
int iRHSEnum,
java.lang.String pszRHSValue,
java.lang.String pszRHSParams,
boolean bNegateResult,
NxpeResult eResult)
throws NxpeException
- Throws:
NxpeException
TRACE_EXTERNAL_CONDITION
public static void TRACE_EXTERNAL_CONDITION(NxpeInformationContext hInformation,
NxpeResponseContext hResponse,
java.lang.String interfaceId,
java.lang.String pszConditionName,
boolean bNOT,
NxpeResult eResult)
throws NxpeException
- Throws:
NxpeException
TRACE_EXTERNAL_CONDITION_COMPLETE
public static void TRACE_EXTERNAL_CONDITION_COMPLETE(NxpeInformationContext hInformation,
NxpeResponseContext hResponse,
java.lang.String interfaceId,
java.lang.String pszConditionName,
boolean bNOT,
NxpeResult eResult,
NxpeException exception)
throws NxpeException
- Throws:
NxpeException
TRACE_EXTERNAL_DATA_ELEMENT
public static void TRACE_EXTERNAL_DATA_ELEMENT(NxpeInformationContext hInformation,
NxpeResponseContext hResponse,
java.lang.String interfaceId,
java.lang.String pszConditionName,
int iEnumerativeValue,
java.lang.String strParameter)
throws NxpeException
- Throws:
NxpeException
TRACE_EXTERNAL_DATA_ELEMENT_COMPLETE
public static void TRACE_EXTERNAL_DATA_ELEMENT_COMPLETE(NxpeInformationContext hInformation,
NxpeResponseContext hResponse,
java.lang.String interfaceId,
java.lang.String pszConditionName,
int iEnumerativeValue,
java.lang.Object oDataElement,
NxpeException exception)
throws NxpeException
- Throws:
NxpeException
TRACE_CONDITIONSET
public static void TRACE_CONDITIONSET(NxpeInformationContext hInformation,
NxpeResponseContext hResponse,
java.lang.String interfaceId,
boolean bJoinType,
boolean bNot,
int iConditionCount,
NxpeResult eResult)
throws NxpeException
- Throws:
NxpeException
TRACE_ACTION
public static void TRACE_ACTION(NxpeInformationContext hInformation,
NxpeResponseContext hResponse,
java.lang.String interfaceId,
java.lang.String pszActionName,
java.lang.String pszActionTrace1,
java.lang.String pszActionTrace2,
java.lang.String pszActionTrace3,
NxpeResult eResult)
throws NxpeException
- Throws:
NxpeException
TRACE_ACTION_COMPLETE
public static void TRACE_ACTION_COMPLETE(NxpeInformationContext hInformation,
NxpeResponseContext hResponse,
java.lang.String interfaceId,
java.lang.String pszActionName,
NxpeParameterList hActionParameterList,
NxpeResult eResult,
NxpeException exception)
throws NxpeException
- Throws:
NxpeException
TRACE_EXTERNAL_ACTION
public static void TRACE_EXTERNAL_ACTION(NxpeInformationContext hInformation,
NxpeResponseContext hResponse,
java.lang.String interfaceId,
java.lang.String pszActionName,
NxpeResult eResult)
throws NxpeException
- Throws:
NxpeException
TRACE_EXTERNAL_ACTION_COMPLETE
public static void TRACE_EXTERNAL_ACTION_COMPLETE(NxpeInformationContext hInformation,
NxpeResponseContext hResponse,
java.lang.String interfaceId,
java.lang.String pszActionName,
NxpeResult eResult,
NxpeException exception)
throws NxpeException
- Throws:
NxpeException
TRACE_RULELIST
public static void TRACE_RULELIST(NxpeInformationContext hInformation,
NxpeResponseContext hResponse,
int iRuleCount,
NxpeResult eResult)
throws NxpeException
- Throws:
NxpeException
TRACE_RULE
public static void TRACE_RULE(NxpeInformationContext hInformation,
NxpeResponseContext hResponse,
java.lang.String interfaceId,
java.lang.String pszParentPolicyName,
boolean bConditionSetJoinType,
int iConditionSetCount,
int iActionCount,
NxpeResult eResult)
throws NxpeException
- Throws:
NxpeException
BuildTraceString
protected static java.lang.String BuildTraceString(NxpeInformationContext hInformation,
java.lang.String eTraceType,
java.lang.String interfaceId,
java.lang.String pszTraceString1,
java.lang.String pszTraceString2,
java.lang.String pszTraceString3,
java.lang.String pszTraceString4,
java.lang.String pszTraceString5,
NxpeResult eResult,
java.lang.String pszErrorString)
AddTrace
protected static void AddTrace(NxpeInformationContext hInformation,
NxpeResponseContext hResponse,
java.lang.String eTraceType,
java.lang.String interfaceId,
java.lang.String pszLHSOperand,
java.lang.String pszOperator,
java.lang.String pszRHSOperand,
java.lang.String pszValue,
java.lang.String pszMisc,
NxpeResult eResult,
java.lang.String pszErrorString)
throws NxpeException
- Throws:
NxpeException
getTraceString
public java.lang.String getTraceString()
- Returns string representing encapsulated data including
without possible sensitive/secure data
getTraceType
public java.lang.String getTraceType()
- Returns trace type of specific object
getErrorString
protected static java.lang.String getErrorString(NxpeException exception,
java.lang.String prefix)
Copyright © 2005-2009, 2012 Novell,Inc. All Rights Reserved.