Jumpi v1.2.0

org.jumpi.impl.connector.email
Class EmailDestination

java.lang.Object
  |
  +--org.jumpi.impl.AbstractDestination
        |
        +--org.jumpi.impl.connector.email.EmailDestination
All Implemented Interfaces:
Destination, Destination

public class EmailDestination
extends AbstractDestination

Destination managed by the EmailConnector, representing an Email address. A client can use the EmailDestination to create MimeMessages, see getMimeMessage().


Field Summary
 
Fields inherited from class org.jumpi.impl.AbstractDestination
connector_, controller_, props_, url_, wildcard_
 
Fields inherited from interface org.jumpi.Destination
PROTOCOL_SEPARATOR, SEPARATOR
 
Constructor Summary
EmailDestination(java.lang.String url, Controller controller, EmailConnector connector)
          Creates a new EmailDestination object, not related to any recipient.
EmailDestination(java.lang.String url, Controller controller, EmailConnector connector, javax.mail.internet.InternetAddress address)
          Creates a new EmailDestination object representing an Email addressee.
 
Method Summary
 javax.mail.internet.InternetAddress getAddress()
          Returns the addressee.
 javax.mail.internet.MimeMessage getMimeMessage()
          Returns an empty MimeMessage which can be sent via the EmailConnector associated with this Destination.
 java.lang.String getUrl()
          Returns the normalized Url.
 
Methods inherited from class org.jumpi.impl.AbstractDestination
equals, getConnector, getController, getControllerName, getProperties, hashCode, isWildcard, matches, setProperties
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmailDestination

public EmailDestination(java.lang.String url,
                        Controller controller,
                        EmailConnector connector,
                        javax.mail.internet.InternetAddress address)
Creates a new EmailDestination object representing an Email addressee.

Parameters:
url - the Url, representing the url prefix of an EmailConnector.
controller - the Controller instance managing the Connector.
connector - the Connector instance.
address - the recipient mail address.

EmailDestination

public EmailDestination(java.lang.String url,
                        Controller controller,
                        EmailConnector connector)
Creates a new EmailDestination object, not related to any recipient.

Parameters:
url - the Url, representing the url prefix of an EmailConnector.
controller - the Controller instance managing the Connector.
connector - the Connector instance.
Method Detail

getUrl

public java.lang.String getUrl()
Returns the normalized Url.

Specified by:
getUrl in interface Destination
Specified by:
getUrl in class AbstractDestination
Returns:
the normalized Url.

getAddress

public javax.mail.internet.InternetAddress getAddress()
Returns the addressee.

Returns:
the addressee.

getMimeMessage

public javax.mail.internet.MimeMessage getMimeMessage()
Returns an empty MimeMessage which can be sent via the EmailConnector associated with this Destination.

Returns:
MimeMessage an empty email message.

Jumpi v1.2.0

Copyright 2003, Peter Jonathan Klauser.