Class OutputStreamQuery
- java.lang.Object
-
- com.google.gerrit.server.query.change.OutputStreamQuery
-
public class OutputStreamQuery extends Object
Change query implementation that outputs to a stream in the style of an SSH command.Instances are one-time-use. Other singleton classes should inject a Provider rather than holding on to a single instance.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOutputStreamQuery.OutputFormat
-
Field Summary
Fields Modifier and Type Field Description static com.google.gson.GsonGSON
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetIncludeCurrentPatchSet()booleangetIncludeDependencies()booleangetIncludeFiles()booleangetIncludePatchSets()voidquery(String queryString)voidsetDynamicBean(String plugin, DynamicOptions.DynamicBean dynamicBean)voidsetIncludeAllReviewers(boolean on)voidsetIncludeApprovals(boolean on)voidsetIncludeComments(boolean on)voidsetIncludeCommitMessage(boolean on)voidsetIncludeCurrentPatchSet(boolean on)voidsetIncludeDependencies(boolean on)voidsetIncludeFiles(boolean on)voidsetIncludePatchSets(boolean on)voidsetIncludeSubmitRecords(boolean on)voidsetNoLimit(boolean on)voidsetOutput(OutputStream out, OutputStreamQuery.OutputFormat fmt)voidsetStart(int n)
-
-
-
Method Detail
-
setNoLimit
public void setNoLimit(boolean on)
-
setStart
public void setStart(int n)
-
setIncludePatchSets
public void setIncludePatchSets(boolean on)
-
getIncludePatchSets
public boolean getIncludePatchSets()
-
setIncludeCurrentPatchSet
public void setIncludeCurrentPatchSet(boolean on)
-
getIncludeCurrentPatchSet
public boolean getIncludeCurrentPatchSet()
-
setIncludeApprovals
public void setIncludeApprovals(boolean on)
-
setIncludeComments
public void setIncludeComments(boolean on)
-
setIncludeFiles
public void setIncludeFiles(boolean on)
-
getIncludeFiles
public boolean getIncludeFiles()
-
setIncludeDependencies
public void setIncludeDependencies(boolean on)
-
getIncludeDependencies
public boolean getIncludeDependencies()
-
setIncludeCommitMessage
public void setIncludeCommitMessage(boolean on)
-
setIncludeSubmitRecords
public void setIncludeSubmitRecords(boolean on)
-
setIncludeAllReviewers
public void setIncludeAllReviewers(boolean on)
-
setOutput
public void setOutput(OutputStream out, OutputStreamQuery.OutputFormat fmt)
-
setDynamicBean
public void setDynamicBean(String plugin, DynamicOptions.DynamicBean dynamicBean)
-
query
public void query(String queryString) throws IOException
- Throws:
IOException
-
-