if
Description
The "if" interceptor supports conditional execution of a group of executors.
Note that this is a draft implementation only: Design decissions are still pending.
- 'evaluate condition only once': Should the condition be reevaluated once response handling has begun?
- 'evaluate condition always during request handling already' (even when 'if' is nested in 'response')
-
What happens to ABORT handling of interceptor A in
<request><if test="..."><A /></if></response>
Can be used in
spring:beans, api, bean, if, interceptor, internalProxy, proxy, registration, request, response, serviceProxy, soapProxy, stompProxy, swaggerProxy, transport and wsStompReassembler
Attributes
Name |
Required |
Default |
Description |
Example |
language |
false |
- |
the language of the 'test' condition |
groovy |
test |
true |
- |
the condition to be tested |
exc.request.header.userAgentSupportsSNI |
Child Elements
Position |
Cardinality |
Description |
Element |
1 |
0..* |
|
accessControl, accountRegistration, acmeHttpChallenge, adminConsole, analyser, apiKeyChecker, apiManagement, authHead2Body, balancer, basicAuthentication, beautifier, cache, clamav, clusterNotification, counter, dispatching, exchangeStore, formValidation, gatekeeper, graphQLProtection, groovy, groovyTemplate, headerFilter, http2xml, httpClient, if, index, interceptor, javascript, json2Xml, jsonPointerExtractor, jsonProtection, jwtAuth, kubernetesValidation, limit, log, logContext, login, methodOverride, ntlm, oauth2PermissionChecker, oauth2Resource, oauth2Resource2, oauth2authserver, prometheus, rateLimiter, regExReplacer, request, response, rest2Soap, return, reverseProxying, rewriter, routerIpResolver, ruleMatching, setHeader, shutdown, soap2Rest, soapOperationExtractor, soapStackTraceFilter, spdy, statisticsCSV, statisticsJDBC, statisticsProvider, stompClient, swaggerApiKeyRequirer, swaggerRewriter, switch, tcp, template, testService, throttle, tokenValidator, transform, urlNormalizer, userFeature, validator, wadlRewriter, webServer, webServiceExplorer, webSocket, wsdlPublisher, wsdlRewriter, xenAuthentication, xml2Json, xmlContentFilter, xmlProtection, xpathExtractor or custom elements |