public class RemoteFactory
extends java.lang.Object
Constructor and Description |
---|
RemoteFactory()
Default constructor.
|
RemoteFactory(java.lang.String configDirectory,
java.lang.String username,
java.lang.String password,
AuthnCallback prompt,
ProgressCallback progress,
ConfigEvent configHandler,
TunnelAgent tunnelAgent)
Initializing constructor.
|
RemoteFactory(java.lang.String configDirectory,
java.lang.String username,
java.lang.String password,
UserPasswordCallback prompt,
ProgressCallback progress,
ConfigEvent configHandler,
TunnelAgent tunnelAgent)
Initializing constructor.
|
Modifier and Type | Method and Description |
---|---|
ISVNRemote |
openRemoteSession(java.lang.String url)
Open a persistent session to a repository.
|
ISVNRemote |
openRemoteSession(java.lang.String url,
int retryAttempts)
Open a persistent session to a repository.
|
ISVNRemote |
openRemoteSession(java.lang.String url,
java.lang.String reposUUID)
Open a persistent session to a repository.
|
ISVNRemote |
openRemoteSession(java.lang.String url,
java.lang.String reposUUID,
int retryAttempts)
Open a persistent session to a repository.
|
void |
setConfigDirectory(java.lang.String configDirectory)
Set directory for the configuration information.
|
void |
setConfigEventHandler(ConfigEvent configHandler)
Set an event handler that will be called every time the
configuration is loaded by the ISVNRemote objects created by
this factory.
|
void |
setPassword(java.lang.String password)
Sets the password used for authentication.
|
void |
setProgressCallback(ProgressCallback progress)
Set the progress callback for new sessions.
|
void |
setPrompt(AuthnCallback prompt)
Register callback interface to supply username and password on demand.
|
void |
setPrompt(UserPasswordCallback prompt)
Register callback interface to supply username and password on demand.
|
void |
setTunnelAgent(TunnelAgent tunnelAgent)
Set callbacks for ra_svn tunnel handling.
|
void |
setUsername(java.lang.String username)
Sets the username used for authentication.
|
public RemoteFactory()
public RemoteFactory(java.lang.String configDirectory, java.lang.String username, java.lang.String password, AuthnCallback prompt, ProgressCallback progress, ConfigEvent configHandler, TunnelAgent tunnelAgent)
public RemoteFactory(java.lang.String configDirectory, java.lang.String username, java.lang.String password, UserPasswordCallback prompt, ProgressCallback progress, ConfigEvent configHandler, TunnelAgent tunnelAgent)
public void setUsername(java.lang.String username)
username
- The username; Set to the null
to clear it.java.lang.IllegalArgumentException
- If username
is empty.#password(String)
public void setPassword(java.lang.String password)
password
- The passwordp Set null
to clear it.java.lang.IllegalArgumentException
- If password
is empty.#username(String)
public void setPrompt(AuthnCallback prompt)
--no-auth-cache
and --non-interactive
arguments accepted by the command-line client.prompt
- the callback interfacepublic void setPrompt(UserPasswordCallback prompt)
--no-auth-cache
and --non-interactive
arguments accepted by the command-line client.prompt
- the callback interfacepublic void setProgressCallback(ProgressCallback progress)
progress
- The progress callback.public void setConfigDirectory(java.lang.String configDirectory)
public void setConfigEventHandler(ConfigEvent configHandler)
public void setTunnelAgent(TunnelAgent tunnelAgent)
public ISVNRemote openRemoteSession(java.lang.String url) throws ClientException, SubversionException
Note: The URL can point to a subtree of the repository.
Note: The session object inherits the progress callback, configuration directory and authentication info.
url
- The initial session root URL.RetryOpenSession
- If the session URL was redirectedSubversionException
- If an URL redirect cycle was detectedClientException
public ISVNRemote openRemoteSession(java.lang.String url, int retryAttempts) throws ClientException, SubversionException
Note: The URL can point to a subtree of the repository.
Note: The session object inherits the progress callback, configuration directory and authentication info.
url
- The initial session root URL.retryAttempts
- The number of times to retry the operation
if the given URL is redirected.java.lang.IllegalArgumentException
- If retryAttempts
is not positiveRetryOpenSession
- If the session URL was redirectedSubversionException
- If an URL redirect cycle was detectedClientException
public ISVNRemote openRemoteSession(java.lang.String url, java.lang.String reposUUID) throws ClientException, SubversionException
Note: The URL can point to a subtree of the repository.
Note: If the UUID does not match the repository, this function fails.
Note: The session object inherits the progress callback, configuration directory and authentication info.
url
- The initial session root URL.reposUUID
- The expected repository UUID; may not be null..java.lang.IllegalArgumentException
- If reposUUID
is null.RetryOpenSession
- If the session URL was redirectedSubversionException
- If an URL redirect cycle was detectedClientException
public ISVNRemote openRemoteSession(java.lang.String url, java.lang.String reposUUID, int retryAttempts) throws ClientException, SubversionException
Note: The URL can point to a subtree of the repository.
Note: If the UUID does not match the repository, this function fails.
Note: The session object inherits the progress callback, configuration directory and authentication info.
url
- The initial session root URL.reposUUID
- The expected repository UUID; may not be null..retryAttempts
- The number of times to retry the operation
if the given URL is redirected.java.lang.IllegalArgumentException
- If reposUUID
is null
or retryAttempts
is not positiveRetryOpenSession
- If the session URL was redirectedSubversionException
- If an URL redirect cycle was detectedClientException