Package org.opennms.web.rest.v1
Class OnmsIpInterfaceResource
- java.lang.Object
-
- org.opennms.web.rest.v1.OnmsRestService
-
- org.opennms.web.rest.v1.OnmsIpInterfaceResource
-
@Component("onmsIpInterfaceResource") @Transactional public class OnmsIpInterfaceResource 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 OnmsIpInterfaceResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
addIpInterface(javax.ws.rs.core.UriInfo uriInfo, java.lang.String nodeCriteria, OnmsIpInterface ipInterface)
addIpInterfacejavax.ws.rs.core.Response
deleteIpInterface(java.lang.String nodeCriteria, java.lang.String ipAddress)
deleteIpInterfaceOnmsIpInterface
getIpInterface(java.lang.String nodeCriteria, java.lang.String ipAddress)
getIpInterfaceOnmsIpInterfaceList
getIpInterfaces(javax.ws.rs.core.UriInfo uriInfo, java.lang.String nodeCriteria)
getIpInterfacesOnmsMonitoredServiceResource
getServices(javax.ws.rs.container.ResourceContext context)
getServicesjavax.ws.rs.core.Response
updateIpInterface(java.lang.String nodeCriteria, java.lang.String ipAddress, MultivaluedMapImpl params)
updateIpInterface-
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
-
getIpInterfaces
public OnmsIpInterfaceList getIpInterfaces(@Context javax.ws.rs.core.UriInfo uriInfo, java.lang.String nodeCriteria)
getIpInterfaces
- Parameters:
nodeCriteria
- aString
object.- Returns:
- a
OnmsIpInterfaceList
object.
-
getIpInterface
public OnmsIpInterface getIpInterface(java.lang.String nodeCriteria, java.lang.String ipAddress)
getIpInterface
- Parameters:
nodeCriteria
- aString
object.ipAddress
- aString
object.- Returns:
- a
OnmsIpInterface
object.
-
addIpInterface
public javax.ws.rs.core.Response addIpInterface(@Context javax.ws.rs.core.UriInfo uriInfo, java.lang.String nodeCriteria, OnmsIpInterface ipInterface)
addIpInterface
- Parameters:
nodeCriteria
- aString
object.ipInterface
- aOnmsIpInterface
object.- Returns:
- a
Response
object.
-
updateIpInterface
public javax.ws.rs.core.Response updateIpInterface(java.lang.String nodeCriteria, java.lang.String ipAddress, MultivaluedMapImpl params)
updateIpInterface
- Parameters:
nodeCriteria
- aString
object.ipAddress
- aString
object.params
- aMultivaluedMapImpl
object.- Returns:
- a
Response
object.
-
deleteIpInterface
public javax.ws.rs.core.Response deleteIpInterface(java.lang.String nodeCriteria, java.lang.String ipAddress)
deleteIpInterface
- Parameters:
nodeCriteria
- aString
object.ipAddress
- aString
object.- Returns:
- a
Response
object.
-
getServices
public OnmsMonitoredServiceResource getServices(@Context javax.ws.rs.container.ResourceContext context)
getServices
- Returns:
- a
org.opennms.web.rest.OnmsMonitoredServiceResource
object.
-
-