- /*
- * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
- * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
- */
-
- package javax.mail;
-
-
- /**
- * The Header class stores a name/value pair to represent headers.
- *
- * @author John Mani
- */
-
- public class Header {
-
- private String name;
- private String value;
-
- /**
- * Construct a Header object.
- *
- * @param name name of the header
- * @param value value of the header
- */
- public Header(String name, String value) {
- this.name = name;
- this.value = value;
- }
-
- /**
- * Returns the name of this header.
- *
- * @return name of the header
- */
- public String getName() {
- return name;
- }
-
- /**
- * Returns the value of this header.
- *
- * @return value of the header
- */
- public String getValue() {
- return value;
- }
- }