java.lang.Object
java.lang.Enum<Protocol>
io.github.astrapi69.net.url.Protocol
Alle implementierten Schnittstellen:
Serializable, Comparable<Protocol>, Constable

public enum Protocol extends Enum<Protocol>
The enum Protocol represents protocols from an url.
  • Enum-Konstanten - Details

    • EAR

      public static final Protocol EAR
      The ear protocol.
    • FILE

      public static final Protocol FILE
      The jar protocol.
    • FTP

      public static final Protocol FTP
      The ftp protocol.
    • HTTP

      public static final Protocol HTTP
      The http protocol.
    • HTTPS

      public static final Protocol HTTPS
      The https protocol.
    • JAR

      public static final Protocol JAR
      The jar protocol.
    • MAILTO

      public static final Protocol MAILTO
      The jar protocol.
    • NEWS

      public static final Protocol NEWS
      The jar protocol.
    • NNTP

      public static final Protocol NNTP
      The nntp protocol.
    • URN

      public static final Protocol URN
      The urn protocol.
    • WAR

      public static final Protocol WAR
      The war protocol.
  • Methodendetails

    • values

      public static Protocol[] values()
      Gibt ein Array mit den Konstanten dieser Enum-Klasse in der Reihenfolge ihrer Deklaration zurück.
      Gibt zurück:
      ein Array mit den Konstanten dieser Enum-Klasse in der Reihenfolge ihrer Deklaration
    • valueOf

      public static Protocol valueOf(String name)
      Gibt die Enum-Konstante dieser Klasse mit dem angegebenen Namen zurück. Die Zeichenfolge muss exakt mit einer ID übereinstimmen, mit der eine Enum-Konstante in dieser Klasse deklariert wird. (Zusätzliche Leerzeichen sind nicht zulässig.)
      Parameter:
      name - Name der zurückzugebenden Enumerationskonstante.
      Gibt zurück:
      Enumerationskonstante mit dem angegebenen Namen
      Löst aus:
      IllegalArgumentException - wenn diese Enum-Klasse keine Konstante mit dem angegebenen Namen enthält
      NullPointerException - wenn das Argument nicht angegeben wird