Class EnricherSpec
java.lang.Object
org.springframework.integration.dsl.IntegrationComponentSpec<S,reactor.util.function.Tuple2<F,H>>
  
org.springframework.integration.dsl.EndpointSpec<S,ConsumerEndpointFactoryBean,H>
  
org.springframework.integration.dsl.ConsumerEndpointSpec<EnricherSpec,ContentEnricher>
 
org.springframework.integration.dsl.EnricherSpec
- All Implemented Interfaces:
- DisposableBean,- FactoryBean<reactor.util.function.Tuple2<ConsumerEndpointFactoryBean,,- ContentEnricher>> - InitializingBean,- Lifecycle,- Phased,- SmartLifecycle,- ComponentsRegistration
A 
ConsumerEndpointSpec extension for the ContentEnricher.- Since:
- 5.0
- Author:
- Artem Bilan, Tim Ysewyn, Ian Bondoc, Alexis Hafner
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final Map<String,HeaderValueMessageProcessor<?>> protected final Map<String,Expression> Fields inherited from class org.springframework.integration.dsl.ConsumerEndpointSpecadviceChainFields inherited from class org.springframework.integration.dsl.EndpointSpeccomponentsToRegister, endpointFactoryBean, handlerFields inherited from class org.springframework.integration.dsl.IntegrationComponentSpeclogger, PARSER, targetFields inherited from interface org.springframework.beans.factory.FactoryBeanOBJECT_TYPE_ATTRIBUTEFields inherited from interface org.springframework.context.SmartLifecycleDEFAULT_PHASE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected reactor.util.function.Tuple2<ConsumerEndpointFactoryBean,ContentEnricher> doGet()errorChannel(String errorChannel) errorChannel(MessageChannel errorChannel) <V> EnricherSpecheader(String headerName, HeaderValueMessageProcessor<V> headerValueMessageProcessor) Set a header value using an explicitHeaderValueMessageProcessor.<V> EnricherSpecSet a header with the value if it is not already present.headerExpression(String name, String expression) Set a header with the expression evaluation if the header is not already present.headerExpression(String name, String expression, Boolean overwrite) <P> EnricherSpecheaderFunction(String name, Function<Message<P>, Object> function) Set a header with the function return value if the header is not already present.<P> EnricherSpecpropertyExpression(String key, String expression) <P> EnricherSpecpropertyFunction(String key, Function<Message<P>, Object> function) replyChannel(String replyChannel) replyChannel(MessageChannel replyChannel) replyTimeout(Long replyTimeout) requestChannel(String requestChannel) requestChannel(MessageChannel requestChannel) <P> EnricherSpecrequestPayload(Function<Message<P>, ?> requestPayloadFunction) requestPayloadExpression(String requestPayloadExpression) requestSubFlow(IntegrationFlow subFlow) The request sub-flow.requestTimeout(Long requestTimeout) shouldClonePayload(boolean shouldClonePayload) Methods inherited from class org.springframework.integration.dsl.ConsumerEndpointSpecadvice, async, autoStartup, customizeMonoReply, handleMessageAdvice, notPropagatedHeaders, order, phase, poller, reactive, reactive, requiresReply, role, sendTimeout, taskScheduler, transactional, transactional, transactional, transactional, transactionalMethods inherited from class org.springframework.integration.dsl.EndpointSpecassertHandler, getComponentsToRegister, id, obtainInputChannelFromFlow, obtainInputChannelFromFlow, poller, pollerMethods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec_this, afterPropertiesSet, destroy, getId, getObject, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stopMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.FactoryBeanisSingleton
- 
Field Details- 
propertyExpressions
- 
headerExpressions
 
- 
- 
Constructor Details- 
EnricherSpecprotected EnricherSpec()
 
- 
- 
Method Details- 
requestChannel- Parameters:
- requestChannel- the request channel.
- Returns:
- the enricher spec.
- See Also:
 
- 
requestChannel- Parameters:
- requestChannel- the request channel.
- Returns:
- the enricher spec.
- See Also:
 
- 
replyChannel- Parameters:
- replyChannel- the reply channel.
- Returns:
- the enricher spec.
- See Also:
 
- 
replyChannel- Parameters:
- replyChannel- the reply channel.
- Returns:
- the enricher spec.
- See Also:
 
- 
errorChannel- Parameters:
- errorChannel- the error channel.
- Returns:
- the enricher spec.
- Since:
- 5.0.1
- See Also:
 
- 
errorChannel- Parameters:
- errorChannel- the name of the error channel bean.
- Returns:
- the enricher spec.
- Since:
- 5.0.1
- See Also:
 
- 
requestTimeout- Parameters:
- requestTimeout- the requestTimeout
- Returns:
- the enricher spec.
- See Also:
 
- 
replyTimeout- Parameters:
- replyTimeout- the replyTimeout
- Returns:
- the enricher spec.
- See Also:
 
- 
requestPayloadExpression- Parameters:
- requestPayloadExpression- the requestPayloadExpression.
- Returns:
- the enricher spec.
- See Also:
 
- 
requestPayload- Type Parameters:
- P- the payload type.
- Parameters:
- requestPayloadFunction- the requestPayloadFunction.
- Returns:
- the enricher spec.
- See Also:
 
- 
requestSubFlowThe request sub-flow.- Parameters:
- subFlow- the subFlowDefinition
- Returns:
- the enricher spec
 
- 
shouldClonePayload- Parameters:
- shouldClonePayload- the shouldClonePayload.
- Returns:
- the enricher spec.
- See Also:
 
- 
property- Parameters:
- key- the key.
- value- the value.
- Returns:
- the enricher spec.
- See Also:
 
- 
propertyExpression- Parameters:
- key- the key.
- expression- the expression.
- Returns:
- the enricher spec.
- See Also:
 
- 
propertyFunction- Type Parameters:
- P- the payload type.
- Parameters:
- key- the key.
- function- the function (usually a JDK8 lambda).
- Returns:
- the enricher spec.
- See Also:
 
- 
headerSet a header with the value if it is not already present.- Type Parameters:
- V- the value type.
- Parameters:
- name- the header name.
- value- the value.
- Returns:
- the enricher spec.
- See Also:
 
- 
header- Parameters:
- name- the header name.
- value- the value.
- overwrite- true to overwrite the header if already present.
- Returns:
- the enricher spec.
- See Also:
 
- 
headerExpressionSet a header with the expression evaluation if the header is not already present.- Parameters:
- name- the header name.
- expression- the expression to be evaluated against the reply message to obtain the value.
- Returns:
- the enricher spec.
- See Also:
 
- 
headerExpression- Parameters:
- name- the header name.
- expression- the expression to be evaluated against the reply message to obtain the value.
- overwrite- true to overwrite the header if already present.
- Returns:
- the enricher spec.
- See Also:
 
- 
headerFunctionSet a header with the function return value if the header is not already present.- Type Parameters:
- P- the payload type.
- Parameters:
- name- the header name.
- function- the function (usually a JDK8 lambda).
- Returns:
- the enricher spec.
- See Also:
 
- 
headerFunctionpublic <P> EnricherSpec headerFunction(String name, Function<Message<P>, Object> function, @Nullable Boolean overwrite) - Type Parameters:
- P- the payload type.
- Parameters:
- name- the header name.
- function- the function (usually a JDK8 lambda).
- overwrite- true to overwrite the header if already present.
- Returns:
- the enricher spec.
- See Also:
 
- 
headerpublic <V> EnricherSpec header(String headerName, HeaderValueMessageProcessor<V> headerValueMessageProcessor) Set a header value using an explicitHeaderValueMessageProcessor.- Type Parameters:
- V- the value type.
- Parameters:
- headerName- the header name.
- headerValueMessageProcessor- the headerValueMessageProcessor.
- Returns:
- the enricher spec.
- See Also:
 
- 
doGet- Overrides:
- doGetin class- ConsumerEndpointSpec<EnricherSpec,- ContentEnricher> 
 
 
-