Class PlanetsResourceProvider


  • public class PlanetsResourceProvider
    extends org.apache.sling.spi.resource.provider.ResourceProvider<PlanetsResourceProvider.DoesNotNeedAContext>
    Test/example ResourceProvider that provides info about the Solar System's planets at /planets. Use /planets.tidy.-1.json to GET the whole thing. This uses the new (February 2016) spi.ResourceProvider base class. If you need an example based on the old ResourceProvider interface, see this code at svn revision 1727946.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  PlanetsResourceProvider.DoesNotNeedAContext
      If this provider required a context this would be more elaborate, but for this simple example we don't need one.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String ROOT
      This can be configurable of course
      • Fields inherited from class org.apache.sling.spi.resource.provider.ResourceProvider

        AUTH_ADMIN, AUTH_CLONE, AUTH_SERVICE_BUNDLE, AUTHENTICATE_LAZY, AUTHENTICATE_NO, AUTHENTICATE_REQUIRED, PROPERTY_ADAPTABLE, PROPERTY_ATTRIBUTABLE, PROPERTY_AUTHENTICATE, PROPERTY_MODIFIABLE, PROPERTY_NAME, PROPERTY_REFRESHABLE, PROPERTY_ROOT, PROPERTY_USE_RESOURCE_ACCESS_SECURITY, RESOURCE_TYPE_SYNTHETIC