You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2010/07/06 17:32:39 UTC

svn commit: r960916 - in /camel/trunk/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote: FtpEndpoint.java SftpEndpoint.java

Author: davsclaus
Date: Tue Jul  6 15:32:39 2010
New Revision: 960916

URL: http://svn.apache.org/viewvc?rev=960916&view=rev
Log:
Polished

Modified:
    camel/trunk/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/FtpEndpoint.java
    camel/trunk/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpEndpoint.java

Modified: camel/trunk/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/FtpEndpoint.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/FtpEndpoint.java?rev=960916&r1=960915&r2=960916&view=diff
==============================================================================
--- camel/trunk/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/FtpEndpoint.java (original)
+++ camel/trunk/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/FtpEndpoint.java Tue Jul  6 15:32:39 2010
@@ -40,6 +40,7 @@ public class FtpEndpoint<T extends FTPFi
     protected int dataTimeout;
 
     public FtpEndpoint() {
+        super();
     }
 
     public FtpEndpoint(String uri, RemoteFileComponent<FTPFile> component, RemoteFileConfiguration configuration) {
@@ -52,11 +53,6 @@ public class FtpEndpoint<T extends FTPFi
     }
 
     @Override
-    public RemoteFileConfiguration getConfiguration() {
-        return (RemoteFileConfiguration) super.getConfiguration();
-    }
-
-    @Override
     protected RemoteFileConsumer<FTPFile> buildConsumer(Processor processor) {
         try {
             return new FtpConsumer(this, processor, createRemoteFileOperations());

Modified: camel/trunk/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpEndpoint.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpEndpoint.java?rev=960916&r1=960915&r2=960916&view=diff
==============================================================================
--- camel/trunk/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpEndpoint.java (original)
+++ camel/trunk/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpEndpoint.java Tue Jul  6 15:32:39 2010
@@ -18,7 +18,6 @@ package org.apache.camel.component.file.
 
 import com.jcraft.jsch.ChannelSftp;
 import org.apache.camel.Processor;
-import org.apache.camel.component.file.GenericFileConfiguration;
 import org.apache.camel.component.file.GenericFileProducer;
 
 /**
@@ -27,6 +26,7 @@ import org.apache.camel.component.file.G
 public class SftpEndpoint extends RemoteFileEndpoint<ChannelSftp.LsEntry> {
 
     public SftpEndpoint() {
+        super();
     }
 
     public SftpEndpoint(String uri, SftpComponent component, RemoteFileConfiguration configuration) {
@@ -34,11 +34,6 @@ public class SftpEndpoint extends Remote
     }
 
     @Override
-    public RemoteFileConfiguration getConfiguration() {
-        return (RemoteFileConfiguration) super.getConfiguration();
-    }
-
-    @Override
     protected RemoteFileConsumer<ChannelSftp.LsEntry> buildConsumer(Processor processor) {
         return new SftpConsumer(this, processor, createRemoteFileOperations());
     }