Spring Integration

org.springframework.integration.ftp
Class FtpFileEntryNamer

java.lang.Object
  extended by org.springframework.integration.ftp.FtpFileEntryNamer
All Implemented Interfaces:
EntryNamer<org.apache.commons.net.ftp.FTPFile>

public class FtpFileEntryNamer
extends Object
implements EntryNamer<org.apache.commons.net.ftp.FTPFile>

A EntryNamer for FTPFile objects

Author:
Josh Long

Constructor Summary
FtpFileEntryNamer()
           
 
Method Summary
 String nameOf(org.apache.commons.net.ftp.FTPFile entry)
          This is the one place I couldn't spackle over the interface differences between an FTPFile (FTP adapter), File (File adapter), and LsEntry (SFTP adapter) with generics alone.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FtpFileEntryNamer

public FtpFileEntryNamer()
Method Detail

nameOf

public String nameOf(org.apache.commons.net.ftp.FTPFile entry)
Description copied from interface: EntryNamer
This is the one place I couldn't spackle over the interface differences between an FTPFile (FTP adapter), File (File adapter), and LsEntry (SFTP adapter) with generics alone. So we have a typed strategy implementation for accessing a property ....

Specified by:
nameOf in interface EntryNamer<org.apache.commons.net.ftp.FTPFile>
Parameters:
entry - the entry in a file system listing
Returns:
the String name that might be used to reference that entry or to do regular expression checks against

Spring Integration

Copyright © 2010. All Rights Reserved.