Hi Sounds like a good idea to support this out of the box in camel-ftp. You are welcome to submit a patch with your enhancement in the camel-ftp component.
On Mon, Oct 21, 2013 at 2:00 PM, alexey-s <[email protected]> wrote: > Good afternoon. > > Let's go back to the history of the issue. The discussion was offered > functionality https://issues.apache.org/jira/browse/CAMEL-3845 > > Check the description FTPS component in http://camel.apache.org/ftp2.html > SFTP component uses this functionality. > > What prevents the FTP component to pass through a proxy? > FtpEndpoint creates commons-net FTPClient. > > GenericFileComponent create endpoint > endpoint = buildFileEndpoint (uri, remaining, parameters); > > After creating the endpoint initialization of parameters > setProperties(endpoint, parameters); > > The main component, commons-net FTPClient, not configurable. > We need to manually set SocketFactory. > > It would be logical to make the identification of parameters for ftpClient > ftpClient.socketFactory=#soketFactory > ftpClient.proxy=#proxy > > I posted on GitHub implementation of the system passing proxy. > https://github.com/alexey-su/camel-ftpext > > This component recognizes the parameter ftpClient.proxyUrl > When you create an endpoint sets the desired soketFactory. > > Examples > > ftpext://publicftpserver.com/download?ftpClient.proxyUrl=http://user:[email protected]:port/ > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/FTP-over-Proxy-tp3314841p5741973.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: [email protected] Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen
