if

The "if" interceptor supports conditional execution of nested plugins.

See: - com.predic8.membrane.core.interceptor.flow.IfInterceptorSpELTest - com.predic8.membrane.core.interceptor.flow.IfInterceptorGroovyTest - com.predic8.membrane.core.interceptor.flow.IfInterceptorJsonpathTest - com.predic8.membrane.core.interceptor.flow.IfInterceptorXPathTest

Can be used in:

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

Attributes

NameRequiredDefaultDescriptionExample
test true - the condition to be tested
exc.request.header.userAgentSupportsSNI
language false groovy
the language of the 'test' condition
SpEL, groovy, jsonpath, xpath

Child Elements

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

Other optional Child Elements

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