Go to new doc!

+49 228 5552576-0


info@predic8.com

transport

Description

The transport receives messages from clients and invokes interceptors in the request and response flow. The interceptors that are engaged with the transport are global and are invoked for each message flowing through the router.

Can be used in

spring:beans, bean and router

Syntax

				<transport coreThreadPoolSize="integer"
							  socketTimeout="integer"
							  tcpNoDelay="[true,false]"
							  httpClientRetries="integer"
							  autoContinue100Expected="[true,false]"
							  printStackTrace="[true,false]">
					<interceptors>
						[interceptors]*
					</interceptors>
				</transport>
			
Listing 1: transport Syntax

Sample

				<beans>
					<transport coreThreadPoolSize="20">
						<ruleMatching />
						<dispatching />
						<userFeature />
						
						<transform xslt="strip.xslt" />
						<wsdlRewriter />
						
						<httpClient />
					</transport>
				</beans>
			
Listing 2: transport Example

Attributes

Name Required Default Description Example
concurrentConnectionLimitPerIp false -1 No Limit Limits the number of concurrent connections from one ip
coreThreadPoolSize false 20

Membrane uses a thread pool to allocate threads to incomming clients connections. The core thread pool size is the minimum number of threads that are created in advance to serve client requests.

5
forceSocketCloseOnHotDeployAfter false 30000 When proxies.xml is changed and <router hotDeploy="true">, the Spring Context is automatically refreshed, which restarts the {@link Router} object (=Membrane Service Proxy). Before the context refresh, all open socket connections have to be closed. Exchange objects which are still running might delay this process. Setting forceSocketCloseOnHotDeployAfter to a non-zero number of milliseconds forces connections to be closed after this time.
maxThreadPoolSize false no limit Maximum number of threads to handle incoming connections. (Membrane uses 1 thread per incoming connection.) 300
printStackTrace false false Whether the stack traces of exceptions thrown by interceptors should be returned in the HTTP response.
reverseDNS false true Whether the remote address should automatically reverse-looked up for incoming connections.
socketTimeout false 30000 Socket timout in ms.
tcpNoDelay false true Whether to use the "TCP no delay" option. (=A TCP/IP packet should be constructed as soon as any data has been written to the network buffer. With "TCP no delay" set to false, the network hardware waits a short period of time wether the software will write more data. When the packet constructed from the data in the buffer would exceed the MTU in size, the packet is always constructed and sent immediately.)

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