@GET public Entity getRoot() { return createEntityBuilder() .addLink(linkBuilder.forBooks(uriInfo, "books")) .addLink(linkBuilder.forShoppingCart(uriInfo, "shopping-cart")) .addLink(linkBuilder.forOrders(uriInfo, "orders")) .build(); }
public AvailablePluginCollectionRepresentation( Iterable<PluginVersion> pluginVersions, UpmUriBuilder uriBuilder, LinkBuilder linkBuilder, HostStatusRepresentation hostStatus) { super( linkBuilder.buildLinksFor(uriBuilder.buildAvailablePluginCollectionUri()).build(), pluginVersions, uriBuilder, hostStatus); }