|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.twenty11.skysail.server.listener.UrlMappingServiceListener
public class UrlMappingServiceListener
A service listener which takes care of UrlMapper related services. A UrlMapper provides a Map between a path (like "/components") and a class name. An instance of that class then is expected to "take care" of requests to the path. The UrlMapper needs the osgi bundle context and a RestletOsgiApplication objects the router of which will be updated accordingly in case of matching service events. The constructor of this ServiceListener makes sure to add itself to the bundle context with the appropriate filter.
| Constructor Summary | |
|---|---|
UrlMappingServiceListener(org.osgi.framework.BundleContext context,
RestletOsgiApplication restletApp)
Constructor which needs the bundleContext and the RestletOsgiApplication. |
|
UrlMappingServiceListener(org.osgi.framework.BundleContext context,
RestletOsgiApplication restletApp,
boolean addBundleName)
Constructor which needs the bundleContext and the RestletOsgiApplication. |
|
UrlMappingServiceListener(RestletOsgiApplication restletApp)
|
|
| Method Summary | |
|---|---|
Set<String> |
getMappings()
|
void |
serviceChanged(org.osgi.framework.ServiceEvent event)
This method adds, removes or modifies the URL mappings of the applications router according to the service events fired. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UrlMappingServiceListener(RestletOsgiApplication restletApp)
public UrlMappingServiceListener(org.osgi.framework.BundleContext context,
RestletOsgiApplication restletApp)
context - the osgi bundle contextrestletApp - the restletOsgiApplication
public UrlMappingServiceListener(org.osgi.framework.BundleContext context,
RestletOsgiApplication restletApp,
boolean addBundleName)
context - the osgi bundle contextrestletApp - the restletOsgiApplication| Method Detail |
|---|
public final void serviceChanged(org.osgi.framework.ServiceEvent event)
serviceChanged in interface org.osgi.framework.ServiceListenerevent - the serviceEventpublic Set<String> getMappings()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||