C
- type of connection.public interface RepositoryResolver<C>
Repository
by name from the URL.Modifier and Type | Field and Description |
---|---|
static RepositoryResolver<?> |
NONE
Resolver configured to open nothing.
|
Modifier and Type | Method and Description |
---|---|
Repository |
open(C req,
String name)
Locate and open a reference to a
Repository . |
static final RepositoryResolver<?> NONE
Repository open(C req, String name) throws RepositoryNotFoundException, ServiceNotAuthorizedException, ServiceNotEnabledException, ServiceMayNotContinueException
Repository
.
The caller is responsible for closing the returned Repository.
req
- the current request, may be used to inspect session state
including cookies or user authentication.name
- name of the repository, as parsed out of the URL.RepositoryNotFoundException
- the repository does not exist or the name is incorrectly
formatted as a repository name.ServiceNotAuthorizedException
- the repository may exist, but HTTP access is not allowed
without authentication, i.e. this corresponds to an HTTP 401
Unauthorized.ServiceNotEnabledException
- the repository may exist, but HTTP access is not allowed on the
target repository, for the current user.ServiceMayNotContinueException
- the repository may exist, but HTTP access is not allowed for
the current request. The exception message contains a detailed
message that should be shown to the user.Copyright © 2018 Eclipse JGit Project. All rights reserved.