camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aleksey Sushko (JIRA)" <>
Subject [jira] [Created] (CAMEL-3845) New FTP component working with PROXY
Date Thu, 07 Apr 2011 21:18:06 GMT
New FTP component working with PROXY

                 Key: CAMEL-3845
             Project: Camel
          Issue Type: Improvement
          Components: camel-ftp
    Affects Versions: 2.7.0
            Reporter: Aleksey Sushko

FTP the component works well. He isn't able to go through proxy server.
Library FTP4J is able to go through different proxy servers.
Squid Server is used FTP over HTTP proxy.

I have developed component FTP of the client constructed on library FTP4J. 
FTP4J Version 1.6 - 2011/01/07. 
Has added storage of the last FTPReply.
Has added transfer of parameters connectTimeout and soTimeout.
Libraries FTP4J aren't present in central maven repository. The library no OSGi.

In camel the component has added parameter "proxy". 
It is a line url authorizations for proxy server. 
If the scheme http is specified, we put HTTPTunnelConnector. 
If the scheme ftp is specified, we put FTPProxyConnector. 
If the scheme socks5 is specified, we put SOCKS5Connector. 
If the scheme socks or socks4 is specified, we put SOCKS4Connector. 

If the parameter "proxy" isn't specified, there is a direct connection to FTP server. 

Route example

<blueprint xmlns=""

  <cm:property-placeholder persistent-id="com.mycompany.route.bundle">
      <cm:property name="ftp.url" value="ftp4j://"/>
      <cm:property name="ftp.delay" value="100000"/>
      <cm:property name="ftp.proxy" value="&proxy=http://user:pwd@cache.mycompany.lan:3128/"/>
  <camelContext xmlns="">      
      <from uri="{{ftp.url}}?delay={{ftp.delay}}&amp;noop=true&amp;binary=true{{ftp.proxy}}"/>
      <to uri="file://data/dict/inbox"/>
      <to uri="mock:log"/>


This message is automatically generated by JIRA.
For more information on JIRA, see:

View raw message