Package net.shibboleth.idp.profile.impl
Class ReloadServiceConfiguration
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.profile.impl.ReloadServiceConfiguration
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction,Aware,MessageSource,MessageSourceAware,Action
Action that refreshes a
ReloadableService manually.
With the default strategy, the service to reload is indicated by supplying SERVICE_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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classDefault strategy locates a bean identified with a flow-scope parameter in the web flow application context. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.slf4j.LoggerClass logger.private ReloadableService<?>The service to reload.static final StringFlow variable indicating ID of service bean to reload.private Function<ProfileRequestContext,ReloadableService<?>> Lookup function to locate service bean to operate on. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoExecute(ProfileRequestContext profileRequestContext) protected booleandoPreExecute(ProfileRequestContext profileRequestContext) voidSet the lookup strategy for the service object to reload.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, 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
-
SERVICE_ID
Flow variable indicating ID of service bean to reload.- See Also:
-
log
@Nonnull private org.slf4j.Logger logClass logger. -
serviceLookupStrategy
Lookup function to locate service bean to operate on. -
service
The service to reload.
-
-
Constructor Details
-
ReloadServiceConfiguration
public ReloadServiceConfiguration()Constructor.
-
-
Method Details
-
setServiceLookupStrategy
public void setServiceLookupStrategy(@Nonnull Function<ProfileRequestContext, ReloadableService<?>> strategy) Set the lookup strategy for the service object to reload.- Parameters:
strategy- lookup strategy
-
doPreExecute
- Overrides:
doPreExecutein classAbstractConditionalProfileAction
-
doExecute
- Overrides:
doExecutein classAbstractProfileAction
-