Interface ExtensionField.Builder

    • Method Detail

      • name

        ExtensionField.Builder name​(String name)

        The name of the header to add. Must be between 1 and 50 characters, inclusive, and consist of alphanumeric (a-z, A-Z, 0-9) characters and dashes only.

        Parameters:
        name - The name of the header to add. Must be between 1 and 50 characters, inclusive, and consist of alphanumeric (a-z, A-Z, 0-9) characters and dashes only.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • value

        ExtensionField.Builder value​(String value)

        The value of the header to add. Must contain 2048 characters or fewer, and must not contain newline characters ("\r" or "\n").

        Parameters:
        value - The value of the header to add. Must contain 2048 characters or fewer, and must not contain newline characters ("\r" or "\n").
        Returns:
        Returns a reference to this object so that method calls can be chained together.