org.springframework.integration.sftp
Class SftpEntryNamer
java.lang.Object
org.springframework.integration.sftp.SftpEntryNamer
- All Implemented Interfaces:
- EntryNamer<com.jcraft.jsch.ChannelSftp.LsEntry>
public class SftpEntryNamer
- extends Object
- implements EntryNamer<com.jcraft.jsch.ChannelSftp.LsEntry>
Knows how to name a ChannelSftp.LsEntry
instance
- Author:
- Josh Long
Method Summary |
String |
nameOf(com.jcraft.jsch.ChannelSftp.LsEntry 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 |
SftpEntryNamer
public SftpEntryNamer()
nameOf
public String nameOf(com.jcraft.jsch.ChannelSftp.LsEntry 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<com.jcraft.jsch.ChannelSftp.LsEntry>
- 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
Copyright © 2010. All Rights Reserved.