net.shibboleth.metadata.dom.saml
Class EntitiesDescriptorDisassemblerStage

java.lang.Object
  extended by net.shibboleth.metadata.pipeline.AbstractComponent
      extended by net.shibboleth.metadata.pipeline.BaseStage<DomElementItem>
          extended by net.shibboleth.metadata.dom.saml.EntitiesDescriptorDisassemblerStage
All Implemented Interfaces:
Component, Stage<DomElementItem>

@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
 
Methods inherited from class net.shibboleth.metadata.pipeline.AbstractComponent
doInitialize, 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

log

private final Logger log
Class logger.

Constructor Detail

EntitiesDescriptorDisassemblerStage

public EntitiesDescriptorDisassemblerStage()
Method Detail

doExecute

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

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

processEntitiesDescriptor

protected void processEntitiesDescriptor(Collection<DomElementItem> itemCollection,
                                         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(Collection<DomElementItem> itemCollection,
                                       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 © 2009-2011. All Rights Reserved.