Package com.google.gerrit.server.project
Class FileResource
java.lang.Object
com.google.gerrit.server.project.FileResource
- All Implemented Interfaces:
RestResource
A file.
This is in the project package because it is accessed through the project/branch/file path.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.google.gerrit.extensions.restapi.RestResource
RestResource.HasLastModified
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.google.inject.TypeLiteral
<RestView<FileResource>> -
Constructor Summary
ConstructorDescriptionFileResource
(ProjectState projectState, org.eclipse.jgit.lib.ObjectId rev, String path) -
Method Summary
Modifier and TypeMethodDescriptionstatic FileResource
create
(GitRepositoryManager repoManager, ProjectState projectState, org.eclipse.jgit.lib.ObjectId rev, String path) getPath()
org.eclipse.jgit.lib.ObjectId
getRev()
-
Field Details
-
FILE_KIND
-
-
Constructor Details
-
FileResource
-
-
Method Details
-
create
public static FileResource create(GitRepositoryManager repoManager, ProjectState projectState, org.eclipse.jgit.lib.ObjectId rev, String path) throws ResourceNotFoundException, IOException - Throws:
ResourceNotFoundException
IOException
-
getProjectState
-
getRev
public org.eclipse.jgit.lib.ObjectId getRev() -
getPath
-