users@jersey.java.net

REST service returning Map collection

From: Saavedra, Gisella <gsaavedra_at_zebra.com>
Date: Fri, 25 Sep 2009 09:54:34 -0700

 

Can somebody point me to an example or article, if it exists, containing
a code snippet returning a Map collection, something like

@GET

@Produces({"application/xml"})

public Map<String, String> getAttributes(...) { }

 

 

just receiving a Map object at the client side, or returning an object
that contains the Map?

No JSON.

 

I will appreciate it.


Thanks.

 

Gisella Saavedra
Sr. Software Engineer
gsaavedra_at_zebra.com <mailto:gsaavedra_at_zebra.com>

        
 

1000 Broadway, Suite 150, Oakland, CA 94607 | T+1 510 267 5123 T
Main+1 510 267 5000 F+1 510 267 5100 | http://www.zebra.com/zes
<http://www.zebra.com/zes>



        

 

 






image001.gif
(image/gif attachment: image001.gif)