Package net.shibboleth.metadata.dom
Class NamespaceStrippingStage
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
net.shibboleth.metadata.pipeline.AbstractStage<T>
net.shibboleth.metadata.pipeline.AbstractIteratingStage<Element>
net.shibboleth.metadata.dom.AbstractNamespacesStrippingStage
net.shibboleth.metadata.dom.NamespaceStrippingStage
- All Implemented Interfaces:
Stage<Element>,net.shibboleth.shared.component.Component,net.shibboleth.shared.component.DestructableComponent,net.shibboleth.shared.component.IdentifiableComponent,net.shibboleth.shared.component.IdentifiedComponent,net.shibboleth.shared.component.InitializableComponent
A stage which removes all evidence of a given XML namespace from each metadata item.
- Since:
- 0.9.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfinal StringGets the namespace being checked for.protected booleanDetermine whether a particular namespace should be stripped.voidsetNamespace(String ns) Sets the namespace to check for.Methods inherited from class net.shibboleth.metadata.dom.AbstractNamespacesStrippingStage
doExecuteMethods inherited from class net.shibboleth.metadata.pipeline.AbstractIteratingStage
doExecuteMethods inherited from class net.shibboleth.metadata.pipeline.AbstractStage
execute, getCollectionPredicate, setCollectionPredicateMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
setIdMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
ensureId, getId, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentExceptionMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.component.DestructableComponent
destroy, isDestroyedMethods inherited from interface net.shibboleth.shared.component.IdentifiedComponent
getIdMethods inherited from interface net.shibboleth.shared.component.InitializableComponent
initialize, isInitialized
-
Field Details
-
namespace
XML namespace to remove.
-
-
Constructor Details
-
NamespaceStrippingStage
public NamespaceStrippingStage()
-
-
Method Details
-
getNamespace
Gets the namespace being checked for.- Returns:
- namespace URI
-
setNamespace
Sets the namespace to check for.- Parameters:
ns- namespace URI as a string
-
removingNamespace
Description copied from class:AbstractNamespacesStrippingStageDetermine whether a particular namespace should be stripped.- Specified by:
removingNamespacein classAbstractNamespacesStrippingStage- Parameters:
ns- potentially stripped namespace- Returns:
trueif this namespace should be stripped
-
doInitialize
protected void doInitialize() throws net.shibboleth.shared.component.ComponentInitializationException- Overrides:
doInitializein classnet.shibboleth.shared.component.AbstractIdentifiedInitializableComponent- Throws:
net.shibboleth.shared.component.ComponentInitializationException
-