Package com.google.gerrit.server.project
Class FileResource
- java.lang.Object
- 
- com.google.gerrit.server.project.FileResource
 
- 
- All Implemented Interfaces:
- RestResource
 
 public class FileResource extends Object implements 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.RestResourceRestResource.HasETag, RestResource.HasLastModified
 
- 
 - 
Field SummaryFields Modifier and Type Field Description static com.google.inject.TypeLiteral<RestView<FileResource>>FILE_KIND
 - 
Constructor SummaryConstructors Constructor Description FileResource(ProjectState projectState, org.eclipse.jgit.lib.ObjectId rev, String path)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FileResourcecreate(GitRepositoryManager repoManager, ProjectState projectState, org.eclipse.jgit.lib.ObjectId rev, String path)StringgetPath()ProjectStategetProjectState()org.eclipse.jgit.lib.ObjectIdgetRev()
 
- 
- 
- 
Field Detail- 
FILE_KINDpublic static final com.google.inject.TypeLiteral<RestView<FileResource>> FILE_KIND 
 
- 
 - 
Constructor Detail- 
FileResourcepublic FileResource(ProjectState projectState, org.eclipse.jgit.lib.ObjectId rev, String path) 
 
- 
 - 
Method Detail- 
createpublic static FileResource create(GitRepositoryManager repoManager, ProjectState projectState, org.eclipse.jgit.lib.ObjectId rev, String path) throws ResourceNotFoundException, IOException - Throws:
- ResourceNotFoundException
- IOException
 
 - 
getProjectStatepublic ProjectState getProjectState() 
 - 
getRevpublic org.eclipse.jgit.lib.ObjectId getRev() 
 - 
getPathpublic String getPath() 
 
- 
 
-