Class Dispatcher

java.lang.Object
org.sonews.mlgw.Dispatcher

public class Dispatcher extends Object
Dispatches messages from mailing list to newsserver or vice versa.
Since:
sonews/0.5.0
Author:
Christian Lins
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    toGroup(javax.mail.Message msg)
    Posts a message that was received from a mailing list to the appropriate newsgroup.
    static boolean
    toList(Article article, String group)
    Mails a message received through NNTP to the appropriate mailing list.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Dispatcher

      public Dispatcher()
  • Method Details

    • toGroup

      public static boolean toGroup(javax.mail.Message msg)
      Posts a message that was received from a mailing list to the appropriate newsgroup. If the message already exists in the storage, this message checks if it must be posted in an additional group. This can happen for crosspostings in different mailing lists.
      Parameters:
      msg -
      Returns:
    • toList

      public static boolean toList(Article article, String group) throws IOException, javax.mail.MessagingException, StorageBackendException
      Mails a message received through NNTP to the appropriate mailing list. This method MAY be called several times by Post
      Parameters:
      article -
      group -
      Returns:
      Throws:
      IOException - article.
      javax.mail.MessagingException
      StorageBackendException