|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.shibboleth.utilities.java.support.component.AbstractDestructableInitializableComponent
net.shibboleth.utilities.java.support.component.AbstractDestructableIdentifiableInitializableComponent
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 | |
|---|---|
protected void |
doDestroy()
|
void |
doExecute(Collection<DomElementItem> metadataCollection)
Performs the stage processing on the given Item collection. |
protected void |
doInitialize()
|
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, setId |
| Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractDestructableIdentifiableInitializableComponent |
|---|
getId |
| Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractDestructableInitializableComponent |
|---|
destroy, initialize, isDestroyed, isInitialized |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.shibboleth.utilities.java.support.component.DestructableComponent |
|---|
destroy, isDestroyed |
| Methods inherited from interface net.shibboleth.utilities.java.support.component.IdentifiableComponent |
|---|
getId |
| Methods inherited from interface net.shibboleth.utilities.java.support.component.InitializableComponent |
|---|
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 |
|---|
@Nullable public String getXpathExpression()
DomElementItem.
DomElementItem
public void setXpathExpression(@Nonnull@NotEmpty
String expression)
DomElementItem.
expression - XPath expression to execute on each DomElementItem@Nonnull public NamespaceContext getNamespaceContext()
NamespaceContext to use in interpreting the XPath expression.
NamespaceContext to use in interpreting the XPath expression
public void setNamespaceContext(@Nullable
NamespaceContext context)
NamespaceContext to use in interpreting the XPath expression.
context - NamespaceContext to use in interpreting the XPath expression
public void doExecute(@Nonnull@NonnullElements
Collection<DomElementItem> metadataCollection)
The stage is guaranteed to be have been initialized and not destroyed when this is invoked.
doExecute in class BaseStage<DomElementItem>metadataCollection - collection to be processedprotected void doDestroy()
doDestroy in class net.shibboleth.utilities.java.support.component.AbstractDestructableInitializableComponent
protected void doInitialize()
throws net.shibboleth.utilities.java.support.component.ComponentInitializationException
doInitialize in class net.shibboleth.utilities.java.support.component.AbstractDestructableIdentifiableInitializableComponentnet.shibboleth.utilities.java.support.component.ComponentInitializationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||