public class MailDistribution extends Object implements DistributionHandler
Modifier and Type | Field and Description |
---|---|
private String |
bcc |
private String |
cc |
private String |
from |
static org.objectweb.util.monolog.api.Logger |
logger |
private String |
selector |
private String |
smtpServer |
private String |
subject |
private String |
to |
Constructor and Description |
---|
MailDistribution() |
Modifier and Type | Method and Description |
---|---|
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 MimeBodyPart |
getMultipartProp(Message msg) |
void |
init(Properties properties,
boolean firstTime)
Configures the handler with the given properties.
|
void |
sendJavaMail(Message message) |
public static org.objectweb.util.monolog.api.Logger logger
private String smtpServer
private String to
private String cc
private String bcc
private String from
private String subject
private String selector
public void distribute(Message message) throws Exception
DistributionHandler
distribute
in interface DistributionHandler
message
- the message to distributeException
- if the message could not be distributed. The message will
be forwarded to a DMQ, if any.public void init(Properties properties, boolean firstTime)
DistributionHandler
init
in interface DistributionHandler
properties
- The initial set of properties.private MimeBodyPart getMultipartProp(Message msg) throws Exception
Exception
public void close()
DistributionHandler
close
in interface DistributionHandler
Copyright © 2013 ScalAgent D.T.. All Rights Reserved.