Class FileRequest<T>
java.lang.Object
com.linecorp.centraldogma.client.FileRequest<T>
Prepares to send a
CentralDogma.getFile(String, String, Revision, Query) request to the
Central Dogma repository.-
Method Summary
Modifier and TypeMethodDescriptionget()Retrieves a file located atQuery.path()at theRevision.HEAD.Retrieves a file located atQuery.path()at theRevision.renderTemplate(boolean renderTemplate) Sets whether to apply template processing to the file using the variables defined in the same repository and its parent project.renderTemplate(String variableFile) Applies template processing to the file using the specified variable file in the same repository.viewRaw(boolean viewRaw) Sets whether to view the raw content of the file.
-
Method Details
-
get
Retrieves a file located atQuery.path()at theRevision.HEAD. -
get
Retrieves a file located atQuery.path()at theRevision. -
viewRaw
Sets whether to view the raw content of the file. Default isfalsewhich means the content may be normalized.Note that
QueryType.JSON_PATHquery cannot be used with raw view. -
renderTemplate
Sets whether to apply template processing to the file using the variables defined in the same repository and its parent project.If
viewRaw(boolean)is set to true, the template processing will be applied to the raw content. IfviewRaw(boolean)is set to false, the template processing will be applied to the normalized content. -
renderTemplate
Applies template processing to the file using the specified variable file in the same repository. The variable file must be a JSON, JSON5 or YAML file and have an object at the top level (arrays or string are not allowed).If
viewRaw(boolean)is set to true, the template processing will be applied to the raw content. IfviewRaw(boolean)is set to false, the template processing will be applied to the normalized content.
-