diff --git a/docs/src/reference/docbook/http.xml b/docs/src/reference/docbook/http.xml index c54842c534..fc5cec6acf 100644 --- a/docs/src/reference/docbook/http.xml +++ b/docs/src/reference/docbook/http.xml @@ -219,53 +219,6 @@ In the case of the Outbound Gateway, the reply message produced by the gateway w For more information please refer to this document: http://download.oracle.com/javase/6/docs/technotes/guides/net/proxies.html - - Apache Commons - - - Apache Commons gives you CommonsClientHttpRequestFactory which could be configured with - Proxy aware instance of HttpClient. For simplicity you can encapsulate - the construction logic behind a FactoryBean as in the example below: - - { - - private String proxyHost; - private int proxyPort; - - public CommonsClientHttpRequestFactory getObject() throws Exception { - HttpClient client = new HttpClient(); - client.getHostConfiguration().setProxy(this.proxyHost, this.proxyPort); - CommonsClientHttpRequestFactory requestFactory = - new CommonsClientHttpRequestFactory(client); - return requestFactory; - } - - public Class getObjectType() { - return CommonsClientHttpRequestFactory.class; - } - - public boolean isSingleton() { - return true; - } - public void setProxyHost(String proxyHost) { - this.proxyHost = proxyHost; - } - - public void setProxyPort(int proxyPort) { - this.proxyPort = proxyPort; - } -}]]> - and then configure it with a simple XML configuration: - - - - - -]]> - - Spring's SimpleClientHttpRequestFactory