@ThreadSafe public abstract class RepositoryFactory extends Object
RepositoryFactory creates a new Repository| Constructor and Description |
|---|
RepositoryFactory() |
| Modifier and Type | Method and Description |
|---|---|
Repository |
createRepository(URI repository,
org.apache.http.client.HttpClient client,
org.apache.http.protocol.HttpContext context)
Create a new
Repository for given URI and use the given HttpClient with the HttpClient to connect to the server |
protected abstract Repository |
createRepository0(URI saneUri,
org.apache.http.client.HttpClient client,
org.apache.http.protocol.HttpContext context) |
static RepositoryFactory |
getInstance()
Create a new
RepositoryFactory instance each time the method is called |
Repository |
probeRepository(URI repository,
org.apache.http.client.HttpClient client,
org.apache.http.protocol.HttpContext context)
Create a new
Repository for given URI and use the given HttpClient with the HttpClient to connect to the server. |
public static RepositoryFactory getInstance() throws SubversionException
RepositoryFactory instance each time the method is calledRepositoryFactory instanceSubversionException - if no RepositoryFactory can be createdpublic final Repository createRepository(URI repository, org.apache.http.client.HttpClient client, org.apache.http.protocol.HttpContext context) throws SubversionException
Repository for given URI and use the given HttpClient with the HttpClient to connect to the serverrepository - URI to the root of the repository (e.g: http://repository.example.net/svn/test_repo)client - HttpClient that will handle all requests for this repositorycontext - HttpContext that will be used by all requests to this repositoryRepository for given URINullPointerException - if any parameter is nullSubversionException - if no Repository can be createdprotected abstract Repository createRepository0(URI saneUri, org.apache.http.client.HttpClient client, org.apache.http.protocol.HttpContext context) throws SubversionException
SubversionExceptionpublic Repository probeRepository(URI repository, org.apache.http.client.HttpClient client, org.apache.http.protocol.HttpContext context) throws SubversionException
Repository for given URI and use the given HttpClient with the HttpClient to connect to the server.
To find the Repository root the path is tested folder by folder till the root of the Repository root is found or no folders are left
repository - URI to any resource of the repository (e.g: http://repository.example.net/svn/test_repo/folderA/subFolderB)client - HttpClient that will handle all requests for this repositorycontext - HttpContext that will be used by all requests to this repositoryRepository for given URINullPointerException - if any parameter is nullSubversionException - if an error occurs during Repository probing and no Repository can be createdCopyright © 2013–2014 shadowhunt. All rights reserved.