public class FileResource extends 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,
String path) |
Modifier and Type | Method and Description |
---|---|
static FileResource |
create(GitRepositoryManager repoManager,
ProjectControl project,
org.eclipse.jgit.lib.ObjectId rev,
String path) |
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, String path)
public static FileResource create(GitRepositoryManager repoManager, ProjectControl project, org.eclipse.jgit.lib.ObjectId rev, String path) throws ResourceNotFoundException, IOException
ResourceNotFoundException
IOException
public ProjectControl getProject()
public org.eclipse.jgit.lib.ObjectId getRev()
public String getPath()