Enum Class CloseCode

java.lang.Object
java.lang.Enum<CloseCode>
robaho.net.httpserver.websockets.CloseCode
All Implemented Interfaces:
Serializable, Comparable<CloseCode>, Constable

public enum CloseCode extends Enum<CloseCode>
  • Enum Constant Details

    • NormalClosure

      public static final CloseCode NormalClosure
    • GoingAway

      public static final CloseCode GoingAway
    • ProtocolError

      public static final CloseCode ProtocolError
    • UnsupportedData

      public static final CloseCode UnsupportedData
    • NoStatusRcvd

      public static final CloseCode NoStatusRcvd
    • AbnormalClosure

      public static final CloseCode AbnormalClosure
    • InvalidFramePayloadData

      public static final CloseCode InvalidFramePayloadData
    • PolicyViolation

      public static final CloseCode PolicyViolation
    • MessageTooBig

      public static final CloseCode MessageTooBig
    • MandatoryExt

      public static final CloseCode MandatoryExt
    • InternalServerError

      public static final CloseCode InternalServerError
    • TLSHandshake

      public static final CloseCode TLSHandshake
  • Method Details

    • values

      public static CloseCode[] 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 CloseCode 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
    • find

      public static CloseCode find(int value)
    • getValue

      public int getValue()