|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.modeshape.jdbc.delegate.ConnectionInfo
public abstract class ConnectionInfo

The ConnectionInfo contains the information used to connect to the Jcr Repository.
| Field Summary | |
|---|---|
protected Properties |
properties
|
protected String |
repositoryPath
|
protected String |
url
|
static TextDecoder |
URL_DECODER
|
| Constructor Summary | |
|---|---|
protected |
ConnectionInfo(String url,
Properties properties)
|
| Method Summary | |
|---|---|
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 JcrDriver |
String |
getUsername()
Get the JCR user name. |
String |
getWorkspaceName()
Get the name of the workspace. |
protected void |
init()
|
protected void |
setPropertyDelimiter(char delimiter)
|
void |
setWorkspaceName(String workSpaceName)
Call to set the workspace name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final TextDecoder URL_DECODER
protected String url
protected String repositoryPath
protected Properties properties
| Constructor Detail |
|---|
protected ConnectionInfo(String url,
Properties properties)
| Method Detail |
|---|
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 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()
JcrDriver
public Credentials getCredentials()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||