I want to do something like this:
@Stateless @Path("/sensors/{sensorid}/version") @Consumes({MediaType.APPLICATION_XML, MediaType.TEXT_XML}) @Produces({MediaType.APPLICATION_XML, MediaType.TEXT_XML}) public class SensorVersionRestView extends VersionRestView{ @PathParam("sensorid") private String sensorid; @GET @Path("count")
But the only thing I get is null at runtime (I use Glassfish v3 with Jersey). The compiler and eclipse never mention the problem with @PathParam in a member class variable.
What happened to my design?
The main problem is why I donβt want to use all the way for each method in this class, that there is another class that handles some rest operations at the touch level (deomain.com/rs/sensors/count that is)
gerry source share