View Javadoc
1 package org.hedwig.core; 2 3 import java.io.InputStream; 4 import java.util.List; 5 import java.util.Map; 6 7 import javax.mail.Folder; 8 import javax.mail.MessagingException; 9 import javax.mail.Session; 10 import javax.mail.internet.InternetHeaders; 11 import javax.mail.internet.MimeMessage; 12 13 /*** 14 * @author Keith Gaddis 15 * 16 * enclosing_type 17 */ 18 public class MimeEnvelope extends MimeMessage implements IEnvelope { 19 20 private long _id; 21 /*** 22 * Constructor for MimeEnvelope. 23 * @param arg0 24 */ 25 public MimeEnvelope(Session arg0) { 26 super(arg0); 27 } 28 29 /*** 30 * Constructor for MimeEnvelope. 31 * @param arg0 32 * @param arg1 33 * @throws MessagingException 34 */ 35 public MimeEnvelope(Session arg0, InputStream arg1) throws MessagingException { 36 super(arg0, arg1); 37 } 38 39 /*** 40 * Constructor for MimeEnvelope. 41 * @param arg0 42 * @throws MessagingException 43 */ 44 public MimeEnvelope(MimeMessage arg0) throws MessagingException { 45 super(arg0); 46 } 47 48 /*** 49 * Constructor for MimeEnvelope. 50 * @param arg0 51 * @param arg1 52 */ 53 public MimeEnvelope(Folder arg0, int arg1) { 54 super(arg0, arg1); 55 } 56 57 /*** 58 * Constructor for MimeEnvelope. 59 * @param arg0 60 * @param arg1 61 * @param arg2 62 * @throws MessagingException 63 */ 64 public MimeEnvelope(Folder arg0, InputStream arg1, int arg2) throws MessagingException { 65 super(arg0, arg1, arg2); 66 } 67 68 /*** 69 * Constructor for MimeEnvelope. 70 * @param arg0 71 * @param arg1 72 * @param arg2 73 * @param arg3 74 * @throws MessagingException 75 */ 76 public MimeEnvelope(Folder arg0, InternetHeaders arg1, byte[] arg2, int arg3) throws MessagingException { 77 super(arg0, arg1, arg2, arg3); 78 } 79 80 public MimeEnvelope(){ 81 super(Session.getInstance(System.getProperties() )); 82 } 83 /*** 84 * @see org.hedwig.core.IEnvelope#getAttributes() 85 */ 86 public Map getAttributes() { 87 return null; 88 } 89 90 /*** 91 * @see org.hedwig.core.IEnvelope#getParts() 92 */ 93 public List getParts() { 94 return null; 95 } 96 97 /*** 98 * @see org.hedwig.core.IEnvelope#getAttribute(java.lang.String) 99 */ 100 public String getAttribute(String name) { 101 return null; 102 } 103 104 /*** 105 * @see javax.mail.Part#addHeader(java.lang.String, java.lang.String) 106 */ 107 public void addAttribute(String arg0, String arg1) { 108 try{ 109 super.addHeader(arg0, arg1); 110 }catch(MessagingException e){ 111 112 } 113 } 114 115 /*** 116 * @see org.hedwig.core.IEnvelope#isViewed() 117 */ 118 public boolean isViewed() { 119 return false; 120 } 121 122 /*** 123 * @see org.hedwig.core.IEnvelope#setViewed(boolean) 124 */ 125 public void setViewed(boolean unread) { 126 } 127 128 /*** 129 * Returns the id. 130 * @return long 131 */ 132 private long getId() { 133 return _id; 134 } 135 136 /*** 137 * Sets the id. 138 * @param id The id to set 139 */ 140 private void setId(long id) { 141 _id= id; 142 } 143 144 }

This page was automatically generated by Maven