public class SaslNegotiationFrameWriter extends FrameWriter
| Modifier and Type | Field and Description |
|---|---|
static int |
HEADER_BYTES |
frameBytes| Constructor and Description |
|---|
SaslNegotiationFrameWriter() |
| Modifier and Type | Method and Description |
|---|---|
protected java.nio.ByteBuffer |
buildFrame(byte[] header,
int headerOffset,
int headerLength,
byte[] payload,
int payloadOffset,
int payloadLength) |
void |
withOnlyPayload(byte[] payload,
int offset,
int length)
Provide only payload to the frame.
|
clear, isComplete, withHeaderAndPayload, withHeaderAndPayload, withOnlyPayload, writepublic static final int HEADER_BYTES
public void withOnlyPayload(byte[] payload,
int offset,
int length)
FrameWriterwithOnlyPayload in class FrameWriterpayload - The underlying byte array as a recipient of the payloadoffset - The offset in the byte array starting from where the payload is locatedlength - The length of the payloadprotected java.nio.ByteBuffer buildFrame(byte[] header,
int headerOffset,
int headerLength,
byte[] payload,
int payloadOffset,
int payloadLength)
buildFrame in class FrameWriter