View Javadoc
1 /* 2 * Title: S/MIME Project 3 * Description: S/MIME email sending capabilities. 4 * @Author Dragan Radakovic 5 * @Version 2.0.1 6 */ 7 8 9 package javax.mail.internet; 10 11 12 import javax.mail.MessagingException; 13 14 15 /*** 16 * This class allows using protected method updateHeaders() from the classes 17 * javax.mail.internet.MimeBodyPart and javax.mail.internet.MimeMessage. It 18 * is advisable to perform methods of this class before performing writeTo 19 * method. 20 */ 21 public class HeadersUtil { 22 23 /*** 24 * Performs update of heder lines in MimeBodyPart. 25 * @param mimebodypart MimeBodyPart in which header lines are being updated 26 * @exception MessagingException 27 */ 28 public static void updateHeaders(MimeBodyPart mimebodypart) throws MessagingException { 29 mimebodypart.updateHeaders(); 30 } 31 32 /*** 33 * Performs update of heder lines in MimeMessage. 34 * @param mimemessage MimeMessage in which header lines are being updated 35 * @exception MessagingException 36 */ 37 public static void updateHeaders(MimeMessage mimemessage) throws MessagingException { 38 mimemessage.updateHeaders(); 39 } 40 } 41

This page was automatically generated by Maven