Class AbstractFileInfo<F>

java.lang.Object
org.springframework.integration.file.remote.AbstractFileInfo<F>
Type Parameters:
F - The target protocol file type.
All Implemented Interfaces:
Comparable<FileInfo<F>>, FileInfo<F>
Direct Known Subclasses:
FtpFileInfo, SftpFileInfo, SmbFileInfo

public abstract class AbstractFileInfo<F> extends Object implements FileInfo<F>, Comparable<FileInfo<F>>
Abstract implementation of FileInfo; provides a setter for the remote directory and a generic toString implementation.
Since:
2.1
Author:
Gary Russell
  • Constructor Details

    • AbstractFileInfo

      public AbstractFileInfo()
  • Method Details

    • setRemoteDirectory

      public void setRemoteDirectory(String remoteDirectory)
      Parameters:
      remoteDirectory - the remoteDirectory to set
    • getRemoteDirectory

      public String getRemoteDirectory()
      Specified by:
      getRemoteDirectory in interface FileInfo<F>
      Returns:
      the remote directory in which the file resides
    • compareTo

      public int compareTo(FileInfo<F> o)
      Specified by:
      compareTo in interface Comparable<F>
    • toJson

      public String toJson()
    • toString

      public String toString()
      Overrides:
      toString in class Object