javax.mail
Class Header
java.lang.Object
javax.mail.Header
- Direct Known Subclasses:
- InternetHeaders.InternetHeader
- public class Header
- extends java.lang.Object
Class representing a header field.
- Version:
- $Rev: 125724 $ $Date: 2005-01-19 23:11:12 -0700 (Wed, 19 Jan 2005) $
Field Summary |
private java.lang.String |
name
|
private java.lang.String |
value
|
Constructor Summary |
Header(java.lang.String name,
java.lang.String value)
Constructor initializing all immutable fields. |
Method Summary |
java.lang.String |
getName()
Return the name of this header. |
java.lang.String |
getValue()
Return the value of this header. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name
private final java.lang.String name
value
private final java.lang.String value
Header
public Header(java.lang.String name,
java.lang.String value)
- Constructor initializing all immutable fields.
- Parameters:
name
- the name of this headervalue
- the value of this header
getName
public java.lang.String getName()
- Return the name of this header.
- Returns:
- the name of this header
getValue
public java.lang.String getValue()
- Return the value of this header.
- Returns:
- the value of this header