You are comparing MediaType instance with String instance and that is always False.
You have to compare MediaType with MediaType, e.g.: mediaType.equals(MediaType.APPLICATION_JSON_TYPE) (note: there is also MediaType class in spring.http package that has constants of the same name but different type, so don't get confused) Or create your static final instance of MediaType that is loaded with your type and subtype if it is not available in MediaType as static final .. -- S pozdravom Ladislav Lenčucha [email protected] On Thu, Dec 20, 2012 at 9:08 AM, jbright <[email protected]> wrote: > MediaType
