public class InternetMessageHeader
extends java.lang.Object
| Constructor and Description |
|---|
InternetMessageHeader()
Initializes a new instance of the InternetMessageHeader class.
|
InternetMessageHeader(java.lang.String name,
java.lang.String value)
Initializes a new instance of the InternetMessageHeader class.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName()
Gets the header name.
|
java.lang.String |
getValue()
Gets the Internet message header that are contained in an item in a mailbox.
|
void |
setName(java.lang.String name)
Sets the header name.
|
void |
setValue(java.lang.String value)
Sets the Internet message header that are contained in an item in a mailbox.
|
java.lang.String |
toString()
Converts the value of the current InternetMessageHeader object to its equivalent string representation.
|
public InternetMessageHeader()
public InternetMessageHeader(java.lang.String name,
java.lang.String value)
name - the namevalue - the valuepublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getName()
public void setName(java.lang.String name)
name - the new namepublic java.lang.String getValue()
public void setValue(java.lang.String value)
value - the new value