Package fi.iki.elonen
Enum NanoWSD.WebSocketFrame.CloseCode
- java.lang.Object
-
- java.lang.Enum<NanoWSD.WebSocketFrame.CloseCode>
-
- fi.iki.elonen.NanoWSD.WebSocketFrame.CloseCode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<NanoWSD.WebSocketFrame.CloseCode>
- Enclosing class:
- NanoWSD.WebSocketFrame
public static enum NanoWSD.WebSocketFrame.CloseCode extends java.lang.Enum<NanoWSD.WebSocketFrame.CloseCode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AbnormalClosure
GoingAway
InternalServerError
InvalidFramePayloadData
MandatoryExt
MessageTooBig
NormalClosure
NoStatusRcvd
PolicyViolation
ProtocolError
TLSHandshake
UnsupportedData
-
Field Summary
Fields Modifier and Type Field Description private int
code
-
Constructor Summary
Constructors Modifier Constructor Description private
CloseCode(int code)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NanoWSD.WebSocketFrame.CloseCode
find(int value)
int
getValue()
static NanoWSD.WebSocketFrame.CloseCode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static NanoWSD.WebSocketFrame.CloseCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NormalClosure
public static final NanoWSD.WebSocketFrame.CloseCode NormalClosure
-
GoingAway
public static final NanoWSD.WebSocketFrame.CloseCode GoingAway
-
ProtocolError
public static final NanoWSD.WebSocketFrame.CloseCode ProtocolError
-
UnsupportedData
public static final NanoWSD.WebSocketFrame.CloseCode UnsupportedData
-
NoStatusRcvd
public static final NanoWSD.WebSocketFrame.CloseCode NoStatusRcvd
-
AbnormalClosure
public static final NanoWSD.WebSocketFrame.CloseCode AbnormalClosure
-
InvalidFramePayloadData
public static final NanoWSD.WebSocketFrame.CloseCode InvalidFramePayloadData
-
PolicyViolation
public static final NanoWSD.WebSocketFrame.CloseCode PolicyViolation
-
MessageTooBig
public static final NanoWSD.WebSocketFrame.CloseCode MessageTooBig
-
MandatoryExt
public static final NanoWSD.WebSocketFrame.CloseCode MandatoryExt
-
InternalServerError
public static final NanoWSD.WebSocketFrame.CloseCode InternalServerError
-
TLSHandshake
public static final NanoWSD.WebSocketFrame.CloseCode TLSHandshake
-
-
Method Detail
-
values
public static NanoWSD.WebSocketFrame.CloseCode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (NanoWSD.WebSocketFrame.CloseCode c : NanoWSD.WebSocketFrame.CloseCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NanoWSD.WebSocketFrame.CloseCode valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
find
public static NanoWSD.WebSocketFrame.CloseCode find(int value)
-
getValue
public int getValue()
-
-