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.HasETag, RestResource.HasLastModified - 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.google.inject.TypeLiteral<RestView<FileResource>> - 
Constructor Summary
ConstructorsConstructorDescriptionFileResource(ProjectState projectState, org.eclipse.jgit.lib.ObjectId rev, String path)  - 
Method Summary
Modifier 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
- 
create
public static FileResource create(GitRepositoryManager repoManager, ProjectState projectState, org.eclipse.jgit.lib.ObjectId rev, String path) throws ResourceNotFoundException, IOException - Throws:
 ResourceNotFoundExceptionIOException
 - 
getProjectState
 - 
getRev
public org.eclipse.jgit.lib.ObjectId getRev() - 
getPath
 
 -