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<S>
.ActionRouter
instead@ConsumerType
@Deprecated
public interface ItemRouter<T,S,U extends Identifier<S>>
The type parameter provided for the resource ID must be unique in the application.
You can add the different supported routes for the item resource via the
itemRoutes(ItemRoutes.Builder)
method.
The union of an instance of this interface with a Representable
creates a complete
resource that behaves as its own API.
Modifier and Type | Method and Description |
---|---|
ItemRoutes<T,S> |
itemRoutes(ItemRoutes.Builder<T,S> builder)
Deprecated.
As of 1.9.0, use
ActionRouter instead |
@Deprecated ItemRoutes<T,S> itemRoutes(ItemRoutes.Builder<T,S> builder)
ActionRouter
insteadItemRoutes
supported by the item resource. Use the
provided routes builder to create the ItemRoutes
instance.builder
- the routes builder to use to create the ItemRoutes
instanceItemRoutes.Builder