Class UnZipTransformer

All Implemented Interfaces:
Aware, BeanFactoryAware, BeanNameAware, InitializingBean, ApplicationContextAware, ExpressionCapable, GenericTransformer<Message<?>,Message<?>>, NamedComponent, Transformer

public class UnZipTransformer extends AbstractZipTransformer
Transformer implementation that applies an UnZip transformation to the message payload.
Since:
6.1
Author:
Gunnar Hillert, Artem Bilan, Ingo Dueppe
  • Constructor Details

    • UnZipTransformer

      public UnZipTransformer()
  • Method Details

    • setExpectSingleResult

      public void setExpectSingleResult(boolean expectSingleResult)
      This parameter indicates that only one result object shall be returned as a result from the executed Unzip operation. If set to true and more than 1 element is returned, then that 1 element is extracted and returned as payload. If the result map contains more than 1 element and expectSingleResult is true, then a MessagingException is thrown. If set to false, the complete result list is returned as the payload. This is the default.
      Parameters:
      expectSingleResult - If not set explicitly, will default to false
    • doZipTransform

      protected Object doZipTransform(Message<?> message)
      Description copied from class: AbstractZipTransformer
      Subclasses must implement this method to provide the Zip transformation logic.
      Specified by:
      doZipTransform in class AbstractZipTransformer
      Parameters:
      message - The message will never be null.
      Returns:
      The result of the Zip transformation.