org.qi4j.library.rest.server.api
Interface SubResources


public interface SubResources

Resources that have a collection of sub-resources should extends this interface.


Method Summary
 void resource(java.lang.String segment)
          Instantiate the sub-resource, perform any RoleMap bindings based on the given segment, and then call handle(Request,Response) on the subresource.
 

Method Detail

resource

void resource(java.lang.String segment)
              throws org.restlet.resource.ResourceException
Instantiate the sub-resource, perform any RoleMap bindings based on the given segment, and then call handle(Request,Response) on the subresource.

Parameters:
segment - the current segment that the sub-resource will correspond to
Throws:
org.restlet.resource.ResourceException - if the subresource could not be lookup up, typically a 404