C
- type of connectionpublic interface ReceivePackFactory<C>
ReceivePack
service
instance.Modifier and Type | Field and Description |
---|---|
static ReceivePackFactory<?> |
DISABLED
A factory disabling the ReceivePack service for all repositories
|
Modifier and Type | Method and Description |
---|---|
ReceivePack |
create(C req,
Repository db)
Create and configure a new ReceivePack instance for a repository.
|
static final ReceivePackFactory<?> DISABLED
ReceivePack create(C req, Repository db) throws ServiceNotEnabledException, ServiceNotAuthorizedException
req
- current request, in case information from the request may help
configure the ReceivePack instance.db
- the repository the receive would write into.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 © 2020 Eclipse JGit Project. All rights reserved.