Package org.opennms.web.rest.v1
Class MonitoringLocationsRestService
- java.lang.Object
-
- org.opennms.web.rest.v1.OnmsRestService
-
- org.opennms.web.rest.v1.MonitoringLocationsRestService
-
@Component("monitoringLocationsRestService") @Path("monitoringLocations") public class MonitoringLocationsRestService 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 MonitoringLocationsRestService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponseaddMonitoringLocation(javax.ws.rs.core.UriInfo uriInfo, OnmsMonitoringLocation monitoringLocation)javax.ws.rs.core.ResponsedeleteMonitoringLocation(String monitoringLocation)OnmsMonitoringLocationgetDefaultMonitoringLocation()OnmsMonitoringLocationDefinitionListgetForeignSources()OnmsMonitoringLocationgetMonitoringLocation(String monitoringLocation)StringgetTotalCount()javax.ws.rs.core.ResponseupdateMonitoringLocation(String monitoringLocation, MultivaluedMapImpl params)-
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
-
getDefaultMonitoringLocation
@GET @Path("default") @Produces({"application/xml","application/json","application/atom+xml"}) public OnmsMonitoringLocation getDefaultMonitoringLocation() throws ParseException- Throws:
ParseException
-
getForeignSources
@GET @Produces({"application/xml","application/json","application/atom+xml"}) public OnmsMonitoringLocationDefinitionList getForeignSources() throws ParseException- Throws:
ParseException
-
getTotalCount
@GET @Path("count") @Produces("text/plain") public String getTotalCount() throws ParseException- Throws:
ParseException
-
getMonitoringLocation
@GET @Path("{monitoringLocation}") @Produces({"application/xml","application/json","application/atom+xml"}) public OnmsMonitoringLocation getMonitoringLocation(@PathParam("monitoringLocation") String monitoringLocation)
-
addMonitoringLocation
@POST @Consumes({"application/xml","application/json","application/atom+xml"}) @Transactional public javax.ws.rs.core.Response addMonitoringLocation(@Context javax.ws.rs.core.UriInfo uriInfo, OnmsMonitoringLocation monitoringLocation)
-
updateMonitoringLocation
@PUT @Path("{monitoringLocation}") @Consumes("application/x-www-form-urlencoded") @Transactional public javax.ws.rs.core.Response updateMonitoringLocation(@PathParam("monitoringLocation") String monitoringLocation, MultivaluedMapImpl params)
-
deleteMonitoringLocation
@DELETE @Path("{monitoringLocation}") @Transactional public javax.ws.rs.core.Response deleteMonitoringLocation(@PathParam("monitoringLocation") String monitoringLocation)
-
-