users@jersey.java.net

how to know the logged user in a method?

From: Felipe Gaścho <fgaucho_at_gmail.com>
Date: Thu, 14 Jan 2010 18:21:51 +0100

I have a method cto create an Atom entry:

        @POST
        @Consumes( { MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
        @Produces( { MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
        @Path("category")
        public EntryType update(EntryType entity) {
                return facade.create(entity);
        }

how do I get the logged user inside this method ? (for linking the
entry to the author...)


-- 
------------------------------------------
   Felipe Gaścho
   10+ Java Programmer
   CEJUG Senior Advisor