Changeset 2521


Ignore:
Timestamp:
Jun 25, 2014, 9:35:01 AM (9 years ago)
Author:
Nicklas Nordborg
Message:

References #305: Create package for supporting external files on FTP servers

This should now work. Supported URI schemas are ftp:// and ftps://. ftps assumes implicit SSL and require a linked file server for login/certificate information. ftp uses anonymous login if not linked with a file server and also has support for explicit SSL if linked with a file server that specify a certificate.

Location:
extensions/net.sf.basedb.xfiles/trunk
Files:
7 added
4 edited

Legend:

Unmodified
Added
Removed
  • extensions/net.sf.basedb.xfiles/trunk/.classpath

    r2518 r2521  
    55  <classpathentry kind="lib" path="lib/base-core-3.3.0.jar"/>
    66  <classpathentry kind="lib" path="META-INF/lib/sshj-0.9.0.jar"/>
     7  <classpathentry kind="lib" path="META-INF/lib/ftp4j-1.7.2.jar"/>
    78  <classpathentry kind="output" path="bin"/>
    89</classpath>
  • extensions/net.sf.basedb.xfiles/trunk/META-INF/MANIFEST.MF

    r2518 r2521  
    11Manifest-Version: 1.0
    2 Class-Path: lib/sshj-0.9.0.jar
     2Class-Path: lib/sshj-0.9.0.jar lib/ftp4j-1.7.2.jar
  • extensions/net.sf.basedb.xfiles/trunk/META-INF/extensions.xml

    r2518 r2521  
    3333  </extension>
    3434 
     35  <extension
     36    id="net.sf.basedb.xfiles.ftp-connection-manager"
     37    extends="net.sf.basedb.core.uri.connection-manager"
     38    >
     39    <index>21</index>
     40    <about>
     41      <name>FTP connection manager</name>
     42      <description>
     43        Provides support for accessing files via FTP/FTPS protocol.
     44        Uses anonymous ftp if not linked with a file server.
     45        If login or FTPS is requried a file server item must be
     46        created to hold the required information. In this case,
     47        the file item's URI will be replaced with the host information
     48        specified in the file server item.
     49      </description>
     50    </about>
     51    <action-factory>
     52      <factory-class>net.sf.basedb.xfiles.ftp.FtpConnectionManagerActionFactory</factory-class>
     53    </action-factory>
     54  </extension>
     55 
    3556</extensions>
  • extensions/net.sf.basedb.xfiles/trunk/src/net/sf/basedb/xfiles/XFiles.java

    r2520 r2521  
    4141
    4242  /**
     43    Default port when using FTP is 21.
     44  */
     45  public static final int DEFAULT_FTP_PORT = 21;
     46
     47  /**
     48    Default port when using FTPS is 990.
     49  */
     50  public static final int DEFAULT_FTPS_PORT = 990;
     51
     52  /**
    4353    Default size of internal buffer when downloading files is 1MB.
    4454  */
Note: See TracChangeset for help on using the changeset viewer.