public abstract class AbstractObligation extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
fulfillOn
effect that will cause this obligation to be included in a response
|
protected URI |
obligationId
Identifier that uniquely identify the Obligation or ObligationExpression element
|
Constructor and Description |
---|
AbstractObligation() |
Modifier and Type | Method and Description |
---|---|
abstract void |
encode(StringBuilder builder)
Encodes this
ObligationResult into its XML form and writes this out to the provided
StringBuilder |
abstract ObligationResult |
evaluate(EvaluationCtx ctx)
Evaluates obligation and creates the results
|
int |
getFulfillOn()
Returns effect that will cause this obligation to be included in a response
|
URI |
getId()
Returns the id of this obligation
|
protected URI obligationId
protected int fulfillOn
public abstract ObligationResult evaluate(EvaluationCtx ctx)
ctx
- EvaluationCtx
ObligationResult
public int getFulfillOn()
public URI getId()
public abstract void encode(StringBuilder builder)
ObligationResult
into its XML form and writes this out to the provided
StringBuilder
builder
- string stream into which the XML-encoded data is writtenCopyright © 2016 WSO2. All rights reserved.