Package com.google.gerrit.server.project
Class BranchResource
java.lang.Object
com.google.gerrit.server.project.ProjectResource
com.google.gerrit.server.project.RefResource
com.google.gerrit.server.project.BranchResource
- All Implemented Interfaces:
RestResource
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.google.gerrit.extensions.restapi.RestResource
RestResource.HasETag, RestResource.HasLastModified
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.google.inject.TypeLiteral<RestView<BranchResource>>
Fields inherited from class com.google.gerrit.server.project.ProjectResource
PROJECT_KIND
-
Constructor Summary
ConstructorsConstructorDescriptionBranchResource
(ProjectState projectState, CurrentUser user, org.eclipse.jgit.lib.Ref ref) -
Method Summary
Methods inherited from class com.google.gerrit.server.project.ProjectResource
getName, getNameKey, getProjectState, getUser
-
Field Details
-
BRANCH_KIND
-
-
Constructor Details
-
BranchResource
-
-
Method Details
-
getBranchKey
-
getRef
Description copied from class:RefResource
Returns the ref's name- Specified by:
getRef
in classRefResource
-
getRevision
Description copied from class:RefResource
Returns the ref's revision.- Specified by:
getRevision
in classRefResource
- Returns:
- the ref's revision,
Optional.empty()
if the ref doesn't exist (yet)
-