Class TransportEvent

    • 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