@Path(value="/modules") @Singleton @Produces(value="application/json") public class ModulesResource extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ModulesResource.InitializablePreprocessor |
| Constructor and Description |
|---|
ModulesResource() |
| Modifier and Type | Method and Description |
|---|---|
String |
getWidget(String id)
Gets more detailed information of a module with the given ID.
|
void |
initialize(Context ctx)
Initialize resource by injection.
|
Set<String> |
retrieveModules() |
String |
runModule(String id,
Map<String,Object> inputs,
boolean process)
Executes a module with given ID.
|
@Inject public void initialize(Context ctx)
ctx - @GET @Timed public Set<String> retrieveModules()
@GET
@Path(value="{id}")
public String getWidget(@PathParam(value="id")
String id)
throws com.fasterxml.jackson.core.JsonProcessingException
id - ID of the modulecom.fasterxml.jackson.core.JsonProcessingException@POST
@Path(value="{id}")
public String runModule(@PathParam(value="id")
String id,
Map<String,Object> inputs,
@DefaultValue(value="true") @QueryParam(value="process")
boolean process)
id - ID of the module to executeinputs - inputs to the executionprocess - true if the execution should be pre/post processedCopyright © 2014–2022 ImageJ. All rights reserved.