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:
java.io.Serializable

public class TransportEvent
extends MailEvent

A transport event.

Version:
1.3
Author:
Chris Burdess
See Also:
Serialized Form

Field Summary
protected  Address[] invalid
           
static int MESSAGE_DELIVERED
          The message was successfully delivered to all recipients.
static int MESSAGE_NOT_DELIVERED
          The message was not sent.
static int MESSAGE_PARTIALLY_DELIVERED
          The message was successfully sent to some but not all of the recipients.
protected  Message msg
           
protected  int type
          The event type.
protected  Address[] validSent
           
protected  Address[] validUnsent
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
TransportEvent(Transport transport, int type, Address[] validSent, Address[] validUnsent, Address[] invalid, Message msg)
          Constructor.
 
Method Summary
 void dispatch(java.lang.Object listener)
          Invokes the appropriate listener method.
 Address[] getInvalidAddresses()
          Returns the addresses to which this message could not be sent.
 Message getMessage()
          Returns the message.
 int getType()
          Returns the type of this event.
 Address[] getValidSentAddresses()
          Returns the addresses to which this message was delivered succesfully.
 Address[] getValidUnsentAddresses()
          Returns the addresses that are valid but to which this message was not delivered.
 
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
The message was successfully delivered to all recipients.

See Also:
Constant Field Values

MESSAGE_NOT_DELIVERED

public static final int MESSAGE_NOT_DELIVERED
The message was not sent.

See Also:
Constant Field Values

MESSAGE_PARTIALLY_DELIVERED

public static final int MESSAGE_PARTIALLY_DELIVERED
The message was successfully sent to some but not all of the recipients.

See Also:
Constant Field Values

type

protected int type
The event type.


validSent

protected transient Address[] validSent

validUnsent

protected transient Address[] validUnsent

invalid

protected transient Address[] invalid

msg

protected transient Message msg
Constructor Detail

TransportEvent

public TransportEvent(Transport transport,
                      int type,
                      Address[] validSent,
                      Address[] validUnsent,
                      Address[] invalid,
                      Message msg)
Constructor.

Parameters:
source - the transport
type - the event type
validSent - the valid sent addresses
validUnsent - the valid unsent addresses
invalid - the invalid addresses
msg - the message
Method Detail

getType

public int getType()
Returns the type of this event.


getValidSentAddresses

public Address[] getValidSentAddresses()
Returns the addresses to which this message was delivered succesfully.


getValidUnsentAddresses

public Address[] getValidUnsentAddresses()
Returns the addresses that are valid but to which this message was not delivered.


getInvalidAddresses

public Address[] getInvalidAddresses()
Returns the addresses to which this message could not be sent.


getMessage

public Message getMessage()
Returns the message.


dispatch

public void dispatch(java.lang.Object listener)
Invokes the appropriate listener method.

Specified by:
dispatch in class MailEvent


© Copyright 2003, 2004 The Free Software Foundation, All rights reserved