Search in sources :

Example 6 with ProtocolPluginSpecification

use of org.openecard.addon.manifest.ProtocolPluginSpecification in project open-ecard by ecsec.

the class StatusHandler method getProtocolInfo.

@Nonnull
private List<String> getProtocolInfo(AddonManager manager) {
    TreeSet<String> result = new TreeSet<>();
    // check all sal protocols in the
    AddonRegistry registry = manager.getRegistry();
    Set<AddonSpecification> addons = registry.listAddons();
    for (AddonSpecification addon : addons) {
        for (ProtocolPluginSpecification proto : addon.getSalActions()) {
            result.add(proto.getUri());
        }
    }
    return new ArrayList<>(result);
}
Also used : TreeSet(java.util.TreeSet) AddonRegistry(org.openecard.addon.AddonRegistry) ArrayList(java.util.ArrayList) AddonSpecification(org.openecard.addon.manifest.AddonSpecification) ProtocolPluginSpecification(org.openecard.addon.manifest.ProtocolPluginSpecification) Nonnull(javax.annotation.Nonnull)

Aggregations

ProtocolPluginSpecification (org.openecard.addon.manifest.ProtocolPluginSpecification)6 ArrayList (java.util.ArrayList)3 TreeSet (java.util.TreeSet)2 AddonRegistry (org.openecard.addon.AddonRegistry)2 AddonSpecification (org.openecard.addon.manifest.AddonSpecification)2 Image (java.awt.Image)1 Nonnull (javax.annotation.Nonnull)1 AddonException (org.openecard.addon.AddonException)1 AddonProperties (org.openecard.addon.AddonProperties)1 IFDProtocol (org.openecard.addon.ifd.IFDProtocol)1 IFDProtocolProxy (org.openecard.addon.ifd.IFDProtocolProxy)1 AppExtensionSpecification (org.openecard.addon.manifest.AppExtensionSpecification)1 AppPluginSpecification (org.openecard.addon.manifest.AppPluginSpecification)1 LocalizedString (org.openecard.addon.manifest.LocalizedString)1 SALProtocol (org.openecard.addon.sal.SALProtocol)1 SALProtocolProxy (org.openecard.addon.sal.SALProtocolProxy)1 DefaultSettingsGroup (org.openecard.richclient.gui.manage.addon.DefaultSettingsGroup)1 DefaultSettingsPanel (org.openecard.richclient.gui.manage.addon.DefaultSettingsPanel)1