Some overloaded call request methods, such as: get()
and post(Entity<?> entity)
(there are others) of SyncInvoker
return a Response
object, rather than the unmarshalled content.
I noticed that in the case of get()
, there is no documented ResponseProcessingException
, while other methods, such as all 3 overloaded post
methods, may throw a ResponseProcessingException
.
I'm aware that ResponseProcessingException
is a RuntimeException
which inherits from ProcessingException
, but I still would interpret this to mean that the get()
method won't throw a ResponseProcessingException
.
Is this correct? What about ClientResponseFilter
? Why is the behavior different than the behavior of the other call request methods (put
, post
,..)?
Also, the Javadoc for the methods which do throw a ResponseProcessingException
says:
in case processing of a received HTTP response fails (e.g. in a filter or during conversion of the response entity data to an instance of a particular Java type).
The part:
or during conversion of the response entity data to an instance of a particular Java type
seems to be wrong here, as the readEntity
method should not yet have been called:
https://jersey.java.net/documentation/latest/filters-and-interceptors.html#d0e9915
Is this a copy & paste documentation error?
I guess a filter would be a valid case, though.