public abstract class BaseObligationHandler
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
id
ID of the handled obligation.
|
private int |
precedence
Precedence of this handler.
|
| Modifier | Constructor and Description |
|---|---|
protected |
BaseObligationHandler(java.lang.String obligationId)
Constructor.
|
protected |
BaseObligationHandler(java.lang.String obligationId,
int handlerPrecedence)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
abstract void |
evaluateObligation(ObligationProcessingContext context,
ObligationType obligation)
Evaluates the obligation represented by this handler.
|
int |
getHandlerPrecedence()
Gets the precedence of the handler.
|
java.lang.String |
getObligationId()
Gets the ID of the handled obligation.
|
int |
hashCode() |
private java.lang.String id
private int precedence
protected BaseObligationHandler(java.lang.String obligationId)
obligationId - ID of the handled obligationprotected BaseObligationHandler(java.lang.String obligationId,
int handlerPrecedence)
obligationId - ID of the handled obligationhandlerPrecedence - precedence of this handlerpublic java.lang.String getObligationId()
public int getHandlerPrecedence()
public abstract void evaluateObligation(ObligationProcessingContext context, ObligationType obligation) throws ObligationProcessingException
context - current processing contextobligation - the obligation as returned by the PDPObligationProcessingException - thrown if there is a problem evaluating this handlerpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object