SMILA (incubation) API documentation

org.eclipse.smila.http.server.internal
Class HttpServiceImpl

java.lang.Object
  extended by org.eclipse.smila.http.server.internal.HttpServiceImpl
All Implemented Interfaces:
HttpService

public class HttpServiceImpl
extends java.lang.Object
implements HttpService

Service implementation of a HttpServer.


Field Summary
static java.lang.String CONFIG_FILE
          The name of the configuration file.
 
Fields inherited from interface org.eclipse.smila.http.server.HttpService
BUNDLE_NAME
 
Constructor Summary
HttpServiceImpl()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIG_FILE

public static final java.lang.String CONFIG_FILE
The name of the configuration file.

See Also:
Constant Field Values
Constructor Detail

HttpServiceImpl

public HttpServiceImpl()
Method Detail

addHttpHandler

public void addHttpHandler(HttpHandler handler)
Add a HttpHandler..

Parameters:
handler - the new HttpHandler

removeHttpHandler

public void removeHttpHandler(HttpHandler handler)
Remove the given HttpHandler.

Parameters:
handler - the HttpHandler

addJettyHandler

public void addJettyHandler(JettyHandler handler)
Add a JettyHandler.

Parameters:
handler - the new JettyHandler

removeJettyHandler

public void removeJettyHandler(JettyHandler handler)
Remove the given JettyHandler.

Parameters:
handler - the JettyHandler

activate

protected void activate(ComponentContext context)
DS activate method.

Parameters:
context - ComponentContext

deactivate

protected void deactivate(ComponentContext context)
DS deactivate method.

Parameters:
context - the ComponentContext

setClusterConfigService

public void setClusterConfigService(ClusterConfigService clusterConfigService)
set new ClusterConfigService. To be called by DS runtime before activation.

Parameters:
clusterConfigService - new ClusterConfigService

unsetClusterConfigService

public void unsetClusterConfigService(ClusterConfigService clusterConfigService)
remove an ClusterConfigService. To be called by DS runtime after deactivation.

Parameters:
clusterConfigService - new ClusterConfigService

SMILA (incubation) API documentation