Top Description Fields Constructors Methods
javax.mail

public Class Header

extends Object
Class Inheritance
Known Direct Subclasses
javax.mail.internet.InternetHeaders.InternetHeader

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

Field Summary

Modifier and TypeField and Description
protected String
name

The name of the header.

protected String
value

The value of the header.

Constructor Summary

AccessConstructor and Description
public
Header(String
name of the header
name
,
String
value of the header
value
)

Construct a Header object.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

name of the header
getName
()

Returns the name of this header.

public String

Returns:

value of the header
getValue
()

Returns the value of this header.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

nameback to summary
protected String name

The name of the header.

Since
JavaMail 1.4
valueback to summary
protected String value

The value of the header.

Since
JavaMail 1.4

Constructor Detail

Headerback to summary
public Header(String name, String value)

Construct a Header object.

Parameters
name:String

name of the header

value:String

value of the header

Method Detail

getNameback to summary
public String getName()

Returns the name of this header.

Returns:String

name of the header

getValueback to summary
public String getValue()

Returns the value of this header.

Returns:String

value of the header