Class StatusMetadataLoggingStage<T>

java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
Type Parameters:
T - type of item which this stage processes
All Implemented Interfaces:
Stage<T>, 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 StatusMetadataLoggingStage<T> extends AbstractItemMetadataSelectionStage<T,StatusMetadata>
A Stage that logs StatusMetadata associated with an Item.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final org.slf4j.Logger
    Class logger.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    doExecute(List<Item<T>> items, Item<T> matchingItem, net.shibboleth.shared.collection.ClassToInstanceMultiMap<StatusMetadata> matchingMetadata)
    Performs the stage's logic on the given item that contained metadata of the given type.
    private void
    logErrors(String itemId, List<ErrorStatus> statuses)
    Logs error messages.
    private void
    logInfos(String itemId, List<InfoStatus> statuses)
    Logs info messages.
    private void
    logWarnings(String itemId, List<WarningStatus> statuses)
    Logs warning messages.

    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

    doInitialize, 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

    • LOG

      @Nonnull private static final org.slf4j.Logger LOG
      Class logger.
  • Constructor Details

    • StatusMetadataLoggingStage

      public StatusMetadataLoggingStage()
  • Method Details

    • doExecute

      protected void doExecute(@Nonnull @NonnullElements List<Item<T>> items, @Nonnull Item<T> matchingItem, @Nonnull @NonnullElements net.shibboleth.shared.collection.ClassToInstanceMultiMap<StatusMetadata> matchingMetadata) throws StageProcessingException
      Description copied from class: AbstractItemMetadataSelectionStage
      Performs the stage's logic on the given item that contained metadata of the given type.
      Specified by:
      doExecute in class AbstractItemMetadataSelectionStage<T,StatusMetadata>
      Parameters:
      items - current item collection
      matchingItem - matching item
      matchingMetadata - all the ItemMetadata instances that match a selection criteria
      Throws:
      StageProcessingException - thrown if there is a problem processing the item
    • logInfos

      private void logInfos(@Nonnull String itemId, @Nonnull @NonnullElements List<InfoStatus> statuses)
      Logs info messages.
      Parameters:
      itemId - ID of the item
      statuses - status messages to log
    • logWarnings

      private void logWarnings(@Nonnull String itemId, @Nonnull @NonnullElements List<WarningStatus> statuses)
      Logs warning messages.
      Parameters:
      itemId - ID of the item
      statuses - status messages to log
    • logErrors

      private void logErrors(@Nonnull String itemId, @Nonnull @NonnullElements List<ErrorStatus> statuses)
      Logs error messages.
      Parameters:
      itemId - ID of the item
      statuses - status messages to log