@Deprecated public class WsFrame extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
getFin()
Deprecated.
|
byte[] |
getMask()
Deprecated.
|
byte |
getOpCode()
Deprecated.
|
ByteBuffer |
getPayLoad()
Deprecated.
|
long |
getPayLoadLength()
Deprecated.
|
int |
getRsv()
Deprecated.
|
boolean |
isControl()
Deprecated.
|
static WsFrame |
nextFrame(UpgradeProcessor<?> processor,
boolean block)
Deprecated.
Read the next WebSocket frame, reading data from the processor as
necessary.
|
public boolean getFin()
public int getRsv()
public byte getOpCode()
public boolean isControl()
public byte[] getMask()
public long getPayLoadLength()
public ByteBuffer getPayLoad()
public static WsFrame nextFrame(UpgradeProcessor<?> processor, boolean block) throws IOException
processor
- Processor associated with the WebSocket connection on
which the frame has been sentblock
- Should this method block until a frame is presented if no
data is currently available to process. Note that is a
single byte is available, this method will block until the
complete frame (excluding payload for non-control frames) is
available.IOException
- If a problem occurs processing the frame. Any
exception will trigger the closing of the WebSocket
connection.Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.