Enum NWWsCoseCode

java.lang.Object
java.lang.Enum<NWWsCoseCode>
org.robovm.apple.network.NWWsCoseCode
All Implemented Interfaces:
Serializable, Comparable<NWWsCoseCode>, ValuedEnum

public enum NWWsCoseCode
extends Enum<NWWsCoseCode>
implements ValuedEnum
  • Enum Constant Details

    • normal_closure

      public static final NWWsCoseCode normal_closure
    • going_away

      public static final NWWsCoseCode going_away
    • protocol_error

      public static final NWWsCoseCode protocol_error
    • unsupported_data

      public static final NWWsCoseCode unsupported_data
    • no_status_received

      public static final NWWsCoseCode no_status_received
    • abnormal_closure

      public static final NWWsCoseCode abnormal_closure
    • invalid_frame_payload_data

      public static final NWWsCoseCode invalid_frame_payload_data
    • policy_violation

      public static final NWWsCoseCode policy_violation
    • message_too_big

      public static final NWWsCoseCode message_too_big
    • mandatory_extension

      public static final NWWsCoseCode mandatory_extension
    • internal_server_error

      public static final NWWsCoseCode internal_server_error
    • tls_handshake

      public static final NWWsCoseCode tls_handshake
  • Method Details

    • values

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

      public static NWWsCoseCode valueOf​(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • value

      public long value()
      Specified by:
      value in interface ValuedEnum
    • valueOf

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