com.ccg.net.email
Class DistributionList

java.lang.Object
  extended by com.ccg.net.email.DistributionList

public class DistributionList
extends Object

Class to manage a "distribution list" of zero of more email addresses.

 class Example {
   public void main(String[] args) {
     com.ccg.net.email.DistributionList o = new com.ccg.net.email.DistributionList();
          System.out.println(o);
   }
 }
 

Since:
1.0
Version:
$Revision: 1.2 $
Author:
$Author: pkb $ #see [class][#method]|Text

Constructor Summary
DistributionList()
          Initializes object to...
 
Method Summary
 void add(DistributionList dl)
           
 void add(Lookup l, javax.mail.Message.RecipientType def)
           
 void add(javax.mail.Message.RecipientType type, javax.mail.Address addr)
          One line summary...
static javax.mail.Address getAddress(Lookup l)
          One line summary...
 int getCount()
          Get number of addresses in the distribution list.
static javax.mail.Message.RecipientType getRecipientType(Lookup l, javax.mail.Message.RecipientType def)
          One line summary...
 int setMessageRecipients(javax.mail.Message m)
          One line summary...
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DistributionList

public DistributionList()
Initializes object to... It performs the following tasks:

Since:
1.0 #see [class][#meth]|Text
Method Detail

getCount

public int getCount()
Get number of addresses in the distribution list.

Parameters:
arg1 - arg1-describe
arg2 - arg2-describe
Returns:
ret-description
Throws:
exc - Why thrown
Since:
1.0 #see [class][#meth]|Text

add

public void add(javax.mail.Message.RecipientType type,
                javax.mail.Address addr)
One line summary... Describe...

Parameters:
arg1 - arg1-describe
arg2 - arg2-describe
Throws:
exc - Why thrown
Since:
1.0 #see [class][#meth]|Text

add

public void add(DistributionList dl)

add

public void add(Lookup l,
                javax.mail.Message.RecipientType def)
         throws javax.mail.internet.AddressException,
                UnsupportedEncodingException
Throws:
javax.mail.internet.AddressException
UnsupportedEncodingException

getAddress

public static javax.mail.Address getAddress(Lookup l)
                                     throws javax.mail.internet.AddressException,
                                            UnsupportedEncodingException
One line summary... Describe...

Parameters:
arg1 - arg1-describe
arg2 - arg2-describe
Returns:
ret-description
Throws:
exc - Why thrown
javax.mail.internet.AddressException
UnsupportedEncodingException
Since:
1.0 #see [class][#meth]|Text

getRecipientType

public static javax.mail.Message.RecipientType getRecipientType(Lookup l,
                                                                javax.mail.Message.RecipientType def)
One line summary... Describe...

Parameters:
arg1 - arg1-describe
arg2 - arg2-describe
Returns:
ret-description
Throws:
exc - Why thrown
Since:
1.0 #see [class][#meth]|Text

setMessageRecipients

public int setMessageRecipients(javax.mail.Message m)
                         throws javax.mail.MessagingException
One line summary... Describe...

Parameters:
arg1 - arg1-describe
arg2 - arg2-describe
Returns:
ret-description
Throws:
exc - Why thrown
javax.mail.MessagingException
Since:
1.0 #see [class][#meth]|Text

toString

public String toString()
Overrides:
toString in class Object


Copyright 1998-1998-2006 null. All Rights Reserved.