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

public Interface UploadPackFactory<C>

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

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

Field Summary

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

A factory disabling the UploadPack service for all repositories.

Method Summary

Modifier and TypeMethod and Description
public UploadPack

Returns:

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

Create and configure a new UploadPack instance for a repository.

Field Detail

DISABLEDback to summary
public static final UploadPackFactory<?> DISABLED

A factory disabling the UploadPack service for all repositories.

Method Detail

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

Create and configure a new UploadPack instance for a repository.

Parameters
req:C

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

db:Repository

the repository the upload would read from.

Returns:UploadPack

the newly configured UploadPack 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.