Package org.opensaml.profile.action.impl
Class LogEvent
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
org.opensaml.profile.action.AbstractProfileAction
org.opensaml.profile.action.impl.LogEvent
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction
A profile action that logs an event if one is found in the profile request context.
- Event:
EventIds.PROCEED_EVENT_ID
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Function<ProfileRequestContext,EventContext> Strategy function for access toEventContextto check.private final org.slf4j.LoggerClass logger.Set of events to ignore for logging purposes. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoExecute(ProfileRequestContext profileRequestContext) Performs this action.voidSet lookup strategy forEventContextto check.voidsetSuppressedEvents(Collection<String> events) Set a collection of events to ignore for logging purposes.Methods inherited from class org.opensaml.profile.action.AbstractProfileAction
doPostExecute, doPostExecute, doPreExecute, ensureHttpServletRequest, ensureHttpServletResponse, execute, getHttpServletRequest, getHttpServletRequestSupplier, getHttpServletResponse, getHttpServletResponseSupplier, getLogPrefix, isPreExecuteCalled, setHttpServletRequestSupplier, setHttpServletResponseSupplierMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, doInitialize, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, 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.InitializableComponent
initialize, isInitialized
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
eventContextLookupStrategy
Strategy function for access toEventContextto check. -
suppressedEvents
Set of events to ignore for logging purposes.
-
-
Constructor Details
-
LogEvent
public LogEvent()Constructor.
-
-
Method Details
-
setEventContextLookupStrategy
public void setEventContextLookupStrategy(@Nonnull Function<ProfileRequestContext, EventContext> strategy) Set lookup strategy forEventContextto check.- Parameters:
strategy- lookup strategy
-
setSuppressedEvents
Set a collection of events to ignore for logging purposes.- Parameters:
events- events to ignore
-
doExecute
Performs this action. Actions must override this method to perform their work.- Overrides:
doExecutein classAbstractProfileAction- Parameters:
profileRequestContext- the current IdP profile request context
-