@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 uri,
org.apache.http.client.HttpClient client,
org.apache.http.protocol.HttpContext context,
boolean validate)
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,
boolean validate) |
static RepositoryFactory |
getInstance()
Create a new
RepositoryFactory instance each time the method is called. |
public static RepositoryFactory getInstance() throws SubversionException
RepositoryFactory instance each time the method is called.RepositoryFactory instanceSubversionException - if no RepositoryFactory can be createdpublic final Repository createRepository(URI uri, org.apache.http.client.HttpClient client, org.apache.http.protocol.HttpContext context, boolean validate)
Repository for given URI and use the given HttpClient with the HttpClient to connect to the server.uri - URI to the root of the repository (e.g: http://repository.example.net/svn/test_repo/trunk/folder)client - HttpClient that will handle all requests for this repositorycontext - HttpContext that will be used by all requests to this repositoryvalidate - true check the given parameters during creation, false check during first usageRepository for given URINullPointerException - if any parameter is nullSubversionException - if no Repository can be createdTransmissionException - if an error occurs in the underlining communication with
the serverprotected abstract Repository createRepository0(URI saneUri, org.apache.http.client.HttpClient client, org.apache.http.protocol.HttpContext context, boolean validate)
Copyright © 2013–2017 shadowhunt. All rights reserved.