@Component public class SyslogNorthbounderConfigurationResource extends OnmsRestService implements org.springframework.beans.factory.InitializingBean
Modifier and Type | Class and Description |
---|---|
static class |
SyslogNorthbounderConfigurationResource.SyslogDestinationList
The Class SyslogDestinationList.
|
OnmsRestService.ComparisonOperation
DEFAULT_LIMIT
Constructor and Description |
---|
SyslogNorthbounderConfigurationResource() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
javax.ws.rs.core.Response |
getConfiguration()
Gets the configuration.
|
javax.ws.rs.core.Response |
getEmailDestinations()
Gets all the email destinations.
|
javax.ws.rs.core.Response |
getStatus()
Gets the status.
|
javax.ws.rs.core.Response |
getStatus(Boolean enabled)
Gets the status.
|
SyslogDestination |
getSyslogDestination(String destinationName)
Gets a syslog destination.
|
javax.ws.rs.core.Response |
removeSyslogDestination(String destinationName)
Removes a specific syslog destination.
|
javax.ws.rs.core.Response |
setConfiguration(SyslogNorthbounderConfig config)
Sets the configuration.
|
javax.ws.rs.core.Response |
setSyslogDestination(SyslogDestination destination)
Sets a syslog destination.
|
javax.ws.rs.core.Response |
updateSyslogDestination(String destinationName,
MultivaluedMapImpl params)
Update a specific Syslog Destination.
|
applyQueryFilters, applyQueryFilters, getBadRequestResponse, getBeanWrapperForClass, getException, getException, getNumericValue, getRedirectUri, readLock, readUnlock, removeParameter, removeParameter, setProperties, writeLock, writeUnlock
public SyslogNorthbounderConfigurationResource()
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public javax.ws.rs.core.Response getConfiguration()
public javax.ws.rs.core.Response setConfiguration(SyslogNorthbounderConfig 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 getEmailDestinations()
public SyslogDestination getSyslogDestination(String destinationName)
destinationName
- the destination namepublic javax.ws.rs.core.Response setSyslogDestination(SyslogDestination destination)
If there is a destination with the same name, the existing one will be overridden.
destination
- the destinationpublic javax.ws.rs.core.Response updateSyslogDestination(String destinationName, MultivaluedMapImpl params)
destinationName
- the destination nameparams
- the parameters mappublic javax.ws.rs.core.Response removeSyslogDestination(String destinationName)
destinationName
- the destination nameCopyright © 2021. All rights reserved.