Package net.shibboleth.idp.profile.impl
Class ReloadServiceConfiguration
- java.lang.Object
-
- net.shibboleth.utilities.java.support.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
public class ReloadServiceConfiguration extends AbstractProfileAction
Action that refreshes aReloadableServicemanually.With the default strategy, the service to reload is indicated by supplying
SERVICE_IDas 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 Classes Modifier and Type Class Description private classReloadServiceConfiguration.WebFlowApplicationContextLookupStrategyDefault strategy locates a bean identified with a flow-scope parameter in the web flow application context.
-
Field Summary
Fields Modifier and Type Field Description private org.slf4j.LoggerlogClass logger.private ReloadableService<?>serviceThe service to reload.static StringSERVICE_IDFlow variable indicating ID of service bean to reload.private Function<ProfileRequestContext,ReloadableService<?>>serviceLookupStrategyLookup function to locate service bean to operate on.
-
Constructor Summary
Constructors Constructor Description ReloadServiceConfiguration()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoExecute(ProfileRequestContext profileRequestContext)protected booleandoPreExecute(ProfileRequestContext profileRequestContext)voidsetServiceLookupStrategy(Function<ProfileRequestContext,ReloadableService<?>> strategy)Set 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, setProfileContextLookupStrategy
-
Methods inherited from class org.opensaml.profile.action.AbstractConditionalProfileAction
getActivationCondition, setActivationCondition
-
Methods inherited from class org.opensaml.profile.action.AbstractProfileAction
doPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletRequestSupplier, getHttpServletResponse, getHttpServletResponseSupplier, getLogPrefix, setHttpServletRequest, setHttpServletRequestSupplier, setHttpServletResponse, setHttpServletResponseSupplier
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, doInitialize, 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.utilities.java.support.component.InitializableComponent
initialize, isInitialized
-
-
-
-
Field Detail
-
SERVICE_ID
@Nonnull @NotEmpty public static final String SERVICE_ID
Flow variable indicating ID of service bean to reload.- See Also:
- Constant Field Values
-
log
@Nonnull private org.slf4j.Logger log
Class logger.
-
serviceLookupStrategy
@Nonnull private Function<ProfileRequestContext,ReloadableService<?>> serviceLookupStrategy
Lookup function to locate service bean to operate on.
-
service
@Nullable private ReloadableService<?> service
The service to reload.
-
-
Method Detail
-
setServiceLookupStrategy
public void setServiceLookupStrategy(@Nonnull Function<ProfileRequestContext,ReloadableService<?>> strategy)Set the lookup strategy for the service object to reload.- Parameters:
strategy- lookup strategy
-
doPreExecute
protected boolean doPreExecute(ProfileRequestContext profileRequestContext)
- Overrides:
doPreExecutein classAbstractConditionalProfileAction
-
doExecute
protected void doExecute(ProfileRequestContext profileRequestContext)
- Overrides:
doExecutein classAbstractProfileAction
-
-