Start of Content Area

Function documentation PayloadZipBean  Locate the document in its SAP Library structure

Use

You use this module to compress one or more payloads or extract payloads from a compressed file.

Integration

You can use the module in any adapter that can be extended.

Prerequisites

You have configured a communication channel and are on the Module tab page in change mode.

Activities

Entries in the Processing Sequence

      Enter the module name AF_Modules/PayloadZipBean before the module name of the adapter.

For information about where to insert the module, see: Extending the Module Chain in the Module Processor

      The Module Type is Local Enterprise Bean.

      The system proposes a Module Key.

Entries in the Module Configuration

      zip.mode

Specify the processing mode:

       To compress the main payload, select zip or zipOne.

       To compress all payloads, use zipALL.

       To decompress the main payload, use unzip.

      zip.filenameKey

This parameter is only relevant for compressing.

Specify the information to be used to generate the file name of the compressed file:

       payloadName

The name of the payload is used as the file name for the compressed file.

This is the default value.

       contentType

For example, the content type is Content-Type: text/plain; name="name.txt".

The name of the compressed file is name.zip.

       contentDescription

       contentDisposition

Example

If, for example, you want to compress all payloads into one file, and use the name specified under content type as the name of the compressed file, make the following entries:

Parameter Name

Parameter Value

zip.Mode

zipAll

zip.filenameKey

contentType

 

 

 

End of Content Area