Package ubic.gemma.rest.annotations
Annotation Type GZIP
-
@Documented @Retention(RUNTIME) @Target(METHOD) public @interface 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.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description boolean
alreadyCompressed
Indicate that the payload is already compressed.String[]
mediaTypes
If non-empty, only contents compatible with any of the specified media type will be compressed.
-
-
-
Element Detail
-
mediaTypes
String[] mediaTypes
If non-empty, only contents compatible with any of the specified media type will be compressed.- See Also:
MediaType.isCompatible(MediaType)
- Default:
- {}
-
-