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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoExecute(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 voidlogErrors(String itemId, List<ErrorStatus> statuses) Logs error messages.private voidlogInfos(String itemId, List<InfoStatus> statuses) Logs info messages.private voidlogWarnings(String itemId, List<WarningStatus> statuses) Logs warning messages.Methods inherited from class net.shibboleth.metadata.pipeline.AbstractItemMetadataSelectionStage
doExecute, getItemIdentificationStrategy, getSelectionRequirements, setIdentificationStrategy, setSelectionRequirementsMethods inherited from class net.shibboleth.metadata.pipeline.AbstractStage
execute, getCollectionPredicate, setCollectionPredicateMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
setIdMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
doInitialize, ensureId, getId, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentExceptionMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.component.DestructableComponent
destroy, isDestroyedMethods inherited from interface net.shibboleth.shared.component.IdentifiedComponent
getIdMethods 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