public class HttpServiceImpl extends java.lang.Object implements HttpService
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONFIG_FILE
The name of the configuration file.
|
BUNDLE_NAME| Constructor and Description |
|---|
HttpServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate(ComponentContext context)
DS activate method.
|
void |
addHttpHandler(HttpHandler handler)
Add a HttpHandler..
|
void |
addJettyHandler(JettyHandler handler)
Add a JettyHandler.
|
protected void |
deactivate(ComponentContext context)
DS deactivate method.
|
void |
removeHttpHandler(HttpHandler handler)
Remove the given HttpHandler.
|
void |
removeJettyHandler(JettyHandler handler)
Remove the given JettyHandler.
|
void |
setClusterConfigService(ClusterConfigService clusterConfigService)
set new
ClusterConfigService. |
void |
unsetClusterConfigService(ClusterConfigService clusterConfigService)
remove an
ClusterConfigService. |
public static final java.lang.String CONFIG_FILE
public void addHttpHandler(HttpHandler handler)
handler - the new HttpHandlerpublic void removeHttpHandler(HttpHandler handler)
handler - the HttpHandlerpublic void addJettyHandler(JettyHandler handler)
handler - the new JettyHandlerpublic void removeJettyHandler(JettyHandler handler)
handler - the JettyHandlerprotected void activate(ComponentContext context)
context - ComponentContextprotected void deactivate(ComponentContext context)
context - the ComponentContextpublic void setClusterConfigService(ClusterConfigService clusterConfigService)
ClusterConfigService. To be called by DS runtime before activation.clusterConfigService - new ClusterConfigServicepublic void unsetClusterConfigService(ClusterConfigService clusterConfigService)
ClusterConfigService. To be called by DS runtime after deactivation.clusterConfigService - new ClusterConfigService