javax.mail
类 Header

java.lang.Object
  继承者 javax.mail.Header
直接已知子类:
InternetHeaders.InternetHeader

public class Header
extends Object

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

作者:
John Mani

字段摘要
protected  String name
          The name of the header.
protected  String value
          The value of the header.
 
构造方法摘要
Header(String name, String value)
          Construct a Header object.
 
方法摘要
 String getName()
          Returns the name of this header.
 String getValue()
          Returns the value of this header.
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

name

protected String name
The name of the header.

从以下版本开始:
JavaMail 1.4

value

protected String value
The value of the header.

从以下版本开始:
JavaMail 1.4
构造方法详细信息

Header

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

参数:
name - name of the header
value - value of the header
方法详细信息

getName

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

返回:
name of the header

getValue

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

返回:
value of the header


Copyright © 2013. All Rights Reserved.