DescriptionThis patch is related to JIRA bug (SHINDIG-1515) Why shindig uses "Content-Type" not "Accept" to determine the return info type.
Currently the REST servlet, DataServiceServlet, uses the same converted to process request payload to also process the response content-type and body.
This CR contains changes to separate the logic to get the BeanConverter for request and response, and also fix to the unit test cases.
For response, it will simply check the "format" request parameter and defaulted to JSON if not specified as defined in the OpenSocial Core Server API spec 1.1.
We could add logic to check Accept header for response if needed.
Patch Set 1 #Patch Set 2 : remove line to set Accept header to null in unit test #Patch Set 3 : Remove check for Accept header #Patch Set 4 : change modifier for the methods #Patch Set 5 : simplify the code to make override easier and remove duplicate lines #Patch Set 6 : remove unneeded static string #Patch Set 7 : rename internal variable names #Patch Set 8 : some cleanup #
Total comments: 6
MessagesTotal messages: 3
|
||||||||||||||||||||||||||||||||||||||||||||||