String is a good choice but consider whether you really need such a
fine-grained resource hierarchy.
Marc.
On May 1, 2009, at 4:40 AM, Felipe Gaścho wrote:
> when I want to return Java primitive types, what is the best media
> type ? or other response type ?
>
> like:
>
> @GET
> @Produces( { MediaType.TEXT_PLAIN })
> @Path("/count")
> public String count() {
> return Long.toString(userFacade.count());
> }
>
> --
>
> Please help to test this application:
> http://fgaucho.dyndns.org:8080/cejug-classifieds-richfaces
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>