public final class AlertModule extends HTTPModule.Abstract
HTTPModule.Abstract, HTTPModule.Context
Modifier and Type | Field and Description |
---|---|
static String |
ALERT_CONTEXT_ATTRIBUTE
Alert context attribute.
|
static String |
DEFAULT_PATH
Default path.
|
static String |
EVENTS_PATH
Events path.
|
static String |
STATUS_PATH
Status path.
|
static String |
TRIGGER_PATH
Trigger path.
|
MODULE_UUID_PROPERTY
Constructor and Description |
---|
AlertModule() |
Modifier and Type | Method and Description |
---|---|
protected void |
addServlets(Map<String,String> servlets)
Adds the servlets to the servlets map.
|
void |
doEventActions(Event event)
Does event actions.
|
void |
doPendingActions()
Does pending actions.
|
String |
getDefaultPath()
Gets the default path for this module.
|
void |
prepareServletContext(ServletContext servletContext)
Prepares the servlet context.
|
protected boolean |
setUp(KeyedGroups contextProperties)
Sets up the server module.
|
callbackForEventActions, callbackForPendingActions, callbackForSignalActions, doSignalActions, getConfig, getMetadata, getService, getThisLogger, loadMetadata, needsMetadata, setRestartEnabled, setUp, tearDown
public static final String ALERT_CONTEXT_ATTRIBUTE
public static final String DEFAULT_PATH
public static final String EVENTS_PATH
public static final String STATUS_PATH
public static final String TRIGGER_PATH
public void doEventActions(Event event)
doEventActions
in interface HTTPModule
doEventActions
in class HTTPModule.Abstract
event
- The event.public void doPendingActions()
doPendingActions
in interface HTTPModule
doPendingActions
in class HTTPModule.Abstract
public String getDefaultPath()
public void prepareServletContext(ServletContext servletContext)
prepareServletContext
in interface HTTPModule
prepareServletContext
in class HTTPModule.Abstract
servletContext
- The servlet context.protected void addServlets(Map<String,String> servlets)
addServlets
in class HTTPModule.Abstract
servlets
- The servlets map.protected boolean setUp(KeyedGroups contextProperties)
setUp
in class HTTPModule.Abstract
contextProperties
- The context properties.Copyright © 2003-2019 Serge Brisson. All Rights Reserved.