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(ProjectState projectState,
org.eclipse.jgit.lib.ObjectId rev,
java.lang.String path) |
| Modifier and Type | Method and Description |
|---|---|
static FileResource |
create(GitRepositoryManager repoManager,
ProjectState projectState,
org.eclipse.jgit.lib.ObjectId rev,
java.lang.String path) |
java.lang.String |
getPath() |
ProjectState |
getProjectState() |
org.eclipse.jgit.lib.ObjectId |
getRev() |
public static final com.google.inject.TypeLiteral<RestView<FileResource>> FILE_KIND
public FileResource(ProjectState projectState, org.eclipse.jgit.lib.ObjectId rev, java.lang.String path)
public static FileResource create(GitRepositoryManager repoManager, ProjectState projectState, org.eclipse.jgit.lib.ObjectId rev, java.lang.String path) throws ResourceNotFoundException, java.io.IOException
ResourceNotFoundExceptionjava.io.IOExceptionpublic ProjectState getProjectState()
public org.eclipse.jgit.lib.ObjectId getRev()
public java.lang.String getPath()