Class NamespaceStrippingStage

java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
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

@ThreadSafe public class NamespaceStrippingStage extends AbstractNamespacesStrippingStage
A stage which removes all evidence of a given XML namespace from each metadata item.
Since:
0.9.0
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private String
    XML namespace to remove.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    final String
    Gets the namespace being checked for.
    protected boolean
    Determine whether a particular namespace should be stripped.
    void
    Sets the namespace to check for.

    Methods inherited from class net.shibboleth.metadata.dom.AbstractNamespacesStrippingStage

    doExecute

    Methods inherited from class net.shibboleth.metadata.pipeline.AbstractIteratingStage

    doExecute

    Methods inherited from class net.shibboleth.metadata.pipeline.AbstractStage

    execute, getCollectionPredicate, setCollectionPredicate

    Methods inherited from class net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent

    setId

    Methods inherited from class net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent

    ensureId, getId, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException

    Methods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent

    checkComponentActive, checkSetterPreconditions, destroy, doDestroy, 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.shared.component.DestructableComponent

    destroy, isDestroyed

    Methods inherited from interface net.shibboleth.shared.component.IdentifiedComponent

    getId

    Methods inherited from interface net.shibboleth.shared.component.InitializableComponent

    initialize, isInitialized
  • Field Details

    • namespace

      @NonnullAfterInit @NotEmpty private String namespace
      XML namespace to remove.
  • Constructor Details

    • NamespaceStrippingStage

      public NamespaceStrippingStage()
  • Method Details

    • getNamespace

      @NonnullAfterInit public final String getNamespace()
      Gets the namespace being checked for.
      Returns:
      namespace URI
    • setNamespace

      public void setNamespace(@Nonnull @NotEmpty String ns)
      Sets the namespace to check for.
      Parameters:
      ns - namespace URI as a string
    • removingNamespace

      protected boolean removingNamespace(@Nullable String ns)
      Description copied from class: AbstractNamespacesStrippingStage
      Determine whether a particular namespace should be stripped.
      Specified by:
      removingNamespace in class AbstractNamespacesStrippingStage
      Parameters:
      ns - potentially stripped namespace
      Returns:
      true if this namespace should be stripped
    • doInitialize

      protected void doInitialize() throws net.shibboleth.shared.component.ComponentInitializationException
      Overrides:
      doInitialize in class net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
      Throws:
      net.shibboleth.shared.component.ComponentInitializationException