|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.shibboleth.metadata.pipeline.AbstractComponent
net.shibboleth.metadata.pipeline.BaseStage<DomElementItem>
net.shibboleth.metadata.dom.XPathFilteringStage
@ThreadSafe public class XPathFilteringStage
Pipeline stage which allows filtering of @{link DomElementItem}s according to an XPath expression.
Each DomElementItem is removed if the XPath expression evaluates as true.
This stage requires the following properties be set prior to initialization:
xpathExpressionnamespaceContext
| Field Summary | |
|---|---|
private Logger |
log
Class logger. |
private NamespaceContext |
namespaceContext
The NamespaceContext to use in interpreting the XPath expression. |
private String |
xpathExpression
The XPath expression to execute on each DomElementItem. |
| Constructor Summary | |
|---|---|
XPathFilteringStage()
|
|
| Method Summary | |
|---|---|
void |
doExecute(Collection<DomElementItem> metadataCollection)
Performs the stage processing on the given Item collection. |
protected void |
doInitialize()
Do the initialization of the component. |
NamespaceContext |
getNamespaceContext()
Gets the NamespaceContext to use in interpreting the XPath expression. |
String |
getXpathExpression()
Gets the XPath expression to execute on each DomElementItem. |
void |
setNamespaceContext(NamespaceContext context)
Sets the NamespaceContext to use in interpreting the XPath expression. |
void |
setXpathExpression(String expression)
Sets the XPath expression to execute on each DomElementItem. |
| Methods inherited from class net.shibboleth.metadata.pipeline.BaseStage |
|---|
execute |
| Methods inherited from class net.shibboleth.metadata.pipeline.AbstractComponent |
|---|
equals, getId, getInitializationInstant, hashCode, initialize, isInitialized, setId |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.shibboleth.metadata.pipeline.Component |
|---|
getId, getInitializationInstant, initialize, isInitialized |
| Field Detail |
|---|
private final Logger log
private String xpathExpression
DomElementItem.
private NamespaceContext namespaceContext
NamespaceContext to use in interpreting the XPath expression.
| Constructor Detail |
|---|
public XPathFilteringStage()
| Method Detail |
|---|
public String getXpathExpression()
DomElementItem.
DomElementItempublic void setXpathExpression(String expression)
DomElementItem.
expression - XPath expression to execute on each DomElementItempublic NamespaceContext getNamespaceContext()
NamespaceContext to use in interpreting the XPath expression.
NamespaceContext to use in interpreting the XPath expressionpublic void setNamespaceContext(NamespaceContext context)
NamespaceContext to use in interpreting the XPath expression.
context - NamespaceContext to use in interpreting the XPath expressionpublic void doExecute(Collection<DomElementItem> metadataCollection)
doExecute in class BaseStage<DomElementItem>metadataCollection - collection to be processed
protected void doInitialize()
throws ComponentInitializationException
doInitialize in class AbstractComponentComponentInitializationException - throw if there is a problem initializing the component
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||