Package org.opennms.web.rest.v1
Class MinionRestService
- java.lang.Object
-
- org.opennms.web.rest.v1.OnmsRestService
-
- org.opennms.web.rest.v1.MinionRestService
-
@Component("minionRestService") @Path("minions") public class MinionRestService extends OnmsRestService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opennms.web.rest.v1.OnmsRestService
OnmsRestService.ComparisonOperation
-
-
Field Summary
-
Fields inherited from class org.opennms.web.rest.v1.OnmsRestService
DEFAULT_LIMIT
-
-
Constructor Summary
Constructors Constructor Description MinionRestService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCount()
OnmsMinion
getMinion(String minionId)
String
getMinionProperty(String minionId, String key)
OnmsMinionCollection
getMinions(javax.ws.rs.core.UriInfo uriInfo)
-
Methods inherited from class org.opennms.web.rest.v1.OnmsRestService
applyQueryFilters, applyQueryFilters, getBadRequestResponse, getBeanWrapperForClass, getException, getException, getNumericValue, getRedirectUri, readLock, readUnlock, removeParameter, removeParameter, setProperties, writeLock, writeUnlock
-
-
-
-
Method Detail
-
getMinion
@GET @Produces({"application/xml","application/json","application/atom+xml"}) @Path("{minionId}") @Transactional public OnmsMinion getMinion(@PathParam("minionId") String minionId)
-
getMinionProperty
@GET @Produces("text/plain") @Path("{minionId}/{key}") @Transactional public String getMinionProperty(@PathParam("minionId") String minionId, @PathParam("key") String key)
-
getCount
@GET @Produces("text/plain") @Path("count") @Transactional public String getCount()
-
getMinions
@GET @Produces({"application/xml","application/json","application/atom+xml"}) @Transactional public OnmsMinionCollection getMinions(@Context javax.ws.rs.core.UriInfo uriInfo) throws ParseException
- Throws:
ParseException
-
-