public class ReloadServiceConfiguration extends AbstractProfileAction
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.
| Modifier and Type | Class and Description |
|---|---|
private class |
ReloadServiceConfiguration.WebFlowApplicationContextLookupStrategy
Default strategy locates a bean identified with a flow-scope parameter in the web flow application context.
|
| Modifier and Type | Field and Description |
|---|---|
private org.slf4j.Logger |
log
Class logger.
|
private ReloadableService |
service
The service to reload.
|
static String |
SERVICE_ID
Flow variable indicating ID of service bean to reload.
|
private com.google.common.base.Function<ProfileRequestContext,ReloadableService> |
serviceLookupStrategy
Lookup function to locate service bean to operate on.
|
| Constructor and Description |
|---|
ReloadServiceConfiguration()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doExecute(ProfileRequestContext profileRequestContext) |
protected boolean |
doPreExecute(ProfileRequestContext profileRequestContext) |
void |
setServiceLookupStrategy(com.google.common.base.Function<ProfileRequestContext,ReloadableService> strategy)
Set the lookup strategy for the service object to reload.
|
doExecute, execute, getMessage, getMessage, getMessage, getProfileContextLookupStrategy, getRequestContext, getResult, setMessageSource, setProfileContextLookupStrategygetActivationCondition, setActivationConditiondoPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletResponse, getLogPrefix, setHttpServletRequest, setHttpServletResponsedestroy, doDestroy, doInitialize, initialize, isDestroyed, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitialize, isInitialized@Nonnull @NotEmpty public static final String SERVICE_ID
@Nonnull private org.slf4j.Logger log
@Nonnull private com.google.common.base.Function<ProfileRequestContext,ReloadableService> serviceLookupStrategy
@Nullable private ReloadableService service
public void setServiceLookupStrategy(@Nonnull com.google.common.base.Function<ProfileRequestContext,ReloadableService> strategy)
strategy - lookup strategyprotected boolean doPreExecute(ProfileRequestContext profileRequestContext)
doPreExecute in class AbstractConditionalProfileActionprotected void doExecute(ProfileRequestContext profileRequestContext)
doExecute in class AbstractProfileActionCopyright © 1999–2018 Shibboleth Consortium. All rights reserved.