SMILA 1.0 API documentation

org.eclipse.smila.http.server.util
Class WebappContextService

java.lang.Object
  extended by org.eclipse.smila.http.server.util.AJettyHandlerService
      extended by org.eclipse.smila.http.server.util.WebappContextService
All Implemented Interfaces:
JettyHandler

public class WebappContextService
extends AJettyHandlerService

An implementation of the JettyHandlerService interface to process requests to static web resources. The actual handler is a org.eclipse.jetty.server.handler.ResourceHandler.


Field Summary
static java.lang.String PROPERTY_WEBAPP_DIR
          Constant for the ComponentContext property "webappDir".
 
Fields inherited from class org.eclipse.smila.http.server.util.AJettyHandlerService
PROPERTY_CONFIGBUNDLE
 
Constructor Summary
WebappContextService()
           
 
Method Summary
protected  void activate(ComponentContext context)
          DS activate method.
 Handler getHandler()
          Returns the actual jetty Handler instance, which in this case is a org.eclipse.jetty.server.handler.ResourceHandler instance.
 
Methods inherited from class org.eclipse.smila.http.server.util.AJettyHandlerService
getConfigBundle, getConfigPathProperty, getRootContextPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTY_WEBAPP_DIR

public static final java.lang.String PROPERTY_WEBAPP_DIR
Constant for the ComponentContext property "webappDir".

See Also:
Constant Field Values
Constructor Detail

WebappContextService

public WebappContextService()
Method Detail

activate

protected void activate(ComponentContext context)
DS activate method.

Overrides:
activate in class AJettyHandlerService
Parameters:
context - ComponentContext

getHandler

public Handler getHandler()
Returns the actual jetty Handler instance, which in this case is a org.eclipse.jetty.server.handler.ResourceHandler instance.

Returns:
the jetty Handler instance

SMILA 1.0 API documentation