javax.mail
Class Header

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

public class Header
extends Object

Class representing a header field.

Version:
$Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $

Field Summary
protected  String name
          The name of the header.
protected  String value
          The header value (can be null).
 
Constructor Summary
Header(String name, String value)
          Constructor initializing all immutable fields.
 
Method Summary
 String getName()
          Return the name of this header.
 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 String name
The name of the header.


value

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

Constructor Detail

Header

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

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

getName

public String getName()
Return the name of this header.

Returns:
the name of this header

getValue

public String getValue()
Return the value of this header.

Returns:
the value of this header


Copyright © 2003-2009 The Apache Software Foundation. All Rights Reserved.