T
- the model's typeS
- the type of the model's identifier (e.g., Long
,
String
, etc.)U
- the type of the resource's identifier. It must be a subclass
of Identifier
.ActionRouter
instead@ConsumerType
@Deprecated
public interface CollectionRouter<T,S,U extends Identifier<S>>
You can add the different routes supported for the collection resource via
the collectionRoutes(CollectionRoutes.Builder)
method.
The union of an instance of this interface with a Representable
creates a complete
resource that behaves as its own API.
CollectionRoutes.Builder
Modifier and Type | Method and Description |
---|---|
CollectionRoutes<T,S> |
collectionRoutes(CollectionRoutes.Builder<T,S> builder)
Deprecated.
As of 1.9.0, use
ActionRouter instead |
@Deprecated CollectionRoutes<T,S> collectionRoutes(CollectionRoutes.Builder<T,S> builder)
ActionRouter
insteadCollectionRoutes
supported by the collection
resource. Use the provided routes builder to create the CollectionRoutes
instance.builder
- the routes builder to use to create the CollectionRoutes
instanceCollectionRoutes.Builder