Package io.kroxylicious.proxy.frame
Class BareSaslRequest
java.lang.Object
io.kroxylicious.proxy.frame.BareSaslRequest
- All Implemented Interfaces:
Frame,RequestFrame
Ancient versions of Kafka implemented SASL/GSSAPI by sending the token
on the wire as length prefixed bytes (no Kafka protocol header).
This frame represents those kinds of request.
- See Also:
-
Field Summary
Fields inherited from interface io.kroxylicious.proxy.frame.Frame
FRAME_SIZE_LENGTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionshortapiKeyId()Api key id of this frame.shortApi version of this frame.byte[]bytes()intThe correlation id.booleanWhether the response to this request should be decoded.voidencode(ByteBufAccessor out) Write the frame, including the size prefix, to the given bufferintEstimate the expected encoded size in bytes of thisFrame.
In particular, written data byFrame.encode(ByteBufAccessor)should be the same as reported by this method.booleantrue if this frame is decoded, false otherwiseMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.kroxylicious.proxy.frame.RequestFrame
hasResponse
-
Constructor Details
-
BareSaslRequest
public BareSaslRequest(byte[] bytes, boolean decodeResponse)
-
-
Method Details
-
estimateEncodedSize
public int estimateEncodedSize()Description copied from interface:FrameEstimate the expected encoded size in bytes of thisFrame.
In particular, written data byFrame.encode(ByteBufAccessor)should be the same as reported by this method.- Specified by:
estimateEncodedSizein interfaceFrame
-
encode
Description copied from interface:FrameWrite the frame, including the size prefix, to the given buffer -
correlationId
public int correlationId()Description copied from interface:FrameThe correlation id.- Specified by:
correlationIdin interfaceFrame- Returns:
- The correlation id.
-
apiKeyId
public short apiKeyId()Description copied from interface:FrameApi key id of this frame. -
apiVersion
public short apiVersion()Description copied from interface:FrameApi version of this frame.- Specified by:
apiVersionin interfaceFrame
-
isDecoded
public boolean isDecoded()Description copied from interface:Frametrue if this frame is decoded, false otherwise -
decodeResponse
public boolean decodeResponse()Description copied from interface:RequestFrameWhether the response to this request should be decoded.- Specified by:
decodeResponsein interfaceRequestFrame- Returns:
- Whether the response to this request should be decoded.
-
bytes
public byte[] bytes()
-