}
@PUT
@Path("/{module}/enabled")
public Response setEnabled(@PathParam("module") String module, @QueryParam("value") boolean enabled) {
final StatisticsModule mod = statisticsService.getModule(module);
if (mod != null) {
if (enabled) {
mod.enable();
} else {
mod.disable();
}
return Response.ok().entity(enabled).build();
}
else
return Response.status(404)