1. Proxies and Flow

for

Iterates over a collection extracted from the {@code Exchange} and applies its nested interceptors for each element. The current element is exposed in the exchange under the property key {@code "it"}. Example configuration:
{@code
 <for in="message.headers['items']" language="jsonpath">
   
 </for>
 }

Can be used in:

serviceProxy, api, global, chainDef, for, stompProxy, if, registration, wsStompReassembler, internal, interceptor, chain, bean, transport and soapProxy

Attributes

NameRequiredDefaultDescriptionExample
in true - An expression that evaluates to a collection (e.g., a List). The interceptors nested within the element will be executed for each item in this collection. The current item is available in the exchange property named `it`.
`message.json.customers` (if language is the default "SpEL") or `/orders/order/
language false groovy
the language of the 'test' condition
SpEL, groovy, jsonpath, xpath

Child Elements

ElementsDescriptionCardinality
request 0..*
echo 0..*
response 0..*
abort 0..*

Other optional Child Elements

if, dispatching, soap2Rest, soapOperationExtractor, accessLog, setProperty, limit, xenAuthentication, accessControl, methodOverride, authHead2Body, openapiValidator, ruleMatching, wsdlPublisher, greaser, graphQLProtection, tokenValidator, webServer, ntlm, stompClient, statisticsCSV, oauth2PermissionChecker, shadowing, webSocket, adminApi, rateLimiter, testService, requireAuth, oauth2authserver, tcp, rest2Soap, validator, jsonProtection, call, logContext, clusterNotification, groovy, regExReplacer, jwtAuth, accountRegistration, oauth2Resource2, for, acmeHttpChallenge, internalRouting, setCookies, balancer, xmlProtection, http2xml, basicAuthentication, setHeader, statisticsJDBC, paddingHeader, template, prometheus, xmlContentFilter, cache, apiKey, wsdlRewriter, statisticsProvider, login, userFeature, return, choose, wadlRewriter, clamav, beautifier, index, kubernetesValidation, xml2Json, shutdown, groovyTemplate, headerFilter, reverseProxying, sampleSoapService, urlNormalizer, exchangeStore, idempotency, soapBody, javascript, rewriter, formValidation, chain, flowInitiator, static, apiDocs, openTelemetry, throttle, global, cors, replace, json2Xml, adminConsole, destination, APIsJSON, analyser, interceptor, webServiceExplorer, httpClient, log, counter, transform, jwtSign, openapiPublisher, soapStackTraceFilter