public class WebSocketMessage extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
WebSocketMessage.Type |
| Modifier and Type | Field and Description |
|---|---|
static String |
CHARSET_NAME |
private int |
length |
private int |
offset |
private byte[] |
payload |
private WebSocketSessionInfo |
sessionInfo |
private WebSocketMessage.Type |
type |
| Constructor and Description |
|---|
WebSocketMessage(WebSocketSessionInfo sessionInfo) |
| Modifier and Type | Method and Description |
|---|---|
int |
getLength() |
int |
getOffset() |
byte[] |
getPayload() |
WebSocketSessionInfo |
getSessionInfo() |
WebSocketMessage.Type |
getType() |
void |
setPayload(byte[] payload,
int offset,
int length) |
void |
setPayload(String text) |
public static final String CHARSET_NAME
private final WebSocketSessionInfo sessionInfo
private byte[] payload
private int offset
private int length
private WebSocketMessage.Type type
public WebSocketMessage(WebSocketSessionInfo sessionInfo)
public WebSocketSessionInfo getSessionInfo()
public byte[] getPayload()
public void setPayload(String text)
public void setPayload(byte[] payload,
int offset,
int length)
public int getOffset()
public int getLength()
public WebSocketMessage.Type getType()
Copyright © 2022 Apache NiFi Project. All rights reserved.