Go to new doc!

+49 228 5552576-0


info@predic8.com

interceptor

Description

Can be used in

spring:beans, api, bean, if, interceptor, internalProxy, proxy, registration, request, response, serviceProxy, soapProxy, stompProxy, swaggerProxy, transport and wsStompReassembler

Syntax

				<interceptor refid="string" name="string" />				
			
Listing 1: interceptor Syntax

Sample

Assume that an interceptor is definied as Spring bean.

				<spring:beans xmlns:spring="http://www.springframework.org/schema/beans" ...>
					...
					<spring:bean id="myInterceptor" class="com.predic8.MyInterceptor">
						<spring:property name="myProperty" value="value"/>
					</spring:bean>
				</spring:beans>
			
Listing 2: Custom Interceptor Defined in monitor-beans.xml

The following serviceProxy uses the interceptor element to reference the custom interceptor.

				<serviceProxy port="2000">
					<interceptor refid="myInterceptor" />				
				</serviceProxy>
			
Listing 3: ServiceProxy Referencing a Custom Interceptor from monitor-beans.xml

Attributes

Name Required Default Description Example
refid false - Spring bean id of the referenced interceptor. myInterceptor

Child Elements

Position Cardinality Description Element
1 0..1 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 or xpathExtractor

See Also

You can find a example how to create a custom interceptor in the examples/custom-interceptor directory in your Membrane distribution.