Annotation Type GZIP
Used to annotate endpoints that will have their payload compressed with gzip unconditionally.
Note that using this annotation will disregard any form of content encoding negotiation for the endpoint. This should only be used on endpoints that produce significant payloads.
- See Also:
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanIndicate that the payload is already compressed.String[]If non-empty, only contents compatible with any of the specified media type will be compressed.
-
Element Details
-
mediaTypes
String[] mediaTypesIf non-empty, only contents compatible with any of the specified media type will be compressed.- See Also:
- Default:
{}
-
alreadyCompressed
boolean alreadyCompressedIndicate that the payload is already compressed.When that is the case, the decorator should only append a
Content-Encoding: gzipheader, but not alter the entity.- Default:
false
-