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 class
OutputStreamQuery.OutputFormat
-
Field Summary
Fields Modifier and Type Field Description static com.google.gson.Gson
GSON
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getIncludeCurrentPatchSet()
boolean
getIncludeDependencies()
boolean
getIncludeFiles()
boolean
getIncludePatchSets()
void
query(String queryString)
void
setDynamicBean(String plugin, DynamicOptions.DynamicBean dynamicBean)
void
setIncludeAllReviewers(boolean on)
void
setIncludeApprovals(boolean on)
void
setIncludeComments(boolean on)
void
setIncludeCommitMessage(boolean on)
void
setIncludeCurrentPatchSet(boolean on)
void
setIncludeDependencies(boolean on)
void
setIncludeFiles(boolean on)
void
setIncludePatchSets(boolean on)
void
setIncludeSubmitRecords(boolean on)
void
setNoLimit(boolean on)
void
setOutput(OutputStream out, OutputStreamQuery.OutputFormat fmt)
void
setStart(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
-
-