org.hedwig.core
Class Envelope

java.lang.Object
  |
  +--org.hedwig.core.Envelope

public class Envelope
extends java.lang.Object

Author:
Keith Gaddis

Constructor Summary
Envelope()
           
 
Method Summary
 void addHeader(java.lang.String name, java.lang.String value)
           
 java.lang.String getAttribute(java.lang.String name)
           
 java.util.Map getAttributes()
          Returns the headers.
 Attribute getDate()
           
 java.util.Date getDateReceived()
          Returns the dateReceived.
 Attribute getFrom()
           
 java.util.List getParts()
          Returns the parts.
 boolean isViewed()
          Returns the unread.
 void setDate(Attribute date)
           
 void setDateReceived(java.util.Date dateReceived)
          Sets the dateReceived.
 void setFrom(Attribute hdr)
           
 void setViewed(boolean unread)
          Sets the unread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Envelope

public Envelope()
Method Detail

getAttributes

public java.util.Map getAttributes()
Returns the headers.

Returns:
Map

getParts

public java.util.List getParts()
Returns the parts.

Returns:
List

getAttribute

public java.lang.String getAttribute(java.lang.String name)

addHeader

public void addHeader(java.lang.String name,
                      java.lang.String value)

getDateReceived

public java.util.Date getDateReceived()
Returns the dateReceived.

Returns:
Date

isViewed

public boolean isViewed()
Returns the unread.

Returns:
boolean

setDateReceived

public void setDateReceived(java.util.Date dateReceived)
Sets the dateReceived.

Parameters:
dateReceived - The dateReceived to set

setViewed

public void setViewed(boolean unread)
Sets the unread.

Parameters:
unread - The unread to set

getFrom

public Attribute getFrom()

setFrom

public void setFrom(Attribute hdr)

getDate

public Attribute getDate()

setDate

public void setDate(Attribute date)


Copyright © 2003-2003 Sourceforge. All Rights Reserved.