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
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 class
Default strategy locates a bean identified with a flow-scope parameter in the web flow application context. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.slf4j.Logger
Class logger.private ReloadableService<?>
The service to reload.static final String
Flow 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 void
doExecute
(ProfileRequestContext profileRequestContext) protected boolean
doPreExecute
(ProfileRequestContext profileRequestContext) void
Set the lookup strategy for the service object to reload.Methods inherited from class net.shibboleth.idp.profile.AbstractProfileAction
doExecute, execute, getMessage, getMessage, getMessage, 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, getHttpServletResponse, getLogPrefix, setHttpServletRequest, setHttpServletResponse
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 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:
doPreExecute
in classAbstractConditionalProfileAction
-
doExecute
- Overrides:
doExecute
in classAbstractProfileAction
-