proxy
Clients can send HTTP requests to a proxy that forward the request to a Web server. It acts onbehalf of the client.
Can be used in
Syntax
<proxy name="string" port="integer" blockRequest="[true,false]" blockResponse="[true,false]"> <request> [interceptors]* </request> [interceptors]* <response> [interceptors]* </response> </proxy>
Listing 1: proxy Syntax
Sample
<proxy name="HTTP Proxy" port="3128" > <transform xslt="strip.xslt"/> <switch> <case xPath="//convert" url="http://www.thomas-bayer.com/axis2/" /> </switch> </proxy>
Listing 2: proxy Example
Attributes
Name | Mandatory | Default | Description | Example |
---|---|---|---|---|
name | no | A name is created based on the pattern: [target host] [method] [path]:[target port] | Test Web Service | |
port | no | 80 | Listen Port | 8080 |
blockResponse | no | false | false | |
blockRequest | no | false | false |
Child Elements
Name | Cardinality | Description |
---|---|---|
localhost | 0..1 | Defines the host address that is used when connecting to the server. |
request | 0..* | Limits interceptors to requests only. |
response | 0..* | Limits interceptors to response only. |
basicAuthentication | 0..1 | HTTP Basic Authentication Interceptor |
clusterNotification | 0..1 | Up/Down push interface interceptor for cluster managment |
counter | 0..* | Interceptor that provides a test web site. |
rewriter | 0..* | Interceptor to rewrite URLs. |
adminConsole | 0..1 | Initializes the Admin Console. |
formValidation | 0..* | Interceptor that validates form parameter. |
webServer | 0..1 | Web Server Interceptor |
switch | 0..* | Interceptor for content based routing. |
accessControl | 0..1 | Interceptor to restrict access to services and resources. |
exchangeStore | 0..* | Interceptor that stores exchanges. |
groovy | 0..* | Runs Groovy scripts. |
log | 0..* | Logs request and response. |
statisticsCSV | 0..* | Interceptor that logs in a CSV file. |
statisticsJDBC | 0..* | Interceptor that logs in a database. |
throttle | 0..* | Interceptor that delays and limits requests. |
transform | 0..* | Interceptor that applies XSLT transformations |
balancer | 0..1 | LoadBalancer Interceptor |
validator | 0..* | Interceptor that validates against a WSDL and referenced Schemas |
rest2Soap | 0..* | Interceptor that exposes a SOAP service as REST resource. |
interceptor | 0..* | References a interceptor defined in the monitor-beans.xml |
regExReplacer | 0..* | Interceptor that replaces parts of the content based on a regulare expression. |
wsdlRewriter | 0..1 | Interceptor that rewrites URLs in endpoint and import definitions of a WSDL. |