@Component(value="monitoringLocationsRestService") @Path(value="monitoringLocations") public class MonitoringLocationsRestService extends OnmsRestService
OnmsRestService.ComparisonOperationDEFAULT_LIMIT| Constructor and Description |
|---|
MonitoringLocationsRestService() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
addMonitoringLocation(javax.ws.rs.core.UriInfo uriInfo,
LocationDef monitoringLocation) |
javax.ws.rs.core.Response |
deleteMonitoringLocation(String monitoringLocation) |
LocationDef |
getDefaultMonitoringLocation() |
OnmsMonitoringLocationDefinitionList |
getForeignSources() |
LocationDef |
getMonitoringLocation(String monitoringLocation) |
String |
getTotalCount() |
javax.ws.rs.core.Response |
updateMonitoringLocation(javax.ws.rs.core.UriInfo uriInfo,
String monitoringLocation,
MultivaluedMapImpl params) |
applyQueryFilters, applyQueryFilters, getBadRequestResponse, getBeanWrapperForClass, getException, getException, getNumericValue, getRedirectUri, readLock, readUnlock, removeParameter, removeParameter, setProperties, writeLock, writeUnlock@GET
@Path(value="default")
@Produces(value={"application/xml","application/json","application/atom+xml"})
public LocationDef getDefaultMonitoringLocation()
throws ParseException
ParseException@GET
@Produces(value={"application/xml","application/json","application/atom+xml"})
public OnmsMonitoringLocationDefinitionList getForeignSources()
throws ParseException
ParseException@GET @Path(value="count") @Produces(value="text/plain") public String getTotalCount() throws ParseException
ParseException@GET
@Path(value="{monitoringLocation}")
@Produces(value={"application/xml","application/json","application/atom+xml"})
public LocationDef getMonitoringLocation(@PathParam(value="monitoringLocation")
String monitoringLocation)
@POST
@Consumes(value={"application/xml","application/json","application/atom+xml"})
@Transactional
public javax.ws.rs.core.Response addMonitoringLocation(@Context
javax.ws.rs.core.UriInfo uriInfo,
LocationDef monitoringLocation)
@PUT
@Path(value="{monitoringLocation}")
@Consumes(value="application/x-www-form-urlencoded")
@Transactional
public javax.ws.rs.core.Response updateMonitoringLocation(@Context
javax.ws.rs.core.UriInfo uriInfo,
@PathParam(value="monitoringLocation")
String monitoringLocation,
MultivaluedMapImpl params)
@DELETE
@Path(value="{monitoringLocation}")
@Transactional
public javax.ws.rs.core.Response deleteMonitoringLocation(@PathParam(value="monitoringLocation")
String monitoringLocation)
Copyright © 2015. All rights reserved.