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 class
Encapsulation of the information about a given IdP version. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.apache.http.client.HttpClient
The HttpClient to use.private final org.slf4j.Logger
Class logger.private PluginInfo
My Plugin Info.private final PluginVersion
The version of this plugin.private final IdPPlugin
The 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 void
get our PluginInfo.private boolean
(try to) populate the information about this plugin.void
setHttpClient
(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:
doInitialize
in classAbstractInitializableComponent
- Throws:
ComponentInitializationException
-