1 package alt.javax.mail.internet; 2 3 import alt.javax.mail.Message; 4 import alt.javax.mail.MessageImpl; 5 import alt.javax.mail.Session; 6 7 import javax.mail.Address ; 8 import javax.mail.Flags ; 9 import javax.mail.Folder ; 10 import javax.mail.MessagingException ; 11 import javax.mail.search.SearchTerm ; 12 import java.io.IOException ; 13 import java.io.InputStream ; 14 import java.io.OutputStream ; 15 import java.util.Enumeration ; 16 17 18 public class MimeMessageImpl extends MessageImpl implements MimeMessage { 19 private final javax.mail.internet.MimeMessage message; 20 21 public MimeMessageImpl(Session session) { 22 super(new javax.mail.internet.MimeMessage (session.getWrappedSession())); 23 message = (javax.mail.internet.MimeMessage )getRealMessage(); 24 } 25 26 public void setRecipient(javax.mail.Message.RecipientType type, Address address) throws MessagingException { 27 message.setRecipient(type, address); 28 } 29 30 public void addRecipient(javax.mail.Message.RecipientType type, Address address) throws MessagingException { 31 message.addRecipient(type, address); 32 } 33 34 public void setFlag(Flags.Flag flag, boolean b) throws MessagingException { 35 message.setFlag(flag, b); 36 } 37 38 public int getMessageNumber() { 39 return message.getMessageNumber(); 40 } 41 42 public Folder getFolder() { 43 return message.getFolder(); 44 } 45 46 public boolean isExpunged() { 47 return message.isExpunged(); 48 } 49 50 public boolean match(SearchTerm term) throws MessagingException { 51 return message.match(term); 52 } 53 54 public Address [] getAllRecipients() throws MessagingException { 55 return message.getAllRecipients(); 56 } 57 58 public void setRecipients(javax.mail.Message.RecipientType type, String s) throws MessagingException { 59 message.setRecipients(type, s); 60 } 61 62 public void addRecipients(javax.mail.Message.RecipientType type, String s) throws MessagingException { 63 message.addRecipients(type, s); 64 } 65 66 public Address [] getReplyTo() throws MessagingException { 67 return message.getReplyTo(); 68 } 69 70 public void setReplyTo(Address [] addresses) throws MessagingException { 71 message.setReplyTo(addresses); 72 } 73 74 public void setSubject(String s, String s1) throws MessagingException { 75 message.setSubject(s, s1); 76 } 77 78 public String getEncoding() throws MessagingException { 79 return message.getEncoding(); 80 } 81 82 public String getContentID() throws MessagingException { 83 return message.getContentID(); 84 } 85 86 public void setContentID(String s) throws MessagingException { 87 message.setContentID(s); 88 } 89 90 public String getContentMD5() throws MessagingException { 91 return message.getContentMD5(); 92 } 93 94 public void setContentMD5(String s) throws MessagingException { 95 message.setContentMD5(s); 96 } 97 98 public void setDescription(String s, String s1) throws MessagingException { 99 message.setDescription(s, s1); 100 } 101 102 public String [] getContentLanguage() throws MessagingException { 103 return message.getContentLanguage(); 104 } 105 106 public void setContentLanguage(String [] strings) throws MessagingException { 107 message.setContentLanguage(strings); 108 } 109 110 public String getMessageID() throws MessagingException { 111 return message.getMessageID(); 112 } 113 114 public InputStream getRawInputStream() throws MessagingException { 115 return message.getRawInputStream(); 116 } 117 118 public void setText(String s, String s1) throws MessagingException { 119 message.setText(s, s1); 120 } 121 122 public void writeTo(OutputStream stream, String [] strings) throws IOException , MessagingException { 123 message.writeTo(stream, strings); 124 } 125 126 public String getHeader(String s, String s1) throws MessagingException { 127 return message.getHeader(s, s1); 128 } 129 130 public void addHeaderLine(String s) throws MessagingException { 131 message.addHeaderLine(s); 132 } 133 134 public Enumeration getAllHeaderLines() throws MessagingException { 135 return message.getAllHeaderLines(); 136 } 137 138 public Enumeration getMatchingHeaderLines(String [] strings) throws MessagingException { 139 return message.getMatchingHeaderLines(strings); 140 } 141 142 public Enumeration getNonMatchingHeaderLines(String [] strings) throws MessagingException { 143 return message.getNonMatchingHeaderLines(strings); 144 } 145 146 public synchronized boolean isSet(Flags.Flag flag) throws MessagingException { 147 return message.isSet(flag); 148 } 149 } 150 | Popular Tags |