public abstract class ConnectionInfo extends Object
Modifier and Type | Field and Description |
---|---|
protected Properties |
properties |
protected String |
repositoryPath |
protected String |
url |
static TextDecoder |
URL_DECODER |
Modifier | Constructor and Description |
---|---|
protected |
ConnectionInfo(String url,
Properties properties) |
Modifier and Type | Method and Description |
---|---|
protected void |
addPasswordPropertyInfo(List<DriverPropertyInfo> results) |
protected void |
addRepositoryNamePropertyInfo(List<DriverPropertyInfo> results) |
protected void |
addUrlPropertyInfo(List<DriverPropertyInfo> results) |
protected void |
addUserNamePropertyInfo(List<DriverPropertyInfo> results) |
protected void |
addWorkspacePropertyInfo(List<DriverPropertyInfo> results) |
Credentials |
getCredentials()
Return the credentials based on the user name and password.
|
String |
getEffectiveUrl()
Get the effective URL of this connection, which places all properties on the URL (with a '*' for each character in the
password property)
|
char[] |
getPassword()
Get the JCR password.
|
Properties |
getProperties()
Get the immutable properties for the connection.
|
protected char |
getPropertyDelimiter()
Return the starting property delimiter
|
DriverPropertyInfo[] |
getPropertyInfos()
Obtain the array of
DriverPropertyInfo objects that describe the missing properties. |
String |
getRepositoryName()
Get the name of the repository.
|
String |
getRepositoryPath()
Get the part of the
getUrl() that indicates the path to connect to the Repository. |
String |
getUrl()
Get the original URL of the connection.
|
abstract String |
getUrlExample()
The delegate should provide an example of the URL to be used
|
abstract String |
getUrlPrefix()
The delegate should provide the prefix defined by the
LocalJcrDriver |
String |
getUsername()
Get the JCR user name.
|
String |
getWorkspaceName()
Get the name of the workspace.
|
protected void |
init() |
boolean |
isTeiidSupport()
Return true of Teiid support is required for this connection.
|
protected void |
setPropertyDelimiter(char delimiter) |
void |
setWorkspaceName(String workSpaceName)
Call to set the workspace name.
|
public static final TextDecoder URL_DECODER
protected String url
protected String repositoryPath
protected Properties properties
protected ConnectionInfo(String url, Properties properties)
protected void init()
public String getUrl()
public String getRepositoryPath()
getUrl()
that indicates the path to connect to the Repository. This value should be prefixed
by the getUrlPrefix()
in the getUrl()
.public Properties getProperties()
public String getRepositoryName()
Repositories
instance is being used to obtain the
Repository.public String getWorkspaceName()
public void setWorkspaceName(String workSpaceName)
workSpaceName
- public String getUsername()
public char[] getPassword()
public boolean isTeiidSupport()
public String getEffectiveUrl()
protected char getPropertyDelimiter()
protected void setPropertyDelimiter(char delimiter)
public DriverPropertyInfo[] getPropertyInfos()
DriverPropertyInfo
objects that describe the missing properties.protected void addUrlPropertyInfo(List<DriverPropertyInfo> results)
protected void addUserNamePropertyInfo(List<DriverPropertyInfo> results)
protected void addPasswordPropertyInfo(List<DriverPropertyInfo> results)
protected void addWorkspacePropertyInfo(List<DriverPropertyInfo> results)
protected void addRepositoryNamePropertyInfo(List<DriverPropertyInfo> results)
public abstract String getUrlExample()
public abstract String getUrlPrefix()
LocalJcrDriver
public Credentials getCredentials()
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.