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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.google.gerrit.extensions.restapi.RestResource
RestResource.HasETag, RestResource.HasLastModified
-
-
Field Summary
Fields Modifier and Type Field Description static com.google.inject.TypeLiteral<RestView<FileResource>>FILE_KIND
-
Constructor Summary
Constructors Constructor Description FileResource(ProjectState projectState, org.eclipse.jgit.lib.ObjectId rev, String path)
-
Method Summary
All 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_KIND
public static final com.google.inject.TypeLiteral<RestView<FileResource>> FILE_KIND
-
-
Constructor Detail
-
FileResource
public FileResource(ProjectState projectState, org.eclipse.jgit.lib.ObjectId rev, String path)
-
-
Method Detail
-
create
public static FileResource create(GitRepositoryManager repoManager, ProjectState projectState, org.eclipse.jgit.lib.ObjectId rev, String path) throws ResourceNotFoundException, IOException
- Throws:
ResourceNotFoundExceptionIOException
-
getProjectState
public ProjectState getProjectState()
-
getRev
public org.eclipse.jgit.lib.ObjectId getRev()
-
getPath
public String getPath()
-
-