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 SummaryNested classes/interfaces inherited from interface com.google.gerrit.extensions.restapi.RestResourceRestResource.HasLastModified
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.google.inject.TypeLiteral<RestView<FileResource>> 
- 
Constructor SummaryConstructorsConstructorDescriptionFileResource(ProjectState projectState, org.eclipse.jgit.lib.ObjectId rev, String path) 
- 
Method SummaryModifier and TypeMethodDescriptionstatic FileResourcecreate(GitRepositoryManager repoManager, ProjectState projectState, org.eclipse.jgit.lib.ObjectId rev, String path) getPath()org.eclipse.jgit.lib.ObjectIdgetRev()
- 
Field Details- 
FILE_KIND
 
- 
- 
Constructor Details- 
FileResource
 
- 
- 
Method Details- 
createpublic static FileResource create(GitRepositoryManager repoManager, ProjectState projectState, org.eclipse.jgit.lib.ObjectId rev, String path) throws ResourceNotFoundException, IOException - Throws:
- ResourceNotFoundException
- IOException
 
- 
getProjectState
- 
getRevpublic org.eclipse.jgit.lib.ObjectId getRev()
- 
getPath
 
-