1. /*
  2. * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
  3. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  4. */
  5. package javax.mail;
  6. /**
  7. * The Header class stores a name/value pair to represent headers.
  8. *
  9. * @author John Mani
  10. */
  11. public class Header {
  12. private String name;
  13. private String value;
  14. /**
  15. * Construct a Header object.
  16. *
  17. * @param name name of the header
  18. * @param value value of the header
  19. */
  20. public Header(String name, String value) {
  21. this.name = name;
  22. this.value = value;
  23. }
  24. /**
  25. * Returns the name of this header.
  26. *
  27. * @return name of the header
  28. */
  29. public String getName() {
  30. return name;
  31. }
  32. /**
  33. * Returns the value of this header.
  34. *
  35. * @return value of the header
  36. */
  37. public String getValue() {
  38. return value;
  39. }
  40. }