C - the connection typepublic interface UploadPackFactory<C>
UploadPack service instance.| Modifier and Type | Field | Description |
|---|---|---|
static UploadPackFactory<?> |
DISABLED |
A factory disabling the UploadPack service for all repositories.
|
| Modifier and Type | Method | Description |
|---|---|---|
UploadPack |
create(C req,
Repository db) |
Create and configure a new UploadPack instance for a repository.
|
static final UploadPackFactory<?> DISABLED
UploadPack create(C req, Repository db) throws ServiceNotEnabledException, ServiceNotAuthorizedException
req - current request, in case information from the request may help
configure the UploadPack instance.db - the repository the upload would read from.ServiceNotEnabledException - this factory refuses to create the instance because it is not
allowed on the target repository, by any user.ServiceNotAuthorizedException - this factory refuses to create the instance for this HTTP
request and repository, such as due to a permission error.Copyright © 2018. All rights reserved.