Package org.apache.thrift.transport.sasl
Class SaslNegotiationFrameWriter
- java.lang.Object
-
- org.apache.thrift.transport.sasl.FrameWriter
-
- org.apache.thrift.transport.sasl.SaslNegotiationFrameWriter
-
public class SaslNegotiationFrameWriter extends FrameWriter
Writer for sasl negotiation frames. It expect a status byte as header with a payload to be written out (any header whose size is not equal to 1 would be considered as error).
-
-
Field Summary
Fields Modifier and Type Field Description static intHEADER_BYTES-
Fields inherited from class org.apache.thrift.transport.sasl.FrameWriter
frameBytes
-
-
Constructor Summary
Constructors Constructor Description SaslNegotiationFrameWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.nio.ByteBufferbuildFrame(byte[] header, int headerOffset, int headerLength, byte[] payload, int payloadOffset, int payloadLength)voidwithOnlyPayload(byte[] payload, int offset, int length)Provide only payload to the frame.-
Methods inherited from class org.apache.thrift.transport.sasl.FrameWriter
clear, isComplete, withHeaderAndPayload, withHeaderAndPayload, withOnlyPayload, write
-
-
-
-
Field Detail
-
HEADER_BYTES
public static final int HEADER_BYTES
- See Also:
- Constant Field Values
-
-
Method Detail
-
withOnlyPayload
public void withOnlyPayload(byte[] payload, int offset, int length)Description copied from class:FrameWriterProvide only payload to the frame. Throws UnsupportedOperationException if the frame expects a header.- Specified by:
withOnlyPayloadin classFrameWriter- Parameters:
payload- 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 payload
-
buildFrame
protected java.nio.ByteBuffer buildFrame(byte[] header, int headerOffset, int headerLength, byte[] payload, int payloadOffset, int payloadLength)- Specified by:
buildFramein classFrameWriter
-
-