Package javax.mail

Class Header

  • Direct Known Subclasses:
    InternetHeaders.InternetHeader

    public class Header
    extends java.lang.Object
    A header is a name/value pair containing metadata about a message's content and/or routing information.
    Version:
    1.4
    Author:
    Chris Burdess
    • Constructor Summary

      Constructors 
      Constructor Description
      Header​(java.lang.String name, java.lang.String value)
      Construct a header.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getName()
      Returns the name of this header.
      java.lang.String getValue()
      Returns the value of this header.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Header

        public Header​(java.lang.String name,
                      java.lang.String value)
        Construct a header.
        Parameters:
        name - name of the header
        value - value of the header
    • Method Detail

      • getName

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

        public java.lang.String getValue()
        Returns the value of this header.