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, for, choose, stompProxy, if, registration, wsStompReassembler, internal, interceptor, 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

Other optional Child Elements


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