Searched refs:mp (Results 1 - 25 of 34) sorted by relevance

12

/javamail/mail/src/test/java/javax/mail/internet/
H A DModifyMessageTest.java66 MimeMultipart mp = (MimeMultipart)m.getContent();
77 MimeMultipart mp = (MimeMultipart)m.getContent();
88 MimeMultipart mp = (MimeMultipart)m.getContent();
91 mp.addBodyPart(mbp);
95 mp = (MimeMultipart)m2.getContent();
96 BodyPart bp = mp.getBodyPart(2);
99 bp = mp.getBodyPart(0);
101 bp = mp.getBodyPart(1);
108 MimeMultipart mp = (MimeMultipart)m.getContent();
109 BodyPart bp = mp
[all...]
H A DRestrictEncodingTest.java68 MimeMultipart mp = (MimeMultipart)m.getContent();
69 assertEquals(2, mp.getCount());
71 BodyPart bp = mp.getBodyPart(0);
78 MimeMultipart mp = (MimeMultipart)m.getContent();
80 BodyPart bp = mp.getBodyPart(1);
88 MimeMultipart mp = new MimeMultipart();
91 mp.addBodyPart(mbp);
98 mp.addBodyPart(mbp);
99 m.setContent(mp);
103 mp
[all...]
H A DMimeMultipartPropertyTest.java77 MimeMultipart mp = (MimeMultipart)m.getContent();
78 assertEquals(mp.getCount(), 2);
86 MimeMultipart mp = (MimeMultipart)m.getContent();
87 assertEquals(mp.getCount(), 2);
93 MimeMultipart mp = (MimeMultipart)m.getContent();
94 assertEquals(mp.getCount(), 2);
102 MimeMultipart mp = (MimeMultipart)m.getContent();
103 mp.getCount(); // throw exception
110 MimeMultipart mp = (MimeMultipart)m.getContent();
111 assertEquals(mp
[all...]
H A DNonAsciiBoundaryTest.java66 MimeMultipart mp = (MimeMultipart)m.getContent();
67 assertEquals(2, mp.getCount());
68 BodyPart bp = mp.getBodyPart(0);
70 bp = mp.getBodyPart(1);
H A DMimeMultipartParseTest.java125 MimeMultipart mp = new MimeMultipart();
126 mp.addBodyPart(mbp1);
127 mp.addBodyPart(mbp2);
128 mp.addBodyPart(mbp3);
129 msg.setContent(mp);
148 mp = (MimeMultipart)msg.getContent();
149 mbp2 = (MimeBodyPart)mp.getBodyPart(1);
H A DMimeBodyPartTest.java98 MimeMultipart mp = new MimeMultipart();
101 mp.addBodyPart(mbp);
102 msg.setContent(mp);
105 mp = (MimeMultipart)msg.getContent();
106 mbp = (MimeBodyPart)mp.getBodyPart(0);
126 MimeMultipart mp = new MimeMultipart();
130 mp.addBodyPart(mbp);
131 msg.setContent(mp);
134 mp = (MimeMultipart)msg.getContent();
135 mbp = (MimeBodyPart)mp
[all...]
H A DAllowEncodedMessages.java71 MimeMultipart mp = (MimeMultipart)m.getContent();
72 BodyPart bp = mp.getBodyPart(0);
/javamail/mail/src/main/java/javax/mail/
H A DMessageContext.java107 Multipart mp = bp.getParent();
108 if (mp == null) // MimeBodyPart might not be in a MimeMultipart
110 p = mp.getParent();
H A DMultipart.java106 * @param mp Multipart datasource
109 protected synchronized void setMultipartDataSource(MultipartDataSource mp) argument
111 contentType = mp.getContentType();
113 int count = mp.getCount();
115 addBodyPart(mp.getBodyPart(i));
H A DPart.java359 * @param mp The multipart object that is the Message's content
367 public void setContent(Multipart mp) throws MessagingException; argument
/javamail/dsn/src/test/java/com/sun/mail/dsn/
H A DMultipartReportTest.java63 MultipartReport mp = new MultipartReport();
64 mp.setText("test Multipart Report\n");
75 mp.setReport(ds);
76 msg.setContent(mp);
/javamail/mail/src/test/java/com/sun/mail/util/
H A DContentTypeCleaner.java75 MimeMultipart mp = (MimeMultipart)m.getContent();
76 BodyPart bp = mp.getBodyPart(0);
84 MimeMultipart mp = (MimeMultipart)m.getContent();
85 BodyPart bp = mp.getBodyPart(1);
93 MimeMultipart mp = (MimeMultipart)m.getContent();
94 BodyPart bp = mp.getBodyPart(2);
99 public static String cleanContentType(MimePart mp, String contentType) { argument
/javamail/mail/src/main/java/javax/mail/search/
H A DBodyTerm.java102 Multipart mp = (Multipart)p.getContent();
103 int count = mp.getCount();
105 if (matchPart(mp.getBodyPart(i)))
/javamail/demo/src/main/java/
H A Dmsgmultisendsample.java92 Multipart mp = new MimeMultipart();
93 mp.addBodyPart(mbp1);
94 mp.addBodyPart(mbp2);
97 msg.setContent(mp);
H A Dsendfile.java110 Multipart mp = new MimeMultipart();
111 mp.addBodyPart(mbp1);
112 mp.addBodyPart(mbp2);
115 msg.setContent(mp);
H A Dmsgsend.java174 MimeMultipart mp = new MimeMultipart();
175 mp.addBodyPart(mbp1);
176 mp.addBodyPart(mbp2);
177 msg.setContent(mp);
H A Dsmtpsend.java227 MimeMultipart mp = new MimeMultipart();
228 mp.addBodyPart(mbp1);
229 mp.addBodyPart(mbp2);
230 msg.setContent(mp);
/javamail/taglib/src/main/java/demo/
H A DMessageInfo.java62 Multipart mp = (Multipart)message.getContent();
63 int numParts = mp.getCount();
65 if (mp.getBodyPart(i).isMimeType("text/plain"))
66 return (String)mp.getBodyPart(i).getContent();
70 Multipart mp = (Multipart)content;
71 if (mp.getBodyPart(0).isMimeType("text/plain"))
72 return (String)mp.getBodyPart(0).getContent();
179 Multipart mp = (Multipart)message.getContent();
180 if (mp.getCount() > 1)
/javamail/mail/src/test/java/com/sun/mail/util/logging/
H A DLogManagerPropertiesTest.java290 LogManagerProperties mp;
300 mp = new LogManagerProperties(parent, prefix);
302 assertFalse(contains(mp, key, null));
303 assertEquals("value", mp.getProperty(key));
304 assertTrue(contains(mp, key, "value")); //ensure copy worked.
309 Properties clone = (Properties) mp.clone();
313 assertNotSame(clone, mp);
314 assertEquals(mp.size(), clone.size());
315 assertTrue(clone.equals(mp)); //don't call mp
[all...]
/javamail/mail/src/main/java/com/sun/mail/util/
H A DMimeUtil.java94 * @param mp the MimePart
98 public static String cleanContentType(MimePart mp, String contentType) { argument
102 new Object[] { mp, contentType });
/javamail/mail/src/test/java/com/sun/mail/pop3/
H A DPOP3MessageTest.java149 Multipart mp = (Multipart)content;
150 int cnt = mp.getCount();
152 loadMail(mp.getBodyPart(i));
/javamail/client/src/main/java/
H A DMultipartViewer.java70 protected void setupDisplay(Multipart mp) { argument
82 BodyPart bp = mp.getBodyPart(0);
92 int count = mp.getCount();
105 BodyPart curr = mp.getBodyPart(i);
H A DMessageViewer.java242 Multipart mp = (Multipart)o;
243 int count = mp.getCount();
245 dumpPart(newpref, mp.getBodyPart(i));
/javamail/dsn/src/main/java/com/sun/mail/dsn/
H A DMultipartReport.java196 Multipart mp = (Multipart)bp.getContent();
197 for (int i = 0; i < mp.getCount(); i++) {
198 bp = mp.getBodyPart(i);
/javamail/demo/src/main/java/internal/
H A Dtestidle.java359 Multipart mp = (Multipart)p.getContent();
361 int count = mp.getCount();
363 dumpPart(mp.getBodyPart(i));

Completed in 75 milliseconds

12