Class HeaderFilter
java.lang.Object
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.transformer.HeaderFilter
- All Implemented Interfaces:
Aware
,BeanFactoryAware
,BeanNameAware
,InitializingBean
,ApplicationContextAware
,ExpressionCapable
,GenericTransformer<Message<?>,
,Message<?>> IntegrationPattern
,NamedComponent
,Transformer
public class HeaderFilter
extends IntegrationObjectSupport
implements Transformer, IntegrationPattern
Transformer that removes Message headers.
- Since:
- 2.0
- Author:
- Mark Fisher, Oleg Zhurakousky, Gary Russell, Artem Bilan
-
Field Summary
Fields inherited from class org.springframework.integration.context.IntegrationObjectSupport
EXPRESSION_PARSER, logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSubclasses may implement this method to provide component type information.Return a pattern type this component implements.protected void
onInit()
Subclasses may implement this for initialization logic.final void
setHeadersToRemove
(String... headersToRemove) Set a list of header names (or patterns) to remove from a request message.void
setPatternMatch
(boolean patternMatch) Message<?>
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport
afterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentName, getConversionService, getExpression, getIntegrationProperties, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toString
-
Constructor Details
-
HeaderFilter
public HeaderFilter()Create an instance of the class. ThesetHeadersToRemove(java.lang.String...)
must be called afterwards.- Since:
- 6.2
-
HeaderFilter
-
-
Method Details
-
setHeadersToRemove
Set a list of header names (or patterns) to remove from a request message.- Parameters:
headersToRemove
- the list of header names (or patterns) to remove from a request message.- Since:
- 6.2
-
setPatternMatch
public void setPatternMatch(boolean patternMatch) -
getComponentType
Description copied from class:IntegrationObjectSupport
Subclasses may implement this method to provide component type information.- Specified by:
getComponentType
in interfaceNamedComponent
- Overrides:
getComponentType
in classIntegrationObjectSupport
-
getIntegrationPatternType
Description copied from interface:IntegrationPattern
Return a pattern type this component implements.- Specified by:
getIntegrationPatternType
in interfaceIntegrationPattern
- Returns:
- the
IntegrationPatternType
this component implements.
-
onInit
protected void onInit()Description copied from class:IntegrationObjectSupport
Subclasses may implement this for initialization logic.- Overrides:
onInit
in classIntegrationObjectSupport
-
transform
- Specified by:
transform
in interfaceGenericTransformer<Message<?>,
Message<?>> - Specified by:
transform
in interfaceTransformer
-