Interface HandshakeMagicBytesAccessor.HandshakeMagicBytesBuilder<B extends HandshakeMagicBytesAccessor.HandshakeMagicBytesBuilder<B>>

Type Parameters:
B - The builder to return in order to be able to apply multiple build operations.
Enclosing interface:
HandshakeMagicBytesAccessor

public static interface HandshakeMagicBytesAccessor.HandshakeMagicBytesBuilder<B extends HandshakeMagicBytesAccessor.HandshakeMagicBytesBuilder<B>>
Provides a builder method for a handshake magic bytes property returning the builder for applying multiple build operations.
  • Method Summary

    Modifier and Type
    Method
    Description
    withHandshakeMagicBytes(byte[] aHandshakeMagicBytes)
    Sets the magic bytes for the handshake magic bytes property.
    default B
    withHandshakeMagicBytes(String aHandshakeMagicBytes)
    Sets the magic bytes for the handshake magic bytes property.
    default B
    withHandshakeMagicBytes(String aHandshakeMagicBytes, Charset aEncoding)
    Sets the magic bytes for the handshake magic bytes property.
  • Method Details

    • withHandshakeMagicBytes

      B withHandshakeMagicBytes(byte[] aHandshakeMagicBytes)
      Sets the magic bytes for the handshake magic bytes property.
      Parameters:
      aHandshakeMagicBytes - The magic bytes to be stored by the handshake magic bytes property.
      Returns:
      The builder for applying multiple build operations.
    • withHandshakeMagicBytes

      default B withHandshakeMagicBytes(String aHandshakeMagicBytes)
      Sets the magic bytes for the handshake magic bytes property.
      Parameters:
      aHandshakeMagicBytes - The magic bytes to be stored by the magic bytes property. Uses TransmissionMetrics.DEFAULT_ENCODING for converting the String into a byte array.
      Returns:
      the b
    • withHandshakeMagicBytes

      default B withHandshakeMagicBytes(String aHandshakeMagicBytes, Charset aEncoding)
      Sets the magic bytes for the handshake magic bytes property.
      Parameters:
      aHandshakeMagicBytes - The magic bytes to be stored by the magic bytes property.
      aEncoding - The string's bytes are converted using the given Charset.
      Returns:
      The builder for applying multiple build operations.