Class ReloadMetadata
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
org.opensaml.profile.action.AbstractProfileAction
org.opensaml.profile.action.AbstractConditionalProfileAction
net.shibboleth.idp.profile.AbstractProfileAction
net.shibboleth.idp.saml.profile.impl.ReloadMetadata
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction,Aware,MessageSource,MessageSourceAware,Action
Action that refreshes or clears a
MetadataResolver manually.
The MetadataResolver to reload is indicated by supplying RESOLVER_ID as a flow variable.
On success, a 200 HTTP status with a simple response body is returned. On failure, a non-successful HTTP status is returned.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringIdentifies bean to refresh.private final org.slf4j.LoggerClass logger.private ReloadableService<MetadataResolver>The service that contains the metadata.static final StringFlow variable indicating ID of metadata provider bean to reload. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoExecute(ProfileRequestContext profileRequestContext) protected voidprotected booleandoPreExecute(ProfileRequestContext profileRequestContext) private MetadataResolverfindProvider(MetadataResolver rootResolver) Iterate over all providers to find the one with the name, recursing into chaining providers.voidSet the service that describes the metadata.Methods inherited from class net.shibboleth.idp.profile.AbstractProfileAction
doExecute, execute, getBean, getBean, getMessage, getMessage, getMessage, getParameter, getParameter, getProfileContextLookupStrategy, getRequestContext, getResult, setMessageSource, setProfileContextLookupStrategyMethods inherited from class org.opensaml.profile.action.AbstractConditionalProfileAction
getActivationCondition, setActivationConditionMethods inherited from class org.opensaml.profile.action.AbstractProfileAction
doPostExecute, doPostExecute, ensureHttpServletRequest, ensureHttpServletResponse, execute, getHttpServletRequest, getHttpServletRequestSupplier, getHttpServletResponse, getHttpServletResponseSupplier, getLogPrefix, isPreExecuteCalled, setHttpServletRequestSupplier, setHttpServletResponseSupplierMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, 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
-
RESOLVER_ID
Flow variable indicating ID of metadata provider bean to reload.- See Also:
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
metadataResolverService
The service that contains the metadata. -
id
Identifies bean to refresh.
-
-
Constructor Details
-
ReloadMetadata
public ReloadMetadata()
-
-
Method Details
-
doInitialize
- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-
doPreExecute
- Overrides:
doPreExecutein classAbstractConditionalProfileAction
-
findProvider
Iterate over all providers to find the one with the name, recursing into chaining providers.- Parameters:
rootResolver- where to start- Returns:
- the resolver, or null if none found.
-
doExecute
- Overrides:
doExecutein classAbstractProfileAction