|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensaml.xacml.ctx.provider.BaseObligationHandler
public abstract class BaseObligationHandler
Base class for all obligation handlers. Handlers are executed in order of precedence. Handlers with a higher precedence are executed before those with a lower precedence. Handlers with the same precedence are executed in random order. Obligation handlers must be stateless.
Field Summary | |
---|---|
private String |
id
ID of the handled obligation. |
private int |
precedence
Precedence of this handler. |
Constructor Summary | |
---|---|
protected |
BaseObligationHandler(String obligationId)
Constructor. |
protected |
BaseObligationHandler(String obligationId,
int handlerPrecedence)
Constructor. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
abstract void |
evaluateObligation(ObligationProcessingContext context,
ObligationType obligation)
Evaluates the obligation represented by this handler. |
int |
getHandlerPrecedence()
Gets the precedence of the handler. |
String |
getObligationId()
Gets the ID of the handled obligation. |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private String id
private int precedence
Constructor Detail |
---|
protected BaseObligationHandler(String obligationId)
obligationId
- ID of the handled obligationprotected BaseObligationHandler(String obligationId, int handlerPrecedence)
obligationId
- ID of the handled obligationhandlerPrecedence
- precedence of this handlerMethod Detail |
---|
public 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 PDP
ObligationProcessingException
- thrown if there is a problem evaluating this handlerpublic int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |