@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.
|
javax.ws.rs.core.Response |
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(javax.ws.rs.core.UriInfo uriInfo,
SyslogNorthbounderConfig config)
Sets the configuration.
|
javax.ws.rs.core.Response |
setSyslogDestination(javax.ws.rs.core.UriInfo uriInfo,
SyslogDestination destination)
Sets a syslog destination.
|
javax.ws.rs.core.Response |
updateSyslogDestination(javax.ws.rs.core.UriInfo uriInfo,
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(@Context javax.ws.rs.core.UriInfo uriInfo, SyslogNorthbounderConfig config)
uriInfo
- the UEI infoconfig
- 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 javax.ws.rs.core.Response getSyslogDestination(String destinationName)
destinationName
- the destination namepublic javax.ws.rs.core.Response setSyslogDestination(@Context javax.ws.rs.core.UriInfo uriInfo, SyslogDestination destination)
If there is a destination with the same name, the existing one will be overridden.
uriInfo
- the URI infodestination
- the destinationpublic javax.ws.rs.core.Response updateSyslogDestination(@Context javax.ws.rs.core.UriInfo uriInfo, String destinationName, MultivaluedMapImpl params)
uriInfo
- the URI infodestinationName
- the destination nameparams
- the parameters mappublic javax.ws.rs.core.Response removeSyslogDestination(String destinationName)
destinationName
- the destination nameCopyright © 2016. All rights reserved.