XML Rule

This Bloomreach Experience Manager feature requires a standard or premium license. Please contact Bloomreach for more information.

Overview

This type of rule will present you with a text field in which you can put the XML that the underlying software (Paul Tuckey's Url Rewrite Filter) understands. See https://tuckey.org/urlrewrite/manual/4.0/index.html for the documentation.

Advanced settings for type 'proxy'

Drop cookies

When using an advanced rule of type 'proxy', cookies sent by the client will be passed on.

drop-cookies attribute is available on the <to> element in the XML rule to allow you to not pass on cookies. See below for an example:

<rule>
  <name>XML Custom Proxy</name>
  <from>^/test/(.*)$</from>
  <to type="proxy" drop-cookies="false">http://localhost:8081/$1</to>
</rule>

Follow redirects

followRedirects attribute is available on the <to> element in the XML rule to enable redirects when proxying.  

In detail, this means calling the #setRedirectsEnabled method on the configuration of the HTTP client, see RequestConfig.Builder#setRedirectsEnabled

Use system properties

useSystemProperties attribute is available on the <to> element in the XML rule to use system properties when creating and configuring the HTTP client.  

In detail, this means calling the #useSystemProperties method on the HTTP client used, see HttpClientBuilder#useSystemProperties. The 3rd party library will read system properties like https.protocols, https.cipherSuites, http.keepAlive, http.maxConnections, http.agent and use those values if present.

Did you find this page helpful?
How could this documentation serve you better?
On this page
    Did you find this page helpful?
    How could this documentation serve you better?