net.shibboleth.metadata.dom.saml
Class EntitiesDescriptorDisassemblerStage

java.lang.Object
  extended by net.shibboleth.utilities.java.support.component.AbstractDestructableInitializableComponent
      extended by net.shibboleth.utilities.java.support.component.AbstractDestructableIdentifiableInitializableComponent
          extended by net.shibboleth.metadata.pipeline.BaseStage<DomElementItem>
              extended by net.shibboleth.metadata.dom.saml.EntitiesDescriptorDisassemblerStage
All Implemented Interfaces:
Stage<DomElementItem>, net.shibboleth.utilities.java.support.component.Component, net.shibboleth.utilities.java.support.component.DestructableComponent, net.shibboleth.utilities.java.support.component.IdentifiableComponent, net.shibboleth.utilities.java.support.component.InitializableComponent

@ThreadSafe
public class EntitiesDescriptorDisassemblerStage
extends BaseStage<DomElementItem>

A pipeline stage that replaces any SAML EntitiesDescriptor found in the Item collection with the EntityDescriptor elements contained therein.


Field Summary
private  Logger log
          Class logger.
 
Constructor Summary
EntitiesDescriptorDisassemblerStage()
           
 
Method Summary
protected  void doExecute(Collection<DomElementItem> itemCollection)
          Performs the stage processing on the given Item collection.
protected  void processEntitiesDescriptor(Collection<DomElementItem> itemCollection, Element entitiesDescriptor)
          Processes an EntitiesDescriptor element.
protected  void processEntityDescriptor(Collection<DomElementItem> itemCollection, Element entityDescriptor)
          Processes an EntityDescriptor element.
 
Methods inherited from class net.shibboleth.metadata.pipeline.BaseStage
execute, setId
 
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractDestructableIdentifiableInitializableComponent
doInitialize, getId
 
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractDestructableInitializableComponent
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.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

log

private final Logger log
Class logger.

Constructor Detail

EntitiesDescriptorDisassemblerStage

public EntitiesDescriptorDisassemblerStage()
Method Detail

doExecute

protected void doExecute(@Nonnull@NonnullElements
                         Collection<DomElementItem> itemCollection)
Performs the stage processing on the given Item collection.

The stage is guaranteed to be have been initialized and not destroyed when this is invoked.

Specified by:
doExecute in class BaseStage<DomElementItem>
Parameters:
itemCollection - collection to be processed

processEntitiesDescriptor

protected void processEntitiesDescriptor(@Nonnull@NonnullElements
                                         Collection<DomElementItem> itemCollection,
                                         @Nonnull
                                         Element entitiesDescriptor)
Processes an EntitiesDescriptor element. All child EntityDescriptor elements are processed and EntitiesDescriptors are run back through this method.

Parameters:
itemCollection - collection to which EntityDescriptor metadata elements are added
entitiesDescriptor - the EntitiesDescriptor to break down

processEntityDescriptor

protected void processEntityDescriptor(@Nonnull@NonnullElements
                                       Collection<DomElementItem> itemCollection,
                                       @Nonnull
                                       Element entityDescriptor)
Processes an EntityDescriptor element. Creates a DomElementItem element and adds it to the item collections.

Parameters:
itemCollection - collection to which metadata is added
entityDescriptor - entity descriptor to add to the item collection


Copyright © 1999-2012. All Rights Reserved.