users@jersey.java.net

[Jersey] Setting default content types for request

From: Todd Nine <tnine_at_apigee.com>
Date: Tue, 19 Jun 2012 12:16:47 -0700

Hi all,
  We're using Jersey in conjunction with the Spring framework. We've configured the following options for our spring servlet. You can view the source here.


https://github.com/usergrid/stack/blob/master/rest/src/main/webapp/WEB-INF/web.xml#L80



We primarily deal with json data as our main Content-Type. Is it possible to configure the Spring Servlet to set the content type to json if no content type is present in the request header?

Thanks,

Todd