SK.gnome.dwarf.mail.smtp
Class Delivery

java.lang.Object
  extended bySK.gnome.dwarf.mail.smtp.Delivery
All Implemented Interfaces:
java.io.Serializable

public class Delivery
extends java.lang.Object
implements java.io.Serializable

Provides message delivery information.

This class provides some useful information about the particular mail delivery attempts. It may also be used to mark the message as delivered/rejected/failed by adding an instance of it to the message recipients represented by the Recipient objects.

See Also:
Serialized Form

Constructor Summary
protected Delivery(long time, java.lang.String status, java.lang.String message)
          Creates a new Delivery.
protected Delivery(Node node, long time, java.net.InetAddress host, java.lang.String status, java.lang.String message)
          Creates a new Delivery with the given delivery attempt reference.
 
Method Summary
 java.net.InetAddress getHost()
          Returns the target host address.
 java.lang.String getMessage()
          Returns the SMTP status message.
 java.lang.String getNodeId()
          Returns the delivery attempt identification.
 java.lang.String getStatus()
          Returns the SMTP status number.
 long getTime()
          Returns the time of the delivery attempt.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Delivery

protected Delivery(long time,
                   java.lang.String status,
                   java.lang.String message)
Creates a new Delivery.

Parameters:
time - the time of the delivery attempt
status - the SMTP status number in format of X.Y.Z
message - the SMTP status message

Delivery

protected Delivery(Node node,
                   long time,
                   java.net.InetAddress host,
                   java.lang.String status,
                   java.lang.String message)
Creates a new Delivery with the given delivery attempt reference.

Parameters:
node - the delivery attempt identification
time - the time of delivery attempt
host - the target host address
status - the SMTP status number in format of X.Y.Z
message - the SMTP status message
Method Detail

getNodeId

public java.lang.String getNodeId()
Returns the delivery attempt identification.

Returns:
the node identification

getTime

public long getTime()
Returns the time of the delivery attempt.

Returns:
the delivery time

getHost

public java.net.InetAddress getHost()
Returns the target host address.

Returns:
the host address

getStatus

public java.lang.String getStatus()
Returns the SMTP status number.

Returns:
the SMTP status code in the form of X.Y.Z

getMessage

public java.lang.String getMessage()
Returns the SMTP status message.

Returns:
the SMTP status message


Copyright (c) 2004-2005, Gnome Ltd. All rights reserved.