Class MailDistribution

    • Field Detail

      • logger

        private static final Logger logger
      • DEBUG

        private static final boolean DEBUG
      • smtpServer

        private String smtpServer
      • subject

        private String subject
      • selector

        private String selector
    • Constructor Detail

      • MailDistribution

        public MailDistribution()
    • Method Detail

      • distribute

        public void distribute​(Message fullMessage)
                        throws Exception
        Description copied from interface: DistributionHandler
        Distributes the given message outside of the JORAM server.
        Specified by:
        distribute in interface DistributionHandler
        Parameters:
        fullMessage - the message to distribute
        Throws:
        Exception - if the message could not be distributed. The message will be forwarded to a DMQ, if any.
      • init

        public void init​(Properties properties,
                         boolean firstTime)
        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 fullMessage)
                          throws Exception
        Be careful, the message must be completely loaded (body).
        Parameters:
        fullMessage -
        Throws:
        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