Movatterモバイル変換


[0]ホーム

URL:


         


Class TransportEvent

java.lang.Object  |  +--java.util.EventObject        |        +--javax.mail.event.MailEvent              |              +--javax.mail.event.TransportEvent
All Implemented Interfaces:
java.io.Serializable

public classTransportEvent
extendsMailEvent

This class models Transport events.

See Also:
Transport,TransportListener,Serialized Form

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

MESSAGE_DELIVERED

public static final intMESSAGE_DELIVERED
Message has beensuccessfully 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,

MESSAGE_NOT_DELIVERED

public static final intMESSAGE_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.

MESSAGE_PARTIALLY_DELIVERED

public static final intMESSAGE_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.

type

protected inttype
The event type.

validSent

protected transientAddress[]validSent

validUnsent

protected transientAddress[]validUnsent

invalid

protected transientAddress[]invalid

msg

protected transientMessagemsg

TransportEvent

publicTransportEvent(Transport transport,                      int type,Address[] validSent,Address[] validUnsent,Address[] invalid,Message msg)
Constructor.
Parameters:
source - The Transport object

getType

public intgetType()
Return the type of this event.
Returns:
type

getValidSentAddresses

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

getValidUnsentAddresses

publicAddress[]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

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

dispatch

public voiddispatch(java.lang.Object listener)
Invokes the appropriate TransportListener method.
Overrides:
dispatch in classMailEvent

         


[8]ページ先頭

©2009-2025 Movatter.jp