I have a jersey client with which I am trying to disconnect a response object. The problem is that the remote web service sends the application / octet stream back as the content type, so Jersey doesn't know how to deploy it (I have similar errors with text / html returning for XML, etc.) . I cannot change the web service.
What I want to do is redefine the content type and change it to application / json so that the jersey knows which marshaller to use.
I cannot register an application / octet stream with a json marshaller, since for a certain type of content I really could return all kinds of oddities.
json rest jersey
monkjack Jul 18 2018-11-11T00: 00Z
source share