public class RemoteServicesUtils extends Object
Constructor and Description |
---|
RemoteServicesUtils() |
Modifier and Type | Method and Description |
---|---|
static IRemoteConnection |
getConnectionWithProgress(String remoteServicesId,
String connectionName,
IProgressMonitor monitor)
Utility method to get a remote connection given a remote services ID and a connection name.
|
static IFileStore |
getRemoteFileWithProgress(String remoteServicesId,
String connectionName,
String path,
IProgressMonitor monitor)
Utility method to get a file store corresponding to the given path.
|
static URI |
toURI(IPath path)
Convert a UNC path to a URI
Maps the UNC server component to a connection known by one of the remote service implementations.
|
public static IRemoteConnection getConnectionWithProgress(String remoteServicesId, String connectionName, IProgressMonitor monitor)
remoteServicesId
- ID of remote services providing the connectionconnectionName
- name of the connection to findmonitor
- progress monitorpublic static IFileStore getRemoteFileWithProgress(String remoteServicesId, String connectionName, String path, IProgressMonitor monitor)
remoteServicesId
- ID of remote services providing the connectionconnectionName
- name of the remote connection to usepath
- path of file on remote systemmonitor
- progress monitorpublic static URI toURI(IPath path)
path
- UNC pathCopyright (c) 2011 IBM Corporation and others. All Rights Reserved.