How to disable JaxRSFeature.READ_FULL_STREAM?
Ref to https://github.com/eclipse-ee4j/jersey/commit/e79aa535afe6f2c9fb7b0a39e4d0cc02d198c99a#diff-2ef29e24080600307e208ebcf3399be243501ea767e94224d4923f1f95828eaeR489-R491
In Jesey 2.41, JaxRSFeature.READ_FULL_STREAM is set to true by default. Due to this change, we have an interoperability problem that we cannot fix or avoid. So we want to disable this feature by default. How can we disable this feature? I googled a lot, but I cannot find a solution... We don't register any sub ProviderBase classes manually to ResourceConfig.
Thank you.
Please understand that JaxRSFeature class is Jackson class, which Jersey merely repackages. The proper way of configuring Jackson should be on the Jackson documentation page.
However...
The Jackson providers do contain enable() and disable() methods that are used to set the properties in JaxRSFeature.
So you should be able for instance to register the instance of Jackson providers (JacksonJaxbJsonProvider, JacksonJsonProvider) that have the disable() method set in Jersey.
@hkawa608
Have you tried:
.property(ClientProperties.REQUEST_ENTITY_PROCESSING, RequestEntityProcessing.CHUNKED)