org.restlet.ext.osgi
Interface ResourceProvider
- All Superinterfaces:
- RestletProvider
- All Known Implementing Classes:
- BaseResourceProvider
public interface ResourceProvider
- extends RestletProvider
This is an OSGi service interface for registering Restlet resources with an
application. Users are expected to register an instance as an OSGi
service. It is recommended that you extend the BaseResourceProvider
implementation. You may provide your own implementation of ResourceProvider
if you need complete control. Resources are registered with an application
according to the application alias. If an application is not found that
corresponds to the specified alias, the resource will be cached until the
application is registered. If your resources are not being registered, check
there is not a typo in the alias in both the resource provider and
application provider.
It is recommended that you use or extend ResourceBuilder
- Author:
- Bryan Hunt, Wolfgang Werner
getPaths
String[] getPaths()
- Returns:
- the paths to the resource relative to the application alias. The
paths must start with '/'.
getMatchingMode
int getMatchingMode()
- Returns:
- the matching mode to be used for template routes. Defaults to Template.MODE_EQUALS.
Copyright © 2005-2014 Restlet.