|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.geant.edugain.attributes.RuleContext
public class RuleContext
The RuleContext class provides a common context for one attribute converter Rule. This class is instantiated by the rule, and the instance lives until the Rule returns. RuleContext is responsible for the expression handling in the 'output' AttributeValues. This implementation uses JUEL EL implementation from odysseus.de. (http://juel.sourceforge.net). Also RuleContext provides access to the RequestContext which holds input and output attribute sets and other information related to the request.
| Field Summary | |
|---|---|
private de.odysseus.el.util.SimpleContext |
elContext
EL Context |
private javax.el.ExpressionFactory |
factory
EL Expression Factory |
private boolean |
hasMultivaluedMatch
Whether this context already has multivalued match or not. |
private org.apache.log4j.Logger |
log
Logger instance |
private java.util.List |
multivaluedMatches
The values of the multivalued match. |
private java.lang.String |
multivaluedMatchID
If the context containes multivalued match, this is the ID of it. |
private RequestContext |
requestContext
The request context. |
| Constructor Summary | |
|---|---|
RuleContext(RequestContext requestContext)
Creates new RuleContext instance. |
|
| Method Summary | |
|---|---|
java.util.List<java.lang.String> |
getExpressionValues(java.lang.String expression)
Resolves the EL expression. |
AttributeSet |
getFilterWorkAttributeSet()
Returns the filter work AttributeSet this FilterRule operates on. |
AttributeSet |
getInputAttributeSet()
Returns the input AttributeSet this Rule operates on. |
java.lang.String |
getLocalProvider()
Returns the loal provider identifier from the RequestContext. |
AttributeSet |
getOutputAttributeSet()
Returns the output AttributeSet this Rule operates on. |
java.lang.String |
getRemoteProvider()
Returns the remote provider identifier from the RequestContext. |
RequestContext |
getRequestContext()
Returns the RequestContext of this request. |
void |
putAttributeMatchValues(java.lang.String attributeMatchID,
java.util.List attributeMatches)
Put Attribute match values to the Rule Context. |
void |
putVariable(java.lang.String name,
java.lang.Object value)
Bind the variable to the EL Context. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private boolean hasMultivaluedMatch
private java.lang.String multivaluedMatchID
private java.util.List multivaluedMatches
private de.odysseus.el.util.SimpleContext elContext
private javax.el.ExpressionFactory factory
private org.apache.log4j.Logger log
private RequestContext requestContext
| Constructor Detail |
|---|
public RuleContext(RequestContext requestContext)
requestContext - | Method Detail |
|---|
public java.lang.String getRemoteProvider()
public java.lang.String getLocalProvider()
public void putVariable(java.lang.String name,
java.lang.Object value)
name - value -
public java.util.List<java.lang.String> getExpressionValues(java.lang.String expression)
throws EvaluationException
expression -
EvaluationException
public void putAttributeMatchValues(java.lang.String attributeMatchID,
java.util.List attributeMatches)
attributeMatchID - The name for the attributeMatch.attributeMatches - List of Lists for the regexp matcher groups.public AttributeSet getInputAttributeSet()
public AttributeSet getOutputAttributeSet()
public AttributeSet getFilterWorkAttributeSet()
public RequestContext getRequestContext()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||