public class ListPlugins extends java.lang.Object implements RestReadView<TopLevelResource>
Modifier | Constructor and Description |
---|---|
protected |
ListPlugins(PluginLoader pluginLoader) |
Modifier and Type | Method and Description |
---|---|
java.util.SortedMap<java.lang.String,PluginInfo> |
apply(TopLevelResource resource)
Process the view operation by reading from the resource.
|
ListPlugins |
request(Plugins.ListRequest request) |
void |
setAll(boolean all) |
void |
setLimit(int limit) |
void |
setMatchPrefix(java.lang.String matchPrefix) |
void |
setMatchRegex(java.lang.String matchRegex) |
void |
setMatchSubstring(java.lang.String matchSubstring) |
void |
setStart(int start) |
static PluginInfo |
toPluginInfo(Plugin p) |
@Inject protected ListPlugins(PluginLoader pluginLoader)
public void setAll(boolean all)
public void setLimit(int limit)
public void setStart(int start)
public void setMatchPrefix(java.lang.String matchPrefix)
public void setMatchSubstring(java.lang.String matchSubstring)
public void setMatchRegex(java.lang.String matchRegex)
public ListPlugins request(Plugins.ListRequest request)
public java.util.SortedMap<java.lang.String,PluginInfo> apply(TopLevelResource resource) throws BadRequestException
RestReadView
apply
in interface RestReadView<TopLevelResource>
resource
- resource to read.BinaryResult
to avoid automatic conversion
to JSON.BadRequestException
- the request was incorrectly specified and cannot be handled by this
view.public static PluginInfo toPluginInfo(Plugin p)