public final class CDOURIData extends Object
URI
in connection-aware format.
CDO URIs are in one of two different formats, either canonical or connection-aware. The connection-aware format is:
cdo.net4j. ConnectorType :// [User [: Password] @] ConnectorSpecificAuthority / RepositoryName / ResourcePath [? Param=Value (& Param=Value)*]The non-terminals being:
IUserManager
and, hence, triggers authentication on the client. Note: the
password may be stored in resources in clear text!
name
of the repository (not the UUID
!).
resource
within the repository, segments separated by slashes, no leading slash.
branch path
, the full path of the branch in the branch tree, segments separated by slashes, no leading slash, defaults to MAIN.
Note: With the current design and implementation of connection-aware URI (mainly CDONet4jViewProvider) it is still unclear when and how the allocated "resources" (aka IConnector, CDOSession, CDOView, etc) are supposed to be freed!
For a description of the canonical URI format refer to CDOURIUtil
.
Modifier and Type | Field and Description |
---|---|
static String |
BRANCH_PARAMETER |
static String |
TIME_PARAMETER |
static String |
TRANSACTIONAL_PARAMETER |
static String |
VIEW_ID_PARAMETER |
Constructor and Description |
---|
CDOURIData() |
CDOURIData(String uri) |
CDOURIData(URI uri) |
Modifier and Type | Method and Description |
---|---|
String |
getAuthority() |
IPath |
getBranchPath() |
Map<String,String> |
getExtraParameters() |
String |
getPassWord() |
String |
getRepositoryName() |
IPath |
getResourcePath() |
String |
getScheme() |
long |
getTimeStamp() |
String |
getUserName() |
String |
getViewID() |
boolean |
isTransactional() |
void |
setAuthority(String authority) |
void |
setBranchPath(IPath branchPath) |
void |
setExtraParameters(Map<String,String> extraParameters) |
void |
setPassWord(String passWord) |
void |
setRepositoryName(String repositoryName) |
void |
setResourcePath(IPath resourcePath) |
void |
setScheme(String scheme) |
void |
setTimeStamp(long timeStamp) |
void |
setTransactional(boolean transactional) |
void |
setUserName(String userName) |
void |
setViewID(String viewID) |
String |
toString() |
URI |
toURI() |
public static final String BRANCH_PARAMETER
public static final String TIME_PARAMETER
public static final String VIEW_ID_PARAMETER
public static final String TRANSACTIONAL_PARAMETER
public CDOURIData()
public CDOURIData(String uri) throws InvalidURIException
InvalidURIException
public CDOURIData(URI uri) throws InvalidURIException
InvalidURIException
public String getScheme()
public void setScheme(String scheme)
public String getUserName()
public void setUserName(String userName)
public String getPassWord()
public void setPassWord(String passWord)
public String getAuthority()
public void setAuthority(String authority)
public String getRepositoryName()
public void setRepositoryName(String repositoryName)
public IPath getResourcePath()
public void setResourcePath(IPath resourcePath)
public IPath getBranchPath()
public void setBranchPath(IPath branchPath)
public long getTimeStamp()
public void setTimeStamp(long timeStamp)
public String getViewID()
public void setViewID(String viewID)
public boolean isTransactional()
public void setTransactional(boolean transactional)
public URI toURI()
Copyright (c) 2014 Eike Stepper (Berlin, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html