com.scalagent.joram.mom.dest.mail
Class MailDistribution
java.lang.Object
com.scalagent.joram.mom.dest.mail.MailDistribution
- All Implemented Interfaces:
- DistributionHandler
public class MailDistribution
- extends java.lang.Object
- implements DistributionHandler
Field Summary |
private java.lang.String |
bcc
|
private java.lang.String |
cc
|
private java.lang.String |
from
|
static org.objectweb.util.monolog.api.Logger |
logger
|
private java.lang.String |
selector
|
private java.lang.String |
smtpServer
|
private java.lang.String |
subject
|
private java.lang.String |
to
|
Method Summary |
void |
close()
Closes this handler and releases any system resources associated to it. |
void |
distribute(Message message)
Distributes the given message outside of the JORAM server. |
private javax.mail.internet.MimeBodyPart |
getMultipartProp(Message msg)
|
void |
init(java.util.Properties properties)
Configures the handler with the given properties. |
void |
sendJavaMail(Message message)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
public static org.objectweb.util.monolog.api.Logger logger
smtpServer
private java.lang.String smtpServer
to
private java.lang.String to
cc
private java.lang.String cc
bcc
private java.lang.String bcc
from
private java.lang.String from
subject
private java.lang.String subject
selector
private java.lang.String selector
MailDistribution
public MailDistribution()
distribute
public void distribute(Message message)
throws java.lang.Exception
- Description copied from interface:
DistributionHandler
- Distributes the given message outside of the JORAM server.
- Specified by:
distribute
in interface DistributionHandler
- Parameters:
message
- the message to distribute
- Throws:
java.lang.Exception
init
public void init(java.util.Properties properties)
- Description copied from interface:
DistributionHandler
- Configures the handler with the given properties.
- Specified by:
init
in interface DistributionHandler
- Parameters:
properties
- The initial set of properties.
sendJavaMail
public void sendJavaMail(Message message)
throws java.lang.Exception
- Throws:
java.lang.Exception
getMultipartProp
private javax.mail.internet.MimeBodyPart getMultipartProp(Message msg)
throws java.lang.Exception
- Throws:
java.lang.Exception
close
public void close()
- Description copied from interface:
DistributionHandler
- Closes this handler and releases any system resources associated to it.
There will be no subsequent call to this handler after it has been closed.
- Specified by:
close
in interface DistributionHandler
Copyright © 2010 ScalAgent D.T.. All Rights Reserved.