public class StandaloneRegistryProvider extends java.lang.Object implements RegistryProvider
RegistryProvider
interface that uses standard
JAXR API to obtain a connection.Constructor and Description |
---|
StandaloneRegistryProvider(java.lang.String user,
java.lang.String password)
Constructor for creating a
StandaloneRegistryProvider instance. |
StandaloneRegistryProvider(java.lang.String user,
java.lang.String password,
boolean browserBahaviour)
Constructor for creating a
StandaloneRegistryProvider instance. |
StandaloneRegistryProvider(java.lang.String registryUrl,
java.lang.String user,
java.lang.String password)
Constructor for creating a
StandaloneRegistryProvider instance. |
StandaloneRegistryProvider(java.lang.String registryUrl,
java.lang.String user,
java.lang.String password,
boolean browserBahaviour)
Constructor for creating a
StandaloneRegistryProvider instance. |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the JAXR connection.
|
Connection |
getConnection()
Returns the JAXR connection that will be used when performing registry
operations.
|
java.util.Locale |
getLocale()
The
Locale in which the registry will be accessed. |
java.lang.String |
getPassword()
Retrieves the user password.
|
java.lang.String |
getRegistryUrl()
Retrieves the used registryUrl.
|
java.lang.String |
getUser()
Retrieves the used username.
|
void |
setLocale(java.util.Locale locale)
Sets the locale.
|
public StandaloneRegistryProvider(java.lang.String user, java.lang.String password, boolean browserBahaviour) throws CSAppFrameworkException
StandaloneRegistryProvider
instance.user
- The username for establishing connection to the registrypassword
- The password for the userbrowserBahaviour
- If true
sets the "com.centrasite.jaxr.BrowserBehaviour"
property of the JAXR connection factory. For type management
this flag should be true
.CSAppFrameworkException
- If an error occurs while creating a the instancepublic StandaloneRegistryProvider(java.lang.String user, java.lang.String password) throws CSAppFrameworkException
StandaloneRegistryProvider
instance.user
- The username for establishing connection to the registrypassword
- The password for the userCSAppFrameworkException
- If an error occurs while creating a the instancepublic StandaloneRegistryProvider(java.lang.String registryUrl, java.lang.String user, java.lang.String password) throws CSAppFrameworkException
StandaloneRegistryProvider
instance.registryUrl
- The URL for connecting to the registryuser
- The username for establishing connection to the registrypassword
- The password for the userCSAppFrameworkException
- If an error occurs while creating a the instancepublic StandaloneRegistryProvider(java.lang.String registryUrl, java.lang.String user, java.lang.String password, boolean browserBahaviour) throws CSAppFrameworkException
StandaloneRegistryProvider
instance.registryUrl
- The URL for connecting to the registryuser
- The username for establishing connection to the registrypassword
- The password for the userbrowserBahaviour
- If true sets the "com.centrasite.jaxr.BrowserBehaviour"
property of the JAXR connection factory. For type management
this flag should be true
.CSAppFrameworkException
- If an error occurs while creating a the instancepublic java.util.Locale getLocale()
Locale
in which the registry will be accessed.getLocale
in interface RegistryProvider
Locale
for accessing the registrypublic final void setLocale(java.util.Locale locale)
locale
- The Locale
to setpublic Connection getConnection()
getConnection
in interface RegistryProvider
Connection
objectpublic java.lang.String getRegistryUrl()
public java.lang.String getPassword()
public java.lang.String getUser()
public void close()