|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
C - type of connection.public interface RepositoryResolver<C>
Locate a Git Repository by name from the URL.
| Field Summary | |
|---|---|
static RepositoryResolver<?> |
NONE
Resolver configured to open nothing. |
| Method Summary | |
|---|---|
Repository |
open(C req,
java.lang.String name)
Locate and open a reference to a Repository. |
| Field Detail |
|---|
static final RepositoryResolver<?> NONE
| Method Detail |
|---|
Repository open(C req,
java.lang.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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||