Go to new doc!

+49 228 5552576-0


info@predic8.com

map

Description

Can be used in

bean and rewriter

Syntax

				<map from="string" to="string" do="string?" />
			
Listing 1: mapping Syntax

Sample

				<serviceProxy port="2000">
					<request >
						<rewriter>
							<map from="^/bank/(.*)" to="/axis2/$1" />
							<map from="^/search/(.*)" to="http://www.example.com/search?q=$1" do="redirect" />
						</rewriter>
					</request>
				</serviceProxy>						
			
Listing 2: mapping Example

Attributes

Name Required Default Description Example
do false rewrite (default) or redirect (if "to" contains "://") What to do: "rewrite", "redirect-temporary" or "redirect-permanent". redirect-temporary
from true - Java Regular expression ^/bank/(.*)
to true - Replacement string. Can contain references to matching groups. /axis2/$1