Go to new doc!

+49 228 5552576-0


info@predic8.com

headerFilter

Description

Removes message headers matching a list of patterns. The first matching child element will be acted upon by the filter.

Can be used in

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

Syntax

				<headerFilter>
					[<include>pattern</include> | <exclude>pattern</exclude>]...
				</headerFilter>
			
Listing 1: headerFilter Syntax

Sample

In the example, only headers starting with Content or the Location header will be kept; all others will be removed from requests and responses.

				<serviceProxy port="80">
					<headerFilter>
						<include>Content.*<include>
						<include>Location<include>
						<exclude>.*<exclude>
					</headerFilter>
					<target host="www.membrane-soa.org" />
				</serviceProxy>
			
Listing 2: rewriter Example

Child Elements

Position Cardinality Description Element
1 1..* List of actions to take (either allowing or removing HTTP headers). exclude or include