public class FileResource extends java.lang.Object implements RestResource
RestResource.HasETag, RestResource.HasLastModified
Modifier and Type | Field and Description |
---|---|
static com.google.inject.TypeLiteral<RestView<FileResource>> |
FILE_KIND |
Constructor and Description |
---|
FileResource(ProjectControl project,
org.eclipse.jgit.lib.ObjectId rev,
java.lang.String path) |
Modifier and Type | Method and Description |
---|---|
static FileResource |
create(GitRepositoryManager repoManager,
ProjectControl project,
org.eclipse.jgit.lib.ObjectId rev,
java.lang.String path) |
java.lang.String |
getPath() |
ProjectControl |
getProject() |
org.eclipse.jgit.lib.ObjectId |
getRev() |
public static final com.google.inject.TypeLiteral<RestView<FileResource>> FILE_KIND
public FileResource(ProjectControl project, org.eclipse.jgit.lib.ObjectId rev, java.lang.String path)
public static FileResource create(GitRepositoryManager repoManager, ProjectControl project, org.eclipse.jgit.lib.ObjectId rev, java.lang.String path) throws ResourceNotFoundException, java.io.IOException
ResourceNotFoundException
java.io.IOException
public ProjectControl getProject()
public org.eclipse.jgit.lib.ObjectId getRev()
public java.lang.String getPath()