@Singleton @Path(value="remote/destination") @Produces(value="application/json") public class DestinationResource extends Object
| Constructor and Description |
|---|
DestinationResource() |
| Modifier and Type | Method and Description |
|---|---|
List<Destination> |
recommended(String user,
int limit) |
List<Destination> |
visited(String user) |
@GET @ManagedAsync @Path(value="visited") public List<Destination> visited(@HeaderParam(value="Rx-User") @DefaultValue(value="KO") String user)
@GET @ManagedAsync @Path(value="recommended") public List<Destination> recommended(@HeaderParam(value="Rx-User") @DefaultValue(value="KO") String user, @QueryParam(value="limit") @DefaultValue(value="5") int limit)
Copyright © 2007-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.