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
public class PluginState extends AbstractInitializableComponent
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 Classes Modifier and Type Class Description static classPluginState.VersionInfoEncapsulation of the information about a given IdP version.
-
Field Summary
Fields Modifier and Type Field Description private org.apache.http.client.HttpClienthttpClientThe HttpClient to use.private org.slf4j.LoggerlogClass logger.private PluginInfomyPluginInfoMy Plugin Info.private PluginVersionmyPluginVersionThe version of this plugin.private IdPPluginpluginThe plug in in question.private List<URL>updateOverrideURLsIf overridden these are the urls to us for update (rather than what the plguin asks for.
-
Constructor Summary
Constructors Constructor Description PluginState(IdPPlugin description, List<URL> updateOverrides)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoInitialize()PluginInfogetPluginInfo()get our PluginInfo.private booleanpopulate(Resource propertyResource)(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 Detail
-
plugin
@Nonnull private final IdPPlugin plugin
The plug in in question.
-
myPluginInfo
@NonnullAfterInit private PluginInfo myPluginInfo
My Plugin Info.
-
myPluginVersion
@Nonnull private final PluginVersion myPluginVersion
The version of this plugin.
-
log
@Nonnull private final org.slf4j.Logger log
Class logger.
-
httpClient
@NonnullAfterInit private org.apache.http.client.HttpClient httpClient
The HttpClient to use.
-
-
Method Detail
-
getPluginInfo
public PluginInfo getPluginInfo()
get our PluginInfo.- Returns:
- our PluginInfo.
-
populate
private boolean populate(@Nonnull Resource propertyResource)(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
protected void doInitialize() throws ComponentInitializationException- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-
-