users@jersey.java.net

[Jersey] Injecting MultivaluedMap<String, String> with form data in @Provider

From: Martynas Jusevicius <martynas_at_graphity.org>
Date: Sun, 18 Mar 2012 16:11:45 +0100

Hey list,

I'm implementing a MessageBodyReader to read form data from POST request:

@Provider
@Consumes(MediaType.APPLICATION_FORM_URLENCODED)
public class RDFPostReader implements MessageBodyReader<Model>

However, the processing would be much easier if I already had
MultivaluedMap<String, String> with form's keys/values at hand. Is it
possible to inject/access the map within the Provider somehow?

Thanks,

Martynas
graphity.org