|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.knowgate.hipermail.RecipientsHelper
public class RecipientsHelper
Helper class for working with recipients lists
| Constructor Summary | |
|---|---|
RecipientsHelper()
Default Constructor |
|
RecipientsHelper(MimeMessage oMsg)
Create RecipientsHelper and fill it with MimeMessage recipients |
|
RecipientsHelper(java.lang.String sWorkAreaGUID)
Construct and set default workarea for this recipients helper |
|
| Method Summary | |
|---|---|
static int |
acknowledgeNotification(JDCConnection oCon,
MultipartReport oCnt)
|
void |
addRecipients(Address[] oAddrs,
Message.RecipientType oRecTp)
Add recipients of a given type |
static void |
clearRecipientsForMessage(JDCConnection oConn,
java.lang.String sGuMimeMsg)
Delete rows at k_inet_addrs table for given message |
java.lang.String[] |
getAddresses(Message.RecipientType oRecTp)
Get array with recipients of a given type |
static InternetAddress |
getFromAddress(MimeMessage oMsg)
|
Address[] |
getRecipients(Message.RecipientType oRecTp)
Get array with recipients of a given type |
static InternetAddress |
getReplyAddress(MimeMessage oMsg)
|
boolean |
hasLists()
If called after parseRecipientsList(), this methods returns whether or not any distribution list was expanded during the parsing process |
static java.lang.String |
joinAddressList(Address[] aRecipients)
Join mail addresses array on a single String |
void |
parseRecipientsList(JDCConnection oAdCn,
java.lang.String sDelimitedList,
Message.RecipientType oRecTp)
Parse a String of comma or semicolon delimited addresses Addresses may be of any format accepted by DBInetAddr.parseAddress() method. |
void |
setRecipients(Address[] oAddrs,
Message.RecipientType oRecTp)
|
void |
setRecipients(MimeMessage oMsg)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RecipientsHelper()
public RecipientsHelper(java.lang.String sWorkAreaGUID)
public RecipientsHelper(MimeMessage oMsg)
throws MessagingException
oMsg - MimeMessage
MessagingException| Method Detail |
|---|
public boolean hasLists()
public java.lang.String[] getAddresses(Message.RecipientType oRecTp)
oRecTp - RecipientType
public Address[] getRecipients(Message.RecipientType oRecTp)
oRecTp - RecipientType
public void setRecipients(Address[] oAddrs,
Message.RecipientType oRecTp)
throws java.lang.ClassCastException
java.lang.ClassCastException
public void setRecipients(MimeMessage oMsg)
throws java.lang.ClassCastException,
MessagingException
java.lang.ClassCastException
MessagingException
public void addRecipients(Address[] oAddrs,
Message.RecipientType oRecTp)
throws java.lang.ClassCastException
oAddrs - InternetAddress[]oRecTp - RecipientType
java.lang.ClassCastExceptionpublic static java.lang.String joinAddressList(Address[] aRecipients)
aRecipients - Address[]
public void parseRecipientsList(JDCConnection oAdCn,
java.lang.String sDelimitedList,
Message.RecipientType oRecTp)
throws java.sql.SQLException,
java.lang.IndexOutOfBoundsException,
java.lang.NullPointerException,
AddressException,
java.io.UnsupportedEncodingException
Parse a String of comma or semicolon delimited addresses
Addresses may be of any format accepted by DBInetAddr.parseAddress() method.
oAdCn - JDCConnectionsDelimitedList - String with addresses to be parsedoRecTp - RecipientType
java.sql.SQLException
java.lang.IndexOutOfBoundsException
java.lang.NullPointerException
AddressException
java.io.UnsupportedEncodingException
public static void clearRecipientsForMessage(JDCConnection oConn,
java.lang.String sGuMimeMsg)
throws java.sql.SQLException
oConn - JDCConnectionsGuMimeMsg - String GUID of message which addresses are to be cleared
java.sql.SQLException
public static InternetAddress getFromAddress(MimeMessage oMsg)
throws MessagingException
MessagingException
public static InternetAddress getReplyAddress(MimeMessage oMsg)
throws MessagingException
MessagingException
public static int acknowledgeNotification(JDCConnection oCon,
MultipartReport oCnt)
throws java.sql.SQLException,
java.io.IOException,
MessagingException
java.sql.SQLException
java.io.IOException
MessagingException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||