+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, proxy, registration, request, response, serviceProxy, soapProxy, stompProxy, swaggerProxy and transport

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

Copyright © 2008-2017 predic8 GmbH
Koblenzerstr. 65, 53173 Bonn, Tel. +49 (228) 555 25 76-0