proxy
Configuration for an outbound HTTP proxy.
Defines the address, optional authentication credentials, and TLS configuration for connecting to a proxy.
Can be used as a child element in <httpClientConfig> to route client connections through a proxy server.
XML Example:
<proxy host="proxy.example.com" port="3128" authentication="true" username="user" password="secret">
<ssl keystoreLocation="classpath:proxy-client.jks" keystorePassword="changeit"/>
</proxy>
YAML (experimental):
proxy:
host: proxy.example.com
port: 3128
authentication: true
username: user
password: secret
ssl:
keystoreLocation: classpath:proxy-client.jks
keystorePassword: changeit
Can be used in:
httpClientConfig, router and bean
Syntax
<proxy name="string"
port="integer"
blockRequest="[true,false]"
blockResponse="[true,false]">
[interceptors]*
</proxy>
Sample
<proxy name="HTTP Proxy" port="3128" >
<transform xslt="strip.xslt"/>
<switch>
<case xPath="//convert" url="http://www.thomas-bayer.com/axis2/" />
</switch>
</proxy>