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's best email. Get Yahoo!7 Mail!
http://au.yahoo.com/y7mail