|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NxpeCondition
Defines an interface you need to extend. It contains the methods required to evaluate the condition for a policy.
Method Summary | |
---|---|
NxpeResult |
evaluate(NxpeInformationContext informationContext,
NxpeResponseContext responseContext)
Called by the policy engine to evaluate the condition. |
void |
initialize(NxpeParameterList configurationValues)
Called by the policy engine to initialize the condition in preparation for policy evaluation. |
void |
setInterfaceId(java.lang.String interfaceId)
Sets the unique string value for the condition. |
Method Detail |
---|
void initialize(NxpeParameterList configurationValues) throws NxpeException
Derived classes are required to override this method. This method is guaranteed to be called before any other method is called, as this is part of object construction.
configurationValues
- A list of configuration data required by the
external condition handler. This object is only valid during the
lifetime of the initialize method. If you want to preserve
config data, it must be copied to the condition handler.
NxpeException
NxpeResult evaluate(NxpeInformationContext informationContext, NxpeResponseContext responseContext) throws NxpeException
Derived classes are require to override this method to implement the supported condition.
informationContext
- The parameter information the extension needs
from the policy engine to evaluate the condition.responseContext
- The object for communicating detailed response
information back to the application. This does not replace the need
to notify the policy engine of the condition completion status
via the return value from this call.
NxpeException
void setInterfaceId(java.lang.String interfaceId) throws NxpeException
This is currently the InterfaceId found in the condition element. This data is used for tracing evaluation.
interfaceId
- The unique string value for the condition.
NxpeException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |