Class Protocol

java.lang.Object
com.enterprisedt.net.ftp.Protocol

public class Protocol extends Object
Enumerates the FTP protocols that are available
Version:
$Revision$
Author:
Bruce Blackshaw
  • Field Details

    • FTP

      public static Protocol FTP
      Plain FTP
    • FTPS_EXPLICIT

      public static Protocol FTPS_EXPLICIT
      Explicit FTPS (FTP over SSL)
    • FTPS_IMPLICIT

      public static Protocol FTPS_IMPLICIT
      Implicit FTPS (FTP over SSL). Superceded and not recommended for general use.
    • SFTP

      public static Protocol SFTP
      FTP over SSH
    • SCP

      public static Protocol SCP
      SCP over SSH
  • Method Details

    • equals

      public boolean equals(Object obj)
      Indicates whether some other object is "equal to" this one.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Returns a hash code value for the object.
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      String representation of protocol
      Overrides:
      toString in class Object
    • getProtocolAbbrev

      public String getProtocolAbbrev()
      Get the abbreviation
      Returns:
    • getProtocol

      public static Protocol getProtocol(String abbrev)
      Get the protocol from the abbreviation
      Parameters:
      abbrev - string abbreviation of protocol
      Returns:
      Protocol
    • getProtocols

      public static String getProtocols()