Software AG Products 10.7 | Integrating On-Premises and Cloud Applications | Integration Server Built-In Services | Compress Folder | Summary of Elements in this Folder | pub.compress:compressData
 
pub.compress:compressData
WmPublic. Compresses the data before sending the HTTP request using any of the specified compression schemes.
Input Parameters
data
Document. Data that you want the pub.compress:compressData service to compress. Specify data using one of the following keys.
Important:
When you use more than one key, string is appended first, bytes is appended second, and stream is appended last and Integration Server uses the first key that it encounters.
Key
Description
string
String. Optional. Text that you want the pub.compress:compressData service to compress.
bytes
byte[ ]. Optional. Data that you want the pub.compress:compressData service to compress.
stream
java.io.InputStream. Optional. Data that you want the pub.compress:compressData service to compress.
compressionScheme
String. The compression method you want the pub.compress:compressData service to apply to compress the data. The supported compression schemes are gzip and deflate.
loadAs
String. Form in which you want the pub.compress:compressData service to store the output data. Set to:
*bytes to store the data as a byte[ ].
*stream to store the data as a java.io.InputStream.
Output Parameters
compressedData
Document. Compressed data after applying the compression scheme.
Key
Description
bytes
byte[ ]. Conditional. Compressed data represented as a byte[ ]. bytes is returned only when the loadAs input parameter is set to bytes.
stream
java.io.InputStream. Conditional. Compressed data represented as an InputStream. stream is returned only when the loadAs input parameter is set to stream.
Note:
This service just compresses the data; if you want to send the data as a payload in an HTTP request, you can send the data as input to pub.client:http service. For more information, see pub.client:http.