users@jersey.java.net

primitive types - best response format ??

From: Felipe Gaúcho <fgaucho_at_gmail.com>
Date: Fri, 1 May 2009 10:40:54 +0200

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