Class UnZipTransformer
java.lang.Object
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.transformer.AbstractTransformer
org.springframework.integration.zip.transformer.AbstractZipTransformer
org.springframework.integration.zip.transformer.UnZipTransformer
- All Implemented Interfaces:
Aware
,BeanFactoryAware
,BeanNameAware
,InitializingBean
,ApplicationContextAware
,ComponentSourceAware
,ExpressionCapable
,GenericTransformer<Message<?>,
,Message<?>> NamedComponent
,Transformer
Transformer implementation that applies an UnZip transformation to the message
payload.
- Since:
- 6.1
- Author:
- Gunnar Hillert, Artem Bilan, Ingo Dueppe, Ngoc Nhan
-
Field Summary
Fields inherited from class org.springframework.integration.zip.transformer.AbstractZipTransformer
charset, deleteFiles, workDirectory, zipResultType
Fields inherited from class org.springframework.integration.context.IntegrationObjectSupport
EXPRESSION_PARSER, logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Object
doZipTransform
(Message<?> message) Subclasses must implement this method to provide the Zip transformation logic.void
setExpectSingleResult
(boolean expectSingleResult) This parameter indicates that only one result object shall be returned as a result from the executed Unzip operation.Methods inherited from class org.springframework.integration.zip.transformer.AbstractZipTransformer
doTransform, onInit, setDeleteFiles, setWorkDirectory, setZipResultType
Methods inherited from class org.springframework.integration.transformer.AbstractTransformer
transform
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport
afterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentDescription, getComponentName, getComponentSource, getComponentType, getConversionService, getExpression, getIntegrationProperties, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentDescription, setComponentName, setComponentSource, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toString
-
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 totrue
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 andexpectSingleResult
istrue
, then aMessagingException
is thrown. If set tofalse
, the complete result list is returned as the payload. This is thedefault
.- Parameters:
expectSingleResult
- If not set explicitly, will default to false
-
doZipTransform
Description copied from class:AbstractZipTransformer
Subclasses must implement this method to provide the Zip transformation logic.- Specified by:
doZipTransform
in classAbstractZipTransformer
- Parameters:
message
- The message will never be null.- Returns:
- The result of the Zip transformation.
-