javax.mail
Class Header

java.lang.Object
  extended by javax.mail.Header
Direct Known Subclasses:
InternetHeaders.InternetHeader

public class Header
extends java.lang.Object

Class representing a header field.

Version:
$Rev: 467553 $ $Date: 2006-10-25 06:01:51 +0200 (Wed, 25 Oct 2006) $

Field Summary
protected  java.lang.String name
          The name of the header.
protected  java.lang.String value
          The header value (can be null).
 
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
 

Field Detail

name

protected java.lang.String name
The name of the header.


value

protected java.lang.String value
The header value (can be null).

Constructor Detail

Header

public Header(java.lang.String name,
              java.lang.String value)
Constructor initializing all immutable fields.

Parameters:
name - the name of this header
value - the value of this header
Method Detail

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


Copyright © {inceptionYear}-2007 null. All Rights Reserved.