Class InternetHeaders.InternetHeader

  extended by javax.mail.Header
      extended by javax.mail.internet.InternetHeaders.InternetHeader
Enclosing class:

protected static final class InternetHeaders.InternetHeader
extends Header

An individual internet header. This class is only used by subclasses of InternetHeaders.

An InternetHeader object with a null value is used as a placeholder for headers of that name, to preserve the order of headers. A placeholder InternetHeader object with a name of ":" marks the location in the list of headers where new headers are added by default.

JavaMail 1.4

Field Summary
Fields inherited from class javax.mail.Header
name, value
Constructor Summary
InternetHeaders.InternetHeader(java.lang.String l)
          Constructor that takes a line and splits out the header name.
InternetHeaders.InternetHeader(java.lang.String n, java.lang.String v)
          Constructor that takes a header name and value.
Method Summary
 java.lang.String getValue()
          Return the "value" part of the header line.
Methods inherited from class javax.mail.Header
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public InternetHeaders.InternetHeader(java.lang.String l)
Constructor that takes a line and splits out the header name.


public InternetHeaders.InternetHeader(java.lang.String n,
                                      java.lang.String v)
Constructor that takes a header name and value.

Method Detail


public java.lang.String getValue()
Return the "value" part of the header line.

getValue in class Header
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

Scripting on this page tracks web page traffic, but does not change the content in any way.