public class ClosingFrame extends DataFrame
Modifier and Type | Field and Description |
---|---|
static byte[] |
EMPTY_BYTES |
STRICT_UTF8_CHARSET, STRICT_UTF8_MAX_BYTES_PER_CHAR
Constructor and Description |
---|
ClosingFrame() |
ClosingFrame(byte[] data) |
ClosingFrame(int code,
String reason) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytes() |
int |
getCode() |
String |
getReason() |
void |
setPayload(byte[] bytes) |
String |
toString() |
getTextPayload, getType, isDataFrame, isLast, respond, setLast, setPayload, toStream
public ClosingFrame()
public ClosingFrame(int code, String reason)
public ClosingFrame(byte[] data)
public int getCode()
public String getReason()
public void setPayload(byte[] bytes)
setPayload
in class DataFrame
Copyright © 2014 Oracle Corporation. All rights reserved.