users@jersey.java.net

MultivaluedMap

From: alex hendry <al_hendry_at_yahoo.com.au>
Date: Thu, 9 Oct 2008 21:18:55 -0700 (PDT)

Hi all, I am using Jersey to create some web services. I have a class that implements MessageBodyWriter and I need to create a multivaluedMap so I can add a header as follows to pass to the writeTo method. MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders httpHeaders.add("Content-Disposition", "attachment; filename=test.xml"); How ever in the api under multivaluedMap there is nothing listed that implements multivaluedMap that I can instantiate. I have looked at the UriInfo class getPathParameterc method and the HttpHeaders getRequestHeaders methodthat return a MultivaluedMap but I am unsure of how to use them. Any help would be much appreciated. Cheers, Alex Make the switch to the world&#39;s best email. Get Yahoo!7 Mail! http://au.yahoo.com/y7mail