Package net.shibboleth.metadata.pipeline
Class StatusMetadataLoggingStage<T>
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.AbstractItemMetadataSelectionStage<T,StatusMetadata>
net.shibboleth.metadata.pipeline.StatusMetadataLoggingStage<T>
- 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>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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.AbstractItemMetadataSelectionStage
doExecute, getItemIdentificationStrategy, getSelectionRequirements, setIdentificationStrategy, setSelectionRequirements
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 LOGClass logger.
-
-
Constructor Details
-
StatusMetadataLoggingStage
public StatusMetadataLoggingStage()
-
-
Method Details
-
logInfos
Logs info messages.- Parameters:
itemId
- ID of the itemstatuses
- status messages to log
-
logWarnings
private void logWarnings(@Nonnull String itemId, @Nonnull @NonnullElements List<WarningStatus> statuses) Logs warning messages.- Parameters:
itemId
- ID of the itemstatuses
- status messages to log
-
logErrors
private void logErrors(@Nonnull String itemId, @Nonnull @NonnullElements List<ErrorStatus> statuses) Logs error messages.- Parameters:
itemId
- ID of the itemstatuses
- status messages to log