java.lang.Object
java.lang.Enum<UpdateMethod>
net.i2p.update.UpdateMethod
All Implemented Interfaces:
Serializable, Comparable<UpdateMethod>, java.lang.constant.Constable

public enum UpdateMethodextends Enum<UpdateMethod>
Transport mechanism for getting something.
  • Enum Constant Details

    • METHOD_DUMMY

      public static final UpdateMethod METHOD_DUMMY
      Dummy: internal use only.
    • HTTP

      public static final UpdateMethod HTTP
      HTTP via .i2p or outproxy.
    • HTTP_CLEARNET

      public static final UpdateMethod HTTP_CLEARNET
      Direct HTTP via clearnet.
    • HTTPS_CLEARNET

      public static final UpdateMethod HTTPS_CLEARNET
      Direct HTTPS via clearnet.
    • TORRENT

      public static final UpdateMethod TORRENT
      BitTorrent protocol.
    • GNUTELLA

      public static final UpdateMethod GNUTELLA
      Gnutella protocol.
    • IMULE

      public static final UpdateMethod IMULE
      IMule protocol.
    • TAHOE_LAFS

      public static final UpdateMethod TAHOE_LAFS
      Tahoe-LAFS protocol.
    • DEBIAN

      public static final UpdateMethod DEBIAN
      Debian package manager.
    • FILE

      public static final UpdateMethod FILE
      Local file.
  • Constructor Details

    • UpdateMethod

      private UpdateMethod()
  • Method Details

    • values

      public static UpdateMethod[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static UpdateMethod valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null