Package org.eclipse.remote.core
Class RemoteServicesUtils
java.lang.Object
org.eclipse.remote.core.RemoteServicesUtils
Remote services utility methods.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.eclipse.core.runtime.IPath
Constructs a new POSIX path from the given string path.static URI
toURI
(org.eclipse.core.runtime.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.
-
Constructor Details
-
RemoteServicesUtils
public RemoteServicesUtils()
-
-
Method Details
-
posixPath
Constructs a new POSIX path from the given string path. The string path must represent a valid file system path on a POSIX file system. The path is canonicalized and double slashes are removed except at the beginning (to handle UNC paths). All forward slashes ('/') are treated as segment delimiters. This factory method should be used if the string path is for a POSIX file system.- Parameters:
path
- the string path- Since:
- 2.0
- See Also:
-
toURI
Convert a UNC path to a URI Maps the UNC server component to a connection known by one of the remote service implementations. It is assumed that the server component is of the form "[connection_type_id:]connection_name". If the "connection_type_id:" part is omitted then the current connection type preference is used by default. If no preference is set, then each implementation is tried until a matching connection name is found.- Parameters:
path
- UNC path- Returns:
- corresponding URI or null if not a valid path
-