Class MailAcquisition

    • Field Detail

      • logger

        private static final Logger logger
      • DEBUG

        private static final boolean DEBUG
      • popServer

        private String popServer
      • popUser

        private String popUser
      • popPassword

        private String popPassword
      • expunge

        private boolean expunge
      • store

        private Store store
      • folder

        private Folder folder
      • persistent

        boolean persistent
    • Constructor Detail

      • MailAcquisition

        public MailAcquisition()
    • Method Detail

      • retrieve

        public void retrieve​(ReliableTransmitter transmitter)
                      throws Exception
        Description copied from interface: AcquisitionHandler
        Retrieves one or more message from an external source (e-mail, ftp, ...). Message properties such as priority, expiration or persistence will be set afterwards by the AcquisitionModule.

        If the external source is reliable, acknowledgment can be done safely after transmitting the message using the transmitter.
        Specified by:
        retrieve in interface AcquisitionHandler
        Parameters:
        transmitter - a transmitter used to transmit retrieved messages to the MOM reliably.
        Throws:
        Exception
      • closeFolder

        public void closeFolder​(List msgs,
                                boolean expunge)
      • setProperties

        public void setProperties​(Properties properties)
        Description copied from interface: AcquisitionHandler
        Configures the handler with the given properties. This method is called one time before the first call to retrieve and then when the acquisition destination receives a configuration message.
        Specified by:
        setProperties in interface AcquisitionHandler
        Parameters:
        properties - The new set of properties.
      • close

        public void close()
        Description copied from interface: AcquisitionHandler
        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 AcquisitionHandler