@Component public class SnmpTrapNorthbounderConfigurationResource extends OnmsRestService implements org.springframework.beans.factory.InitializingBean
| Modifier and Type | Class and Description |
|---|---|
static class |
SnmpTrapNorthbounderConfigurationResource.ImportMappings
The Class ImportMappings.
|
static class |
SnmpTrapNorthbounderConfigurationResource.SnmpTrapSinkList
The Class SnmpTrapSinkList.
|
OnmsRestService.ComparisonOperationDEFAULT_LIMIT| Constructor and Description |
|---|
SnmpTrapNorthbounderConfigurationResource() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
javax.ws.rs.core.Response |
getConfiguration()
Gets the configuration.
|
javax.ws.rs.core.Response |
getImportMappings(String trapSinkName)
Gets the import mappings.
|
SnmpTrapSink |
getSnmpTrapSink(String trapSinkName)
Gets the SNMP trap sink.
|
javax.ws.rs.core.Response |
getSnmpTrapSinks()
Gets all the SNMP trap sinks.
|
javax.ws.rs.core.Response |
getStatus()
Gets the status.
|
javax.ws.rs.core.Response |
getStatus(Boolean enabled)
Gets the status.
|
javax.ws.rs.core.Response |
removeImportMapping(String trapSinkName,
String mappingName)
Removes the import mapping.
|
javax.ws.rs.core.Response |
removeSnmpTrapSink(String trapSinkName)
Removes a specific SNMP trap sink.
|
javax.ws.rs.core.Response |
setConfiguration(SnmpTrapNorthbounderConfig config)
Sets the configuration.
|
javax.ws.rs.core.Response |
setImportMapping(String trapSinkName,
SnmpTrapMappingGroup mappingGroup)
Sets an import mapping.
|
javax.ws.rs.core.Response |
setSnmpTrapSink(SnmpTrapSink snmpTrapSink)
Sets a SNMP trap sink.
|
javax.ws.rs.core.Response |
updateImportMapping(String trapSinkName,
String mappingName,
MultivaluedMapImpl params)
Update import mapping.
|
javax.ws.rs.core.Response |
updateSnmpTrapSink(String trapSinkName,
MultivaluedMapImpl params)
Update a specific SNMP trap sink.
|
applyQueryFilters, applyQueryFilters, getBadRequestResponse, getBeanWrapperForClass, getException, getException, getNumericValue, getRedirectUri, readLock, readUnlock, removeParameter, removeParameter, setProperties, writeLock, writeUnlockpublic SnmpTrapNorthbounderConfigurationResource()
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic javax.ws.rs.core.Response getConfiguration()
public javax.ws.rs.core.Response setConfiguration(SnmpTrapNorthbounderConfig config)
config - the full configuration objectpublic javax.ws.rs.core.Response getStatus()
public javax.ws.rs.core.Response getStatus(Boolean enabled) throws javax.ws.rs.WebApplicationException
enabled - the enabledjavax.ws.rs.WebApplicationException - the web application exceptionpublic javax.ws.rs.core.Response getSnmpTrapSinks()
public SnmpTrapSink getSnmpTrapSink(String trapSinkName)
trapSinkName - the trap sink namepublic javax.ws.rs.core.Response getImportMappings(String trapSinkName)
trapSinkName - the trap sink namepublic javax.ws.rs.core.Response setSnmpTrapSink(SnmpTrapSink snmpTrapSink)
If there is a trap sunk with the same name, the existing one will be overridden.
snmpTrapSink - the SNMP trap sinkpublic javax.ws.rs.core.Response setImportMapping(String trapSinkName, SnmpTrapMappingGroup mappingGroup)
trapSinkName - the trap sink namemappingGroup - the mapping grouppublic javax.ws.rs.core.Response updateSnmpTrapSink(String trapSinkName, MultivaluedMapImpl params)
trapSinkName - the trap sink nameparams - the parameters mappublic javax.ws.rs.core.Response updateImportMapping(String trapSinkName, String mappingName, MultivaluedMapImpl params)
trapSinkName - the trap sink namemappingName - the mapping nameparams - the parameters mappublic javax.ws.rs.core.Response removeImportMapping(String trapSinkName, String mappingName)
trapSinkName - the trap sink namemappingName - the mapping namepublic javax.ws.rs.core.Response removeSnmpTrapSink(String trapSinkName)
trapSinkName - the trap sink nameCopyright © 2017. All rights reserved.