public class FileContentUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TEXT_X_GERRIT_COMMIT_MESSAGE |
Modifier and Type | Method and Description |
---|---|
com.google.gerrit.extensions.restapi.BinaryResult |
downloadContent(ProjectState project,
org.eclipse.jgit.lib.ObjectId revstr,
java.lang.String path,
java.lang.Integer parent) |
com.google.gerrit.extensions.restapi.BinaryResult |
getContent(ProjectState project,
org.eclipse.jgit.lib.ObjectId revstr,
java.lang.String path) |
static java.lang.String |
resolveContentType(ProjectState project,
java.lang.String path,
com.google.gerrit.common.data.PatchScript.FileMode fileMode,
java.lang.String mimeType) |
public static final java.lang.String TEXT_X_GERRIT_COMMIT_MESSAGE
public com.google.gerrit.extensions.restapi.BinaryResult getContent(ProjectState project, org.eclipse.jgit.lib.ObjectId revstr, java.lang.String path) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException, java.io.IOException
com.google.gerrit.extensions.restapi.ResourceNotFoundException
java.io.IOException
public com.google.gerrit.extensions.restapi.BinaryResult downloadContent(ProjectState project, org.eclipse.jgit.lib.ObjectId revstr, java.lang.String path, java.lang.Integer parent) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException, java.io.IOException
com.google.gerrit.extensions.restapi.ResourceNotFoundException
java.io.IOException
public static java.lang.String resolveContentType(ProjectState project, java.lang.String path, com.google.gerrit.common.data.PatchScript.FileMode fileMode, java.lang.String mimeType)