public class ReloadMetadata extends AbstractProfileAction
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.
EventIds.PROCEED_EVENT_ID, EventIds.INVALID_MESSAGE, EventIds.INVALID_PROFILE_CTX, EventIds.IO_ERROR| Modifier and Type | Field and Description |
|---|---|
private String |
id
Identifies bean to refresh.
|
private org.slf4j.Logger |
log
Class logger.
|
private ReloadableService<org.opensaml.saml.metadata.resolver.MetadataResolver> |
metadataResolverService
The service that contains the metadata.
|
static String |
RESOLVER_ID
Flow variable indicating ID of metadata provider bean to reload.
|
| Constructor and Description |
|---|
ReloadMetadata() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doExecute(org.opensaml.profile.context.ProfileRequestContext profileRequestContext) |
protected void |
doInitialize() |
protected boolean |
doPreExecute(org.opensaml.profile.context.ProfileRequestContext profileRequestContext) |
void |
setMetadataResolver(ReloadableService<org.opensaml.saml.metadata.resolver.MetadataResolver> service)
Set the service that describes the metadata.
|
doExecute, execute, getMessage, getMessage, getMessage, getProfileContextLookupStrategy, getRequestContext, getResult, setMessageSource, setProfileContextLookupStrategygetActivationCondition, setActivationConditiondoPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletResponse, getLogPrefix, setHttpServletRequest, setHttpServletResponsedestroy, doDestroy, initialize, isDestroyed, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitialize, isInitialized@Nonnull @NotEmpty public static final String RESOLVER_ID
@Nonnull private final org.slf4j.Logger log
@NonnullAfterInit private ReloadableService<org.opensaml.saml.metadata.resolver.MetadataResolver> metadataResolverService
public void setMetadataResolver(@Nonnull ReloadableService<org.opensaml.saml.metadata.resolver.MetadataResolver> service)
service - what to set.protected void doInitialize()
throws ComponentInitializationException
doInitialize in class AbstractInitializableComponentComponentInitializationExceptionprotected boolean doPreExecute(@Nonnull org.opensaml.profile.context.ProfileRequestContext profileRequestContext)
doPreExecute in class org.opensaml.profile.action.AbstractConditionalProfileActionprotected void doExecute(@Nonnull org.opensaml.profile.context.ProfileRequestContext profileRequestContext)
doExecute in class org.opensaml.profile.action.AbstractProfileActionCopyright © 1999–2017 Shibboleth Consortium. All rights reserved.