org.eclipse.smila.http.server.util
Class ResourceHandlerService
java.lang.Object
org.eclipse.smila.http.server.util.AJettyHandlerService
org.eclipse.smila.http.server.util.ResourceHandlerService
- All Implemented Interfaces:
- JettyHandler
public class ResourceHandlerService
- extends AJettyHandlerService
An implementation of the JettyHandlerService
interface to process requests to static web resources. The
actual handler is a ResourceHandler
.
Field Summary |
static java.lang.String |
PROPERTY_RESOURCEBASE
Constant for the ComponentContext property "resourceBase". |
static java.lang.String |
PROPERTY_WELCOMEFILES
Constant for the ComponentContext property "welcomeFiles". |
Method Summary |
protected void |
activate(ComponentContext context)
DS activate method. |
Handler |
getHandler()
Returns the actual jetty Handler instance, which in this case is a ResourceHandler instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROPERTY_RESOURCEBASE
public static final java.lang.String PROPERTY_RESOURCEBASE
- Constant for the ComponentContext property "resourceBase".
- See Also:
- Constant Field Values
PROPERTY_WELCOMEFILES
public static final java.lang.String PROPERTY_WELCOMEFILES
- Constant for the ComponentContext property "welcomeFiles".
- See Also:
- Constant Field Values
ResourceHandlerService
public ResourceHandlerService()
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 ResourceHandler
instance.
- Returns:
- the jetty
Handler
instance