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