public class ListPlugins extends Object implements RestReadView<TopLevelResource>
Modifier | Constructor and Description |
---|---|
protected |
ListPlugins(PluginLoader pluginLoader) |
Modifier and Type | Method and Description |
---|---|
Object |
apply(TopLevelResource resource)
Process the view operation by reading from the resource.
|
com.google.gson.JsonElement |
display(PrintWriter stdout) |
OutputFormat |
getFormat() |
ListPlugins |
setFormat(OutputFormat fmt) |
@Inject protected ListPlugins(PluginLoader pluginLoader)
public OutputFormat getFormat()
public ListPlugins setFormat(OutputFormat fmt)
public Object apply(TopLevelResource resource)
RestReadView
apply
in interface RestReadView<TopLevelResource>
resource
- resource to read.BinaryResult
to avoid automatic conversion
to JSON.public com.google.gson.JsonElement display(PrintWriter stdout)