javax.mail.event
Class TransportEvent

java.lang.Object
  extended by java.util.EventObject
      extended by javax.mail.event.MailEvent
          extended by javax.mail.event.TransportEvent
All Implemented Interfaces:
Serializable

public class TransportEvent
extends MailEvent

Version:
$Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
See Also:
Serialized Form

Field Summary
protected  Address[] invalid
          Addresses that are invalid.
static int MESSAGE_DELIVERED
          Indicates that the message has successfully been delivered to all recipients.
static int MESSAGE_NOT_DELIVERED
          Indicates that no messages could be delivered.
static int MESSAGE_PARTIALLY_DELIVERED
          Indicates that some of the messages were successfully delivered but that some failed.
protected  Message msg
          The message associated with this event.
protected  int type
          The event type.
protected  Address[] validSent
          Addresses to which the message was successfully delivered.
protected  Address[] validUnsent
          Addresses which are valid but to which the message was not sent.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
TransportEvent(Transport transport, int type, Address[] validSent, Address[] validUnsent, Address[] invalid, Message message)
          Construct a new event,
 
Method Summary
 void dispatch(Object listener)
           
 Address[] getInvalidAddresses()
           
 Message getMessage()
           
 int getType()
           
 Address[] getValidSentAddresses()
           
 Address[] getValidUnsentAddresses()
           
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MESSAGE_DELIVERED

public static final int MESSAGE_DELIVERED
Indicates that the message has successfully been delivered to all recipients.

See Also:
Constant Field Values

MESSAGE_NOT_DELIVERED

public static final int MESSAGE_NOT_DELIVERED
Indicates that no messages could be delivered.

See Also:
Constant Field Values

MESSAGE_PARTIALLY_DELIVERED

public static final int MESSAGE_PARTIALLY_DELIVERED
Indicates that some of the messages were successfully delivered but that some failed.

See Also:
Constant Field Values

type

protected int type
The event type.


validSent

protected transient Address[] validSent
Addresses to which the message was successfully delivered.


validUnsent

protected transient Address[] validUnsent
Addresses which are valid but to which the message was not sent.


invalid

protected transient Address[] invalid
Addresses that are invalid.


msg

protected transient Message msg
The message associated with this event.

Constructor Detail

TransportEvent

public TransportEvent(Transport transport,
                      int type,
                      Address[] validSent,
                      Address[] validUnsent,
                      Address[] invalid,
                      Message message)
Construct a new event,

Parameters:
transport - the transport attempting to deliver the message
type - the event type
validSent - addresses to which the message was successfully delivered
validUnsent - addresses which are valid but to which the message was not sent
invalid - invalid addresses
message - the associated message
Method Detail

getValidSentAddresses

public Address[] getValidSentAddresses()

getValidUnsentAddresses

public Address[] getValidUnsentAddresses()

getInvalidAddresses

public Address[] getInvalidAddresses()

getMessage

public Message getMessage()

getType

public int getType()

dispatch

public void dispatch(Object listener)
Specified by:
dispatch in class MailEvent


Copyright © 2003-2009 The Apache Software Foundation. All Rights Reserved.