...
The derived AsynchronousProxyServlet.Trasparent subclass exists to perform standard transparent proxy operation. Currently this class needs to be programmaticly instantiated. Future releases will allow this to be configured with init parameters. From 6.1.19 release, the transparent proxy will configurable with init parameters as follows:
| Code Block | ||
|---|---|---|
| ||
<servlet>
<servlet-name>GoogleProxy</servlet-name>
<servlet-class>org.mortbay.proxy.AsyncProxyServlet$Transparent</servlet-class>
<load-on-startup>1</load-on-startup>
<init-param>
<param-name>ProxyTo</param-name><param-value>http://www.google.com</param-value>
</init-param>
<init-param>
<param-name>Prefix</param-name><param-value>/google</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>GoogleProxy</servlet-name>
<url-pattern>/google/*</url-pattern>
</servlet-mapping>
|