Package io.jmix.email
Class EmailHeader
java.lang.Object
io.jmix.email.EmailHeader
- All Implemented Interfaces:
Serializable
The EmailHeader class stores a name/value pair to represent headers.
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
name
The name of the header. -
value
The value of the header.
-
-
Constructor Details
-
EmailHeader
Construct a EmailHeader object.- Parameters:
name
- name of the headervalue
- value of the header
-
-
Method Details
-
parse
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 ornull
value.
-
getName
Returns the name of this header.- Returns:
- name of the header
-
getValue
Returns the value of this header.- Returns:
- value of the header
-
toString
-