Interface CollectionResourceProvider

All Known Implementing Classes:
DropwizardMetricsCollectionResourceProvider, MemoryBackend

public interface CollectionResourceProvider
An implementation interface for resource providers which exposes a collection of resource instances. The resource collection supports the following operations:
  • action
  • create - with an optional client provided resource ID as part of the request itself
  • query
Whereas resource instances within the collection support the following operations:
  • action
  • delete
  • patch
  • read
  • update

NOTE: field filtering alters the structure of a JSON resource and MUST only be performed once while processing a request. It is therefore the responsibility of front-end implementations (e.g. HTTP listeners, Servlets, etc) to perform field filtering. Request handler and resource provider implementations SHOULD NOT filter fields, but MAY choose to optimise their processing in order to return a resource containing only the fields targeted by the field filters.