1. Proxies and Flow

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, global, chainDef, for, 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
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