apiaryio/language-templates — pull request #26 by IGZnestorpina (2014-11-21 13:51:26+00:00)
Title: Improve java template

After seeing it online I found some errors.

However, I don't understand some things, I don't know if this is the better place to discuss them.

Url Params are replaced in curl template, but not in java template. And I don't see why. The code in the template is the same.
I see the template is different from what it's on github as the request have : "MediaType.APPLICATION_JSON_TYPE"

It should be without the quotes, and depending on the content-type, it can be MediaType.APPLICATION_JSON_TYPE or MediaType.APPLICATION_XML_TYPE or MediaType.APPLICATION_FORM_URLENCODED.. etc with all the possible media types. I put there the actual content-type string specified in apiary and if it's a valid content-type it should work, the MediaType variables are just constants for that media type strings.