public class MailAcquisition extends Object implements AcquisitionHandler
Modifier and Type | Field and Description |
---|---|
private boolean |
expunge |
private Folder |
folder |
private static org.objectweb.util.monolog.api.Logger |
logger |
(package private) boolean |
persistent |
private String |
popPassword |
private String |
popServer |
private String |
popUser |
private Store |
store |
Constructor and Description |
---|
MailAcquisition() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this handler and releases any system resources associated to it.
|
void |
closeFolder(List msgs,
boolean expunge) |
private String |
getBody(Message message) |
Message[] |
popMail(String popServer,
String popUser,
String popPassword,
boolean expunge) |
void |
retrieve(ReliableTransmitter transmitter)
Retrieves one or more message from an external source (e-mail, ftp, ...).
|
void |
setProperties(Properties properties)
Configures the handler with the given properties.
|
private static final org.objectweb.util.monolog.api.Logger logger
private String popServer
private String popUser
private String popPassword
private boolean expunge
private Store store
private Folder folder
boolean persistent
public void retrieve(ReliableTransmitter transmitter) throws Exception
AcquisitionHandler
AcquisitionModule
.retrieve
in interface AcquisitionHandler
transmitter
- a transmitter used to transmit retrieved messages to the MOM
reliably.Exception
public Message[] popMail(String popServer, String popUser, String popPassword, boolean expunge)
public void closeFolder(List msgs, boolean expunge)
public void setProperties(Properties properties)
AcquisitionHandler
setProperties
in interface AcquisitionHandler
properties
- The new set of properties.private String getBody(Message message) throws Exception, MessagingException
Exception
MessagingException
public void close()
AcquisitionHandler
close
in interface AcquisitionHandler
Copyright © 2021 ScalAgent D.T.. All rights reserved.