站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Java Platform, Enterprise Edition v1.4 API Specifications

Header (Java 2 Platform Ent. Ed. v1.4) - Java Platform, Enterprise Edition v1.4 API Specifications

JavaTM 2 Platform
Ent. Ed. v1.4

javax.mail
Class Header

java.lang.Object
  extended byjavax.mail.Header

public class Header
extends Object

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

Author:
John Mani

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

Constructor Detail

Header

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

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

getName

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

Returns:
name of the header

getValue

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

Returns:
value of the header

JavaTM 2 Platform
Ent. Ed. v1.4

Submit a bug or feature

Copyright 2003 Sun Microsystems, Inc. All rights reserved.