|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.geant.edugain.attributes.filters.AbstractFilter
public abstract class AbstractFilter
Abstract Attribute Filter. This class provides the infrastructure needed by AllowFilter and DenyFilter.
| Field Summary | |
|---|---|
private java.lang.String |
attributeName
The ID of the attribute which this filter operates on. |
private org.apache.log4j.Logger |
log
|
private boolean |
valueMatches
Whether or not this filter is using regular expressions to determine attribute values. |
private java.util.List<java.util.regex.Pattern> |
valueRegexps
The regular expressions set by the configuration. |
| Constructor Summary | |
|---|---|
AbstractFilter()
|
|
| Method Summary | |
|---|---|
protected void |
filterOut(AttributeSet set,
AttributeValues values)
Internal method to remove one AttributeValue from the AttributeSet. |
protected java.lang.String |
getAttributeName()
|
void |
init(AttributeType configuration)
Initializes this attribute filter with parsed configuration. |
protected boolean |
isValueMatches()
|
protected AttributeValues |
selectAttributeValues(AttributeSet input)
Internal method which makes the filtering and returns one AttributeValues which holds all the attribute values this filter will operate on. |
protected boolean |
valueMatches(java.lang.String attributeValue)
Internal method to decide whether or not one single attribute value matches at least one regular expression. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.geant.edugain.attributes.filters.Filter |
|---|
doFilter |
| Field Detail |
|---|
private java.lang.String attributeName
private boolean valueMatches
private java.util.List<java.util.regex.Pattern> valueRegexps
private org.apache.log4j.Logger log
| Constructor Detail |
|---|
public AbstractFilter()
| Method Detail |
|---|
public void init(AttributeType configuration)
init in interface Filterconfiguration - protected boolean isValueMatches()
protected java.lang.String getAttributeName()
protected AttributeValues selectAttributeValues(AttributeSet input)
input -
protected boolean valueMatches(java.lang.String attributeValue)
attributeValue -
protected void filterOut(AttributeSet set,
AttributeValues values)
set - values -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||