Class PluginState
java.lang.Object
net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
net.shibboleth.idp.installer.plugin.impl.PluginState
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent
A class which will answer questions about a plugin state as of now
(by querying the information Resources for the current published state).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classEncapsulation of the information about a given IdP version. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.apache.http.client.HttpClientThe HttpClient to use.private final org.slf4j.LoggerClass logger.private PluginInfoMy Plugin Info.private final PluginVersionThe version of this plugin.private final IdPPluginThe plug in in question.If overridden these are the urls to us for update (rather than what the plguin asks for. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidget our PluginInfo.private boolean(try to) populate the information about this plugin.voidsetHttpClient(org.apache.http.client.HttpClient what) Set the client.Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, initialize, isDestroyed, isInitialized
-
Field Details
-
plugin
The plug in in question. -
myPluginInfo
My Plugin Info. -
myPluginVersion
The version of this plugin. -
log
@Nonnull private final org.slf4j.Logger logClass logger. -
httpClient
The HttpClient to use. -
updateOverrideURLs
If overridden these are the urls to us for update (rather than what the plguin asks for.
-
-
Constructor Details
-
PluginState
Constructor.- Parameters:
description- what we are talking about.updateOverrides- override for update locations. An empty list signifies no overrride.
-
-
Method Details
-
getPluginInfo
get our PluginInfo.- Returns:
- our PluginInfo.
-
populate
(try to) populate the information about this plugin.- Parameters:
propertyResource- where to start looking- Returns:
- whether it worked
-
setHttpClient
public void setHttpClient(@Nonnull org.apache.http.client.HttpClient what) Set the client.- Parameters:
what- what to set.
-
doInitialize
- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-