Class 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).
    • Constructor Detail

      • SaslNegotiationFrameWriter

        public SaslNegotiationFrameWriter()
    • Method Detail

      • withOnlyPayload

        public void withOnlyPayload​(byte[] payload,
                                    int offset,
                                    int length)
        Description copied from class: FrameWriter
        Provide only payload to the frame. Throws UnsupportedOperationException if the frame expects a header.
        Specified by:
        withOnlyPayload in class FrameWriter
        Parameters:
        payload - The underlying byte array as a recipient of the payload
        offset - The offset in the byte array starting from where the payload is located
        length - 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:
        buildFrame in class FrameWriter