public class RemoteServicesManager extends java.lang.Object implements IRemoteServicesManager
| Constructor and Description |
|---|
RemoteServicesManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
addRemoteConnectionChangeListener(IRemoteConnectionChangeListener listener)
Add a global connection change listener that receives events for all connections.
|
void |
fireRemoteConnectionChangeEvent(RemoteConnectionChangeEvent event)
Used by connections and other components to notify the global connection
change listeners of events.
|
java.util.List<IRemoteConnectionType> |
getAllConnectionTypes()
Returns the list of all connection types including the local services.
|
java.util.List<IRemoteConnection> |
getAllRemoteConnections()
Returns the list of all known remote connections.
|
IRemoteConnectionType |
getConnectionType(java.lang.String id)
Get the connection type identified by the id
|
IRemoteConnectionType |
getConnectionType(java.net.URI uri)
Get the connection type that provides connections to locations identified by
the URI.
|
java.util.List<IRemoteConnectionType> |
getConnectionTypesByService(java.lang.Class<? extends IRemoteConnectionType.Service>... services)
Returns the list of all connection types that provide specific services.
|
java.util.List<IRemoteConnectionType> |
getConnectionTypesSupporting(java.lang.Class<? extends IRemoteConnection.Service>... services)
Returns the list of all connection types that support connections that provide specific services.
|
IRemoteConnectionType |
getLocalConnectionType()
Return the connection type used to access local resources.
|
org.osgi.service.prefs.Preferences |
getPreferenceNode() |
java.util.List<IRemoteConnectionType> |
getRemoteConnectionTypes()
Returns the list of connection types except for the local connection type.
|
org.eclipse.equinox.security.storage.ISecurePreferences |
getSecurePreferenceNode() |
protected void |
init()
Loads up the services extensions and then loads up the persisted connections.
|
void |
removeRemoteConnectionChangeListener(IRemoteConnectionChangeListener listener)
Remove the global connection change listener.
|
protected void init()
public org.osgi.service.prefs.Preferences getPreferenceNode()
public org.eclipse.equinox.security.storage.ISecurePreferences getSecurePreferenceNode()
public IRemoteConnectionType getConnectionType(java.lang.String id)
IRemoteServicesManagergetConnectionType in interface IRemoteServicesManagerid - id of the connection typepublic IRemoteConnectionType getConnectionType(java.net.URI uri)
IRemoteServicesManagergetConnectionType in interface IRemoteServicesManageruri - uri of locations to be accessedpublic IRemoteConnectionType getLocalConnectionType()
IRemoteServicesManagergetLocalConnectionType in interface IRemoteServicesManagerpublic java.util.List<IRemoteConnectionType> getAllConnectionTypes()
IRemoteServicesManagergetAllConnectionTypes in interface IRemoteServicesManager@SafeVarargs public final java.util.List<IRemoteConnectionType> getConnectionTypesSupporting(java.lang.Class<? extends IRemoteConnection.Service>... services)
IRemoteServicesManagergetConnectionTypesSupporting in interface IRemoteServicesManagerservices - services provided by connections supported by this connection type@SafeVarargs public final java.util.List<IRemoteConnectionType> getConnectionTypesByService(java.lang.Class<? extends IRemoteConnectionType.Service>... services)
IRemoteServicesManagergetConnectionTypesByService in interface IRemoteServicesManagerservices - services provided by this connection typepublic java.util.List<IRemoteConnectionType> getRemoteConnectionTypes()
IRemoteServicesManagergetRemoteConnectionTypes in interface IRemoteServicesManagerpublic java.util.List<IRemoteConnection> getAllRemoteConnections()
IRemoteServicesManagergetAllRemoteConnections in interface IRemoteServicesManagerpublic void addRemoteConnectionChangeListener(IRemoteConnectionChangeListener listener)
IRemoteServicesManageraddRemoteConnectionChangeListener in interface IRemoteServicesManagerlistener - global connection change listener to be addedpublic void removeRemoteConnectionChangeListener(IRemoteConnectionChangeListener listener)
IRemoteServicesManagerremoveRemoteConnectionChangeListener in interface IRemoteServicesManagerlistener - global connection change listener to be removedpublic void fireRemoteConnectionChangeEvent(RemoteConnectionChangeEvent event)
IRemoteServicesManagerfireRemoteConnectionChangeEvent in interface IRemoteServicesManagerevent - connection change event