Package io.jmix.email

Class EmailHeader

java.lang.Object
io.jmix.email.EmailHeader
All Implemented Interfaces:
Serializable

public class EmailHeader extends Object implements Serializable
The EmailHeader class stores a name/value pair to represent headers.
See Also:
  • Field Details

    • name

      protected String name
      The name of the header.
    • value

      protected String value
      The value of the header.
  • Constructor Details

    • EmailHeader

      public EmailHeader(String name, String value)
      Construct a EmailHeader object.
      Parameters:
      name - name of the header
      value - value of the header
  • Method Details

    • parse

      @Nullable public static EmailHeader parse(@Nullable String line)
      Returns instance of EmailHeader object from String argument.
      Parameters:
      line - EmailHeader name and value separated with ":" symbol.
      Returns:
      Instance of EmailHeader object. Returns null if string has wrong format or null value.
    • getName

      public String getName()
      Returns the name of this header.
      Returns:
      name of the header
    • getValue

      public String getValue()
      Returns the value of this header.
      Returns:
      value of the header
    • toString

      public String toString()
      Overrides:
      toString in class Object