Hi Takenori,
the Encoder has two attributes : a list of accepted media-types for
compression, and a list of ignored data types. If the latter contains
the media-type of your representation then no compression occurs. By
default, this list contains the following media types which should be
sufficient for you:
- MediaType.APPLICATION_CAB, MediaType.APPLICATION_GNU_ZIP,
MediaType.APPLICATION_ZIP, MediaType.APPLICATION_GNU_TAR,
MediaType.APPLICATION_JAVA_ARCHIVE, MediaType.APPLICATION_STUFFIT,
MediaType.APPLICATION_TAR, MediaType.AUDIO_ALL, MediaType.IMAGE_ALL,
MediaType.VIDEO_ALL
best regards,
Thierry Boileau
Hi Thierry,
Thanks for the direction.
I'm not 100% sure, but Encoder is for uncompressed representation, correct?
Then, it transforms it into an appropriate one transparently.
I appreciate the feature.
But that means, a compression happens every time.
So I wonder if the JSON content is already gzipped as a file,
it can be passed without compression overhead.
The media type is known, JSON.
Is such a thing possible? or does make sense?
Best,
Takenori