Top Description Fields Methods
org.eclipse.jgit.transport.resolver

public Interface ReceivePackFactory<C>

Type Parameters
<C>
type of connection
Imports
org.eclipse.jgit.lib.Repository, org.eclipse.jgit.transport.ReceivePack

Create and configure org.eclipse.jgit.transport.ReceivePack service instance.

Field Summary

Modifier and TypeField and Description
public static final ReceivePackFactory<?>
DISABLED

A factory disabling the ReceivePack service for all repositories

Method Summary

Modifier and TypeMethod and Description
public ReceivePack

Returns:

the newly configured ReceivePack instance, must not be null.
create
(C
current request, in case information from the request may help configure the ReceivePack instance.
req
,
Repository
the repository the receive would write into.
db
)

Create and configure a new ReceivePack instance for a repository.

Field Detail

DISABLEDback to summary
public static final ReceivePackFactory<?> DISABLED

A factory disabling the ReceivePack service for all repositories

Method Detail

createback to summary
public ReceivePack create(C req, Repository db) throws ServiceNotEnabledException, ServiceNotAuthorizedException

Create and configure a new ReceivePack instance for a repository.

Parameters
req:C

current request, in case information from the request may help configure the ReceivePack instance.

db:Repository

the repository the receive would write into.

Returns:ReceivePack

the newly configured ReceivePack instance, must not be null.

Exceptions
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.