javax.mail
Class Header

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

public class Header
extends java.lang.Object

The Header class stores a name/value pair to represent headers.

Author:
John Mani

Field Summary
protected  java.lang.String name
          The name of the header.
protected  java.lang.String value
          The value of the header.
 
Constructor Summary
Header(java.lang.String name, java.lang.String value)
          Construct a Header object.
 
Method Summary
 java.lang.String getName()
          Returns the name of this header.
 java.lang.String getValue()
          Returns 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.

Since:
JavaMail 1.4

value

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

Since:
JavaMail 1.4
Constructor Detail

Header

public Header(java.lang.String name,
              java.lang.String value)
Construct a Header object.

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

getName

public java.lang.String getName()
Returns the name of this header.

Returns:
name of the header

getValue

public java.lang.String getValue()
Returns the value of this header.

Returns:
value of the header


Submit a bug or feature

Copyright © 2009-2011, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.

Generated on 10-February-2011 12:41


Spec-Zone.ru - all specs in one place



free hit counter