javax.mail.event

Class TransportEvent

    • Field Detail

      • MESSAGE_DELIVERED

        public static final int MESSAGE_DELIVERED
        Message has been successfully delivered to all recipients by the transport firing this event. validSent[] contains all the addresses this transport sent to successfully. validUnsent[] and invalid[] should be null,
        See Also:
        Constant Field Values
      • MESSAGE_NOT_DELIVERED

        public static final int MESSAGE_NOT_DELIVERED
        Message was not sent for some reason. validSent[] should be null. validUnsent[] may have addresses that are valid (but the message wasn't sent to them). invalid[] should likely contain invalid addresses.
        See Also:
        Constant Field Values
      • MESSAGE_PARTIALLY_DELIVERED

        public static final int MESSAGE_PARTIALLY_DELIVERED
        Message was successfully sent to some recipients but not to all. validSent[] holds addresses of recipients to whom the message was sent. validUnsent[] holds valid addresses to which the message was not sent. invalid[] holds invalid addresses, if any.
        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:
        transport - The Transport object
    • Method Detail

      • getType

        public int getType()
        Return the type of this event.
        Returns:
        type
      • getValidSentAddresses

        public Address[] getValidSentAddresses()
        Return the addresses to which this message was sent succesfully.
        Returns:
        Addresses to which the message was sent successfully or null
      • getValidUnsentAddresses

        public Address[] getValidUnsentAddresses()
        Return the addresses that are valid but to which this message was not sent.
        Returns:
        Addresses that are valid but to which the message was not sent successfully or null
      • getInvalidAddresses

        public Address[] getInvalidAddresses()
        Return the addresses to which this message could not be sent.
        Returns:
        Addresses to which the message sending failed or null
      • getMessage

        public Message getMessage()
        Get the Message object associated with this Transport Event.
        Returns:
        the Message object
        Since:
        JavaMail 1.2
      • dispatch

        public void dispatch(Object listener)
        Invokes the appropriate TransportListener method.
        Specified by:
        dispatch in class MailEvent

Nederlandse vertaling

U hebt gevraagd om deze site in het Nederlands te bezoeken. Voor nu wordt alleen de interface vertaald, maar nog niet alle inhoud.

Als je me wilt helpen met vertalingen, is je bijdrage welkom. Het enige dat u hoeft te doen, is u op de site registreren en mij een bericht sturen waarin u wordt gevraagd om u toe te voegen aan de groep vertalers, zodat u de gewenste pagina's kunt vertalen. Een link onderaan elke vertaalde pagina geeft aan dat u de vertaler bent en heeft een link naar uw profiel.

Bij voorbaat dank.

Document heeft de 11/06/2005 gemaakt, de laatste keer de 18/08/2025 gewijzigd
Bron van het afgedrukte document:https://www.gaudry.be/nl/java-api-javaee-rf-javax/mail/event/TransportEvent.html

De infobrol is een persoonlijke site waarvan de inhoud uitsluitend mijn verantwoordelijkheid is. De tekst is beschikbaar onder CreativeCommons-licentie (BY-NC-SA). Meer info op de gebruiksvoorwaarden en de auteur.

Referenties

  1. Bekijk - html-document Taal van het document:fr Manuel PHP : https://docs.oracle.com, TransportEvent (Java(TM) EE 7 Specification APIs)

Deze verwijzingen en links verwijzen naar documenten die geraadpleegd zijn tijdens het schrijven van deze pagina, of die aanvullende informatie kunnen geven, maar de auteurs van deze bronnen kunnen niet verantwoordelijk worden gehouden voor de inhoud van deze pagina.
De auteur van deze site is als enige verantwoordelijk voor de manier waarop de verschillende concepten, en de vrijheden die met de referentiewerken worden genomen, hier worden gepresenteerd. Vergeet niet dat u meerdere broninformatie moet doorgeven om het risico op fouten te verkleinen.