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