|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.cdo.util.CDOURIUtil
Various static methods that may help with CDO-specific URIs
.
CDO URIs are in one of two different formats, either canonical or connection-aware. The canonical format is:
cdo:// RepositoryUUID / ResourcePath [? Param=Value (& Param=Value)*]The non-terminals being:
UUID
of the repository. By default it's generated when a repository is first started.
If the default format is not adequate the UUID value can be overridden in the repository setup with the overrideUUID
property.
resource
within the repository, segments separated by slashes, no leading slash.
resources
properly require the resource set
to be
configured externally so that the connection to the correct repository can be established, for example:
session.openView(resourceSet);
Note that resources preserve their original URI in the scope of the managing view
, that is not necessarily in canonical format.
For a description of the connection-aware URI format refer to CDOURIData
.
Field Summary | |
---|---|
static String |
PROTOCOL_NAME
|
static String |
SEGMENT_SEPARATOR
|
static char |
SEGMENT_SEPARATOR_CHAR
|
Method Summary | |
---|---|
static List<String> |
analyzePath(String path)
|
static List<String> |
analyzePath(URI uri)
|
static CDOID |
convertExternalCDOID(URI baseURI,
CDOID newCDOID)
Converting temporary CDOID to External CDOID e.g.: baseURI = cdo://2a57dfcf-8f97-4d39-8e17-9d99ae5c4b3c/resB#5/2 newCDOID = OID2 return = cdo://2a57dfcf-8f97-4d39-8e17-9d99ae5c4b3c/resB#1/2 |
static URI |
createResourceURI(CDOSession session,
String path)
|
static URI |
createResourceURI(CDOView view,
String path)
|
static URI |
createResourceURI(String repositoryUUID,
String path)
cdo://repositoryUUID/path The path is added at the end of "cdo://repositoryUUID". |
static String |
extractRepositoryUUID(URI uri)
|
static String[] |
extractResourceFolderAndName(URI uri)
|
static String |
extractResourcePath(URI uri)
|
static Map<String,String> |
getParameters(String query)
|
static void |
validateURI(URI uri)
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PROTOCOL_NAME
public static final char SEGMENT_SEPARATOR_CHAR
public static final String SEGMENT_SEPARATOR
Method Detail |
---|
@Deprecated public static void validateURI(URI uri) throws InvalidURIException
InvalidURIException
public static String extractRepositoryUUID(URI uri)
public static String[] extractResourceFolderAndName(URI uri) throws InvalidURIException
InvalidURIException
public static String extractResourcePath(URI uri) throws InvalidURIException
InvalidURIException
public static URI createResourceURI(String repositoryUUID, String path)
cdo://repositoryUUID/path
The path is added at the end of "cdo://repositoryUUID". If path doesn't start with '/', it will be added
automatically.
e.g.: /resA or resA will give the same result -> cdo://repositoryUUID/resA
authority = repositoryUUID
path = /resA
public static URI createResourceURI(CDOView view, String path)
public static URI createResourceURI(CDOSession session, String path)
public static CDOID convertExternalCDOID(URI baseURI, CDOID newCDOID)
public static List<String> analyzePath(URI uri)
public static List<String> analyzePath(String path)
public static Map<String,String> getParameters(String query)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |