public static enum NanoWSD.WebSocketFrame.OpCode extends Enum<NanoWSD.WebSocketFrame.OpCode>
| Enum Constant and Description |
|---|
Binary |
Close |
Continuation |
Ping |
Pong |
Text |
| Modifier and Type | Method and Description |
|---|---|
static NanoWSD.WebSocketFrame.OpCode |
find(byte value) |
byte |
getValue() |
boolean |
isControlFrame() |
static NanoWSD.WebSocketFrame.OpCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NanoWSD.WebSocketFrame.OpCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NanoWSD.WebSocketFrame.OpCode Continuation
public static final NanoWSD.WebSocketFrame.OpCode Text
public static final NanoWSD.WebSocketFrame.OpCode Binary
public static final NanoWSD.WebSocketFrame.OpCode Close
public static final NanoWSD.WebSocketFrame.OpCode Ping
public static final NanoWSD.WebSocketFrame.OpCode Pong
public static NanoWSD.WebSocketFrame.OpCode[] values()
for (NanoWSD.WebSocketFrame.OpCode c : NanoWSD.WebSocketFrame.OpCode.values()) System.out.println(c);
public static NanoWSD.WebSocketFrame.OpCode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static NanoWSD.WebSocketFrame.OpCode find(byte value)
public byte getValue()
public boolean isControlFrame()
Copyright © 2012–2016 nanohttpd. All rights reserved.