當前位置: 首頁>>代碼示例>>Java>>正文


Java MimeBodyPart.writeTo方法代碼示例

本文整理匯總了Java中javax.mail.internet.MimeBodyPart.writeTo方法的典型用法代碼示例。如果您正苦於以下問題:Java MimeBodyPart.writeTo方法的具體用法?Java MimeBodyPart.writeTo怎麽用?Java MimeBodyPart.writeTo使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在javax.mail.internet.MimeBodyPart的用法示例。


在下文中一共展示了MimeBodyPart.writeTo方法的13個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: testSendMultipartEmail

import javax.mail.internet.MimeBodyPart; //導入方法依賴的package包/類
@Test
public void testSendMultipartEmail() throws Exception {
    mailService.sendEmail("[email protected]", "testSubject", "testContent", true, false);
    verify(javaMailSender).send((MimeMessage) messageCaptor.capture());
    MimeMessage message = (MimeMessage) messageCaptor.getValue();
    MimeMultipart mp = (MimeMultipart) message.getContent();
    MimeBodyPart part = (MimeBodyPart) ((MimeMultipart) mp.getBodyPart(0).getContent()).getBodyPart(0);
    ByteArrayOutputStream aos = new ByteArrayOutputStream();
    part.writeTo(aos);
    assertThat(message.getSubject()).isEqualTo("testSubject");
    assertThat(message.getAllRecipients()[0].toString()).isEqualTo("[email protected]");
    assertThat(message.getFrom()[0].toString()).isEqualTo("[email protected]");
    assertThat(message.getContent()).isInstanceOf(Multipart.class);
    assertThat(aos.toString()).isEqualTo("\r\ntestContent");
    assertThat(part.getDataHandler().getContentType()).isEqualTo("text/plain; charset=UTF-8");
}
 
開發者ID:torgcrm,項目名稱:TorgCRM-Server,代碼行數:17,代碼來源:MailServiceIntTest.java

示例2: testSendMultipartHtmlEmail

import javax.mail.internet.MimeBodyPart; //導入方法依賴的package包/類
@Test
public void testSendMultipartHtmlEmail() throws Exception {
    mailService.sendEmail("[email protected]", "testSubject", "testContent", true, true);
    verify(javaMailSender).send((MimeMessage) messageCaptor.capture());
    MimeMessage message = (MimeMessage) messageCaptor.getValue();
    MimeMultipart mp = (MimeMultipart) message.getContent();
    MimeBodyPart part = (MimeBodyPart) ((MimeMultipart) mp.getBodyPart(0).getContent()).getBodyPart(0);
    ByteArrayOutputStream aos = new ByteArrayOutputStream();
    part.writeTo(aos);
    assertThat(message.getSubject()).isEqualTo("testSubject");
    assertThat(message.getAllRecipients()[0].toString()).isEqualTo("[email protected]");
    assertThat(message.getFrom()[0].toString()).isEqualTo("[email protected]");
    assertThat(message.getContent()).isInstanceOf(Multipart.class);
    assertThat(aos.toString()).isEqualTo("\r\ntestContent");
    assertThat(part.getDataHandler().getContentType()).isEqualTo("text/html;charset=UTF-8");
}
 
開發者ID:torgcrm,項目名稱:TorgCRM-Server,代碼行數:17,代碼來源:MailServiceIntTest.java

示例3: testSendMultipartEmail

import javax.mail.internet.MimeBodyPart; //導入方法依賴的package包/類
@Test
public void testSendMultipartEmail() throws Exception {
    mailService.sendEmail("[email protected]", "testSubject","testContent", true, false);
    verify(javaMailSender).send((MimeMessage) messageCaptor.capture());
    MimeMessage message = (MimeMessage) messageCaptor.getValue();
    MimeMultipart mp = (MimeMultipart) message.getContent();
    MimeBodyPart part = (MimeBodyPart)((MimeMultipart) mp.getBodyPart(0).getContent()).getBodyPart(0);
    ByteArrayOutputStream aos = new ByteArrayOutputStream();
    part.writeTo(aos);
    assertThat(message.getSubject()).isEqualTo("testSubject");
    assertThat(message.getAllRecipients()[0].toString()).isEqualTo("[email protected]");
    assertThat(message.getFrom()[0].toString()).isEqualTo("[email protected]");
    assertThat(message.getContent()).isInstanceOf(Multipart.class);
    assertThat(aos.toString()).isEqualTo("\r\ntestContent");
    assertThat(part.getDataHandler().getContentType()).isEqualTo("text/plain; charset=UTF-8");
}
 
開發者ID:oktadeveloper,項目名稱:jhipster-microservices-example,代碼行數:17,代碼來源:MailServiceIntTest.java

示例4: testSendMultipartHtmlEmail

import javax.mail.internet.MimeBodyPart; //導入方法依賴的package包/類
@Test
public void testSendMultipartHtmlEmail() throws Exception {
    mailService.sendEmail("[email protected]", "testSubject","testContent", true, true);
    verify(javaMailSender).send((MimeMessage) messageCaptor.capture());
    MimeMessage message = (MimeMessage) messageCaptor.getValue();
    MimeMultipart mp = (MimeMultipart) message.getContent();
    MimeBodyPart part = (MimeBodyPart)((MimeMultipart) mp.getBodyPart(0).getContent()).getBodyPart(0);
    ByteArrayOutputStream aos = new ByteArrayOutputStream();
    part.writeTo(aos);
    assertThat(message.getSubject()).isEqualTo("testSubject");
    assertThat(message.getAllRecipients()[0].toString()).isEqualTo("[email protected]");
    assertThat(message.getFrom()[0].toString()).isEqualTo("[email protected]");
    assertThat(message.getContent()).isInstanceOf(Multipart.class);
    assertThat(aos.toString()).isEqualTo("\r\ntestContent");
    assertThat(part.getDataHandler().getContentType()).isEqualTo("text/html;charset=UTF-8");
}
 
開發者ID:oktadeveloper,項目名稱:jhipster-microservices-example,代碼行數:17,代碼來源:MailServiceIntTest.java

示例5: testSendMultipartEmail

import javax.mail.internet.MimeBodyPart; //導入方法依賴的package包/類
@Test
public void testSendMultipartEmail() throws Exception {
	mailService.sendEmail("[email protected]", "testSubject", "testContent", true, false);
	verify(javaMailSender).send((MimeMessage) messageCaptor.capture());
	MimeMessage message = (MimeMessage) messageCaptor.getValue();
	MimeMultipart mp = (MimeMultipart) message.getContent();
	MimeBodyPart part = (MimeBodyPart) ((MimeMultipart) mp.getBodyPart(0).getContent()).getBodyPart(0);
	ByteArrayOutputStream aos = new ByteArrayOutputStream();
	part.writeTo(aos);
	assertThat(message.getSubject()).isEqualTo("testSubject");
	assertThat(message.getAllRecipients()[0].toString()).isEqualTo("[email protected]");
	assertThat(message.getFrom()[0].toString()).isEqualTo("[email protected]");
	assertThat(message.getContent()).isInstanceOf(Multipart.class);
	assertThat(aos.toString()).isEqualTo("\r\ntestContent");
	assertThat(part.getDataHandler().getContentType()).isEqualTo("text/plain; charset=UTF-8");
}
 
開發者ID:alikemalocalan,項目名稱:MicroBlog,代碼行數:17,代碼來源:MailServiceIntTest.java

示例6: testSendMultipartHtmlEmail

import javax.mail.internet.MimeBodyPart; //導入方法依賴的package包/類
@Test
public void testSendMultipartHtmlEmail() throws Exception {
	mailService.sendEmail("[email protected]", "testSubject", "testContent", true, true);
	verify(javaMailSender).send((MimeMessage) messageCaptor.capture());
	MimeMessage message = (MimeMessage) messageCaptor.getValue();
	MimeMultipart mp = (MimeMultipart) message.getContent();
	MimeBodyPart part = (MimeBodyPart) ((MimeMultipart) mp.getBodyPart(0).getContent()).getBodyPart(0);
	ByteArrayOutputStream aos = new ByteArrayOutputStream();
	part.writeTo(aos);
	assertThat(message.getSubject()).isEqualTo("testSubject");
	assertThat(message.getAllRecipients()[0].toString()).isEqualTo("[email protected]");
	assertThat(message.getFrom()[0].toString()).isEqualTo("[email protected]");
	assertThat(message.getContent()).isInstanceOf(Multipart.class);
	assertThat(aos.toString()).isEqualTo("\r\ntestContent");
	assertThat(part.getDataHandler().getContentType()).isEqualTo("text/html;charset=UTF-8");
}
 
開發者ID:alikemalocalan,項目名稱:MicroBlog,代碼行數:17,代碼來源:MailServiceIntTest.java

示例7: testSendMultipartEmail

import javax.mail.internet.MimeBodyPart; //導入方法依賴的package包/類
@Test
public void testSendMultipartEmail() throws Exception {
    mailService.sendEmail("john.do[email protected]", "testSubject","testContent", true, false);
    verify(javaMailSender).send((MimeMessage) messageCaptor.capture());
    MimeMessage message = (MimeMessage) messageCaptor.getValue();
    MimeMultipart mp = (MimeMultipart) message.getContent();
    MimeBodyPart part = (MimeBodyPart)((MimeMultipart) mp.getBodyPart(0).getContent()).getBodyPart(0);
    ByteArrayOutputStream aos = new ByteArrayOutputStream();
    part.writeTo(aos);
    assertThat(message.getSubject()).isEqualTo("testSubject");
    assertThat(message.getAllRecipients()[0].toString()).isEqualTo("[email protected]");
    assertThat(message.getFrom()[0].toString()).isEqualTo("[email protected]");
    assertThat(message.getContent()).isInstanceOf(Multipart.class);
    assertThat(aos.toString()).isEqualTo("\r\ntestContent");
    assertThat(part.getDataHandler().getContentType()).isEqualTo("text/plain; charset=UTF-8");
}
 
開發者ID:michaelhoffmantech,項目名稱:patient-portal,代碼行數:17,代碼來源:MailServiceIntTest.java

示例8: calculateMIC

import javax.mail.internet.MimeBodyPart; //導入方法依賴的package包/類
private String calculateMIC(MimeBodyPart bodyPart) throws Exception{
	// By default, MIC calculate with Headers
	ByteArrayOutputStream contentBAOS = new ByteArrayOutputStream();
	bodyPart.writeTo(contentBAOS);
    byte[] content = (contentBAOS.toByteArray());
       
	MessageDigest md = MessageDigest.getInstance( SMIMESignedGenerator.DIGEST_SHA1, "BC");
	md.update(content);
	
	 byte[] digest = md.digest();
        String digestString = new String(Base64.encode(digest));
        return digestString + ", " + DispositionNotificationOption.SIGNED_RECEIPT_MICALG_SHA1;
}
 
開發者ID:cecid,項目名稱:hermes,代碼行數:14,代碼來源:IncomingMessageProcessorTest.java

示例9: testCompressAS2Message

import javax.mail.internet.MimeBodyPart; //導入方法依賴的package包/類
@Test
public void testCompressAS2Message() throws Exception{
	InputStream ins = FIXTURE_LOADER.getResourceAsStream(MOCK_AS2_MSG);
	ByteArrayInputStream bIns = new ByteArrayInputStream(IOHandler.readBytes(ins));
	partnershipDVO.setIsOutboundCompressRequired(true);
	String mid = RANDOM.toString();
	
	AS2Message as2Msg = TARGET.storeOutgoingMessage(
			mid, //MessageID
			"xml", 
			partnershipDVO,
			new InputStreamDataSource(bIns, "xml", MOCK_AS2_MSG));
	
	SMIMECompressed compressed = new SMIMECompressed(as2Msg.getBodyPart());
	MimeBodyPart decompressedPart = SMIMEUtil.toMimeBodyPart(compressed.getContent(new ZlibExpanderProvider()));

	ByteArrayOutputStream baos = new ByteArrayOutputStream();
	IOHandler.pipe( decompressedPart.getDataHandler().getInputStream(), baos);
	byte[] decrptedBA = baos.toByteArray();
	byte[] original = IOHandler.readBytes(FIXTURE_LOADER.getResourceAsStream(MOCK_AS2_MSG));
	
	Assert.assertTrue(Arrays.equals(decrptedBA, original));		
	//TODO
   String filenameHdr = decompressedPart.getHeader("Content-Disposition")[0];
   Assert.assertEquals("Filename value lost in BodyPart Header", 
		   MOCK_AS2_MSG, getFileName(filenameHdr));
   
   
   // Verify MIC Value
      ByteArrayOutputStream contentBAOS = new ByteArrayOutputStream();
      decompressedPart.writeTo(contentBAOS);
      byte[] content = (contentBAOS.toByteArray());
      String mic = calculateMIC(content);
      Assert.assertEquals( "MIC Value is not valid.",
   		   mic, getStoredMessage(mid).getMicValue());
     
}
 
開發者ID:cecid,項目名稱:hermes,代碼行數:38,代碼來源:OutgoingMessageProcessorTest.java

示例10: testSignedAS2Message

import javax.mail.internet.MimeBodyPart; //導入方法依賴的package包/類
@Test
public void testSignedAS2Message() throws Exception{
	InputStream ins = FIXTURE_LOADER.getResourceAsStream(MOCK_AS2_MSG);
	ByteArrayInputStream bIns = new ByteArrayInputStream(IOHandler.readBytes(ins));

	partnershipDVO.setIsOutboundSignRequired(true);
	String mid = RANDOM.toString();
	
	AS2Message as2Msg = TARGET.storeOutgoingMessage(
			mid, //MessageID
			"xml", 
			partnershipDVO,
			new InputStreamDataSource(bIns, "xml", MOCK_AS2_MSG));
	
	//Verify As2Signing Message
	try{
		SMIMESigned signed = new SMIMESigned((MimeMultipart)as2Msg.getBodyPart().getContent());
		SignerInformationStore  signers = signed.getSignerInfos();
		Iterator signerInfos = signers.getSigners().iterator();
		while (signerInfos.hasNext()) {
			SignerInformation   signerInfo = (SignerInformation)signerInfos.next();

			SignerInformationVerifier verifier =
			    new BcRSASignerInfoVerifierBuilder(new DefaultCMSSignatureAlgorithmNameGenerator(),
							       new DefaultSignatureAlgorithmIdentifierFinder(),
							       new DefaultDigestAlgorithmIdentifierFinder(), 
							       new BcDigestCalculatorProvider())
			    .build(new JcaX509CertificateHolder(partnershipDVO.getEffectiveVerifyCertificate()));
			
			if (!signerInfo.verify(verifier)) {
				Assert.fail("Signature Verfifcation Failed");
			}
		}
		
		//Assert the filename value
		MimeBodyPart signedPart = signed.getContent();
        String filenameHdr = signedPart.getHeader("Content-Disposition")[0];
        Assert.assertEquals("Lost Filename Header Information", MOCK_AS2_MSG, getFileName(filenameHdr));
        
        
        // Verify MIC Value
        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        signedPart.writeTo(baos);
           byte[] content = (baos.toByteArray());
           String mic = calculateMIC(content);
           
           MessageDVO msgDVO = getStoredMessage(mid);
           Assert.assertEquals("MIC Value is not valid.", mic, msgDVO.getMicValue());
        
	}catch(Exception exp){
		Assert.fail("Signature Verfifcation Failed");
	}
       Assert.assertTrue(true);
	}
 
開發者ID:cecid,項目名稱:hermes,代碼行數:55,代碼來源:OutgoingMessageProcessorTest.java

示例11: testEncrytedAS2Message

import javax.mail.internet.MimeBodyPart; //導入方法依賴的package包/類
@Test
public void testEncrytedAS2Message() throws Exception{
    InputStream ins = FIXTURE_LOADER.getResourceAsStream(MOCK_AS2_MSG);
    ByteArrayInputStream bIns = new ByteArrayInputStream(IOHandler.readBytes(ins));
    String mid = RANDOM.toString();
    
    partnershipDVO.setIsOutboundEncryptRequired(true);
    AS2Message as2Msg = TARGET.storeOutgoingMessage(
						    mid, //MessageID
						    "xml", 
						    partnershipDVO,
						    new InputStreamDataSource(bIns, "xml", MOCK_AS2_MSG));
	
	
    // Decrypt Message
    SMIMEEnveloped crypted = new SMIMEEnveloped(as2Msg.getBodyPart());
    
    // RecipientId recId = new RecipientId();
    RecipientId recId = new JceKeyTransRecipientId(partnershipDVO.getEncryptX509Certificate());

    RecipientInformationStore  recipientsInfo = crypted.getRecipientInfos();	
    RecipientInformation       recipientInfo = recipientsInfo.get(recId);

    KeyStoreManager keyMan = (KeyStoreManager)TARGET.getSystemModule().getComponent("keystore-manager");

    JceKeyTransEnvelopedRecipient recipient = new JceKeyTransEnvelopedRecipient(keyMan.getPrivateKey());	
    recipient.setProvider(SECURITY_PROVIDER);							
    
    MimeBodyPart  decrpted = SMIMEUtil.toMimeBodyPart(recipientInfo.getContent(recipient));
       
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    IOHandler.pipe( decrpted.getDataHandler().getInputStream(), baos);
    byte[] decrptedBA = baos.toByteArray();
    byte[] originalBA = IOHandler.readBytes(FIXTURE_LOADER.getResourceAsStream(MOCK_AS2_MSG));
       
    Assert.assertTrue(Arrays.equals(decrptedBA, originalBA));
       
    //Assert the filename
    String filenameHdr = decrpted.getHeader("Content-Disposition")[0];
    Assert.assertEquals("Filename value lost in BodyPartHeader",
			MOCK_AS2_MSG, getFileName(filenameHdr));

    //Verify MIC
    ByteArrayOutputStream contentStream = new ByteArrayOutputStream();
    decrpted.writeTo(contentStream);
    byte[] content = (contentStream.toByteArray());
    String mic = calculateMIC(content);
    Assert.assertEquals( "MIC Value is not valid.", mic, getStoredMessage(mid).getMicValue());
}
 
開發者ID:cecid,項目名稱:hermes,代碼行數:50,代碼來源:OutgoingMessageProcessorTest.java

示例12: testSignedEncryptedAS2Message

import javax.mail.internet.MimeBodyPart; //導入方法依賴的package包/類
@Test
public void testSignedEncryptedAS2Message() throws Exception {
    InputStream ins = FIXTURE_LOADER.getResourceAsStream(MOCK_AS2_MSG);
    ByteArrayInputStream bIns = new ByteArrayInputStream(IOHandler.readBytes(ins));
	
    // Prepare Data
    String mid = RANDOM.toString();
    partnershipDVO.setIsOutboundEncryptRequired(true);
    partnershipDVO.setIsOutboundSignRequired(true);
    //Encrypt message
    AS2Message as2Msg = TARGET.storeOutgoingMessage(
						    mid, //MessageID
						    "xml", 
						    partnershipDVO,
						    new InputStreamDataSource(bIns, "xml", MOCK_AS2_MSG));
	
    // Decrypt Message
    SMIMEEnveloped crypted = new SMIMEEnveloped(as2Msg.getBodyPart());

    RecipientId recId = new JceKeyTransRecipientId(partnershipDVO.getEncryptX509Certificate());
    
    RecipientInformationStore  recipientsInfo = crypted.getRecipientInfos();	
    RecipientInformation       recipientInfo = recipientsInfo.get(recId);

    KeyStoreManager keyMan = (KeyStoreManager)TARGET.getSystemModule().getComponent("keystore-manager");

    JceKeyTransEnvelopedRecipient recipient = new JceKeyTransEnvelopedRecipient(keyMan.getPrivateKey());	
    recipient.setProvider(SECURITY_PROVIDER);							
    
    MimeBodyPart  decrpted = SMIMEUtil.toMimeBodyPart(recipientInfo.getContent(recipient));
	
    //Verify Signature
    try{
	SMIMESigned signed = new SMIMESigned((MimeMultipart)decrpted.getContent());
	SignerInformationStore  signers = signed.getSignerInfos();
	Iterator signerInfos = signers.getSigners().iterator();

	while (signerInfos.hasNext()) {
	    SignerInformation   signerInfo = (SignerInformation)signerInfos.next();

	    SignerInformationVerifier verifier =
		new BcRSASignerInfoVerifierBuilder(new DefaultCMSSignatureAlgorithmNameGenerator(),
						   new DefaultSignatureAlgorithmIdentifierFinder(),
						   new DefaultDigestAlgorithmIdentifierFinder(), 
						   new BcDigestCalculatorProvider())
		.build(new JcaX509CertificateHolder(partnershipDVO.getEffectiveVerifyCertificate()));
	    if (!signerInfo.verify(verifier)) {
		Assert.fail("Signature Verfifcation Failed");
	    }
	}

	
		
	//Assert the filename value
	MimeBodyPart signedPart = signed.getContent();
        String filenameHdr = signedPart.getHeader("Content-Disposition")[0];
        Assert.assertEquals("Lost Filename Header Information", MOCK_AS2_MSG, getFileName(filenameHdr));
        
        
        // Verify MIC Value
        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        signedPart.writeTo(baos);
	byte[] content = (baos.toByteArray());
	String mic = calculateMIC(content);
           
	MessageDVO msgDVO = getStoredMessage(mid);
	Assert.assertEquals("MIC Value is not valid.", mic, msgDVO.getMicValue());
        
    }catch(Exception exp){
	Assert.fail("Signature Verfifcation Failed");
    }
    Assert.assertTrue(true);
}
 
開發者ID:cecid,項目名稱:hermes,代碼行數:74,代碼來源:OutgoingMessageProcessorTest.java

示例13: testSignedCommpressMessage

import javax.mail.internet.MimeBodyPart; //導入方法依賴的package包/類
@Test
public void testSignedCommpressMessage() throws Exception{
	InputStream ins = FIXTURE_LOADER.getResourceAsStream(MOCK_AS2_MSG);
	ByteArrayInputStream bIns = new ByteArrayInputStream(IOHandler.readBytes(ins));
	
	// Prepare Data
	String mid = RANDOM.toString();
	partnershipDVO.setIsOutboundSignRequired(true);
	partnershipDVO.setIsOutboundCompressRequired(true);
	//Process message
	AS2Message as2Msg = TARGET.storeOutgoingMessage(
			mid, //MessageID
			"xml", 
			partnershipDVO,
			new InputStreamDataSource(bIns, "xml", MOCK_AS2_MSG));
       
       try{
       	//Verify Message Signature
		SMIMESigned signed = new SMIMESigned((MimeMultipart)as2Msg.getBodyPart().getContent());
		SignerInformationStore  signers = signed.getSignerInfos();
		Iterator signerInfos = signers.getSigners().iterator();
		while (signerInfos.hasNext()) {
			SignerInformation   signerInfo = (SignerInformation)signerInfos.next();

			SignerInformationVerifier verifier =
			    new BcRSASignerInfoVerifierBuilder(new DefaultCMSSignatureAlgorithmNameGenerator(),
							       new DefaultSignatureAlgorithmIdentifierFinder(),
							       new DefaultDigestAlgorithmIdentifierFinder(), 
							       new BcDigestCalculatorProvider())
			    .build(new JcaX509CertificateHolder(partnershipDVO.getEffectiveVerifyCertificate()));
			
			if (!signerInfo.verify(verifier)) {
				Assert.fail("Signature Verfifcation Failed");
			}
		}
		
		// Verify MIC Value
		MimeBodyPart signedPart = signed.getContent();
        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        signedPart.writeTo(baos);
        byte[] content = (baos.toByteArray());
        String mic = calculateMIC(content);
        MessageDVO msgDVO = getStoredMessage(mid);
        Assert.assertEquals("MIC Value is not valid.", mic, msgDVO.getMicValue());
		
		//Decompress Message
		SMIMECompressed compressed = new SMIMECompressed(signedPart);
		MimeBodyPart decompressedPart = SMIMEUtil.toMimeBodyPart(compressed.getContent(new ZlibExpanderProvider()));
		
		//Assert the filename value
        String filenameHdr = decompressedPart.getHeader("Content-Disposition")[0];
        Assert.assertEquals("Lost Filename Header Information", MOCK_AS2_MSG, getFileName(filenameHdr));
        
	}catch(Exception exp){
		Assert.fail("Signature Verfifcation Failed");
	}
	
}
 
開發者ID:cecid,項目名稱:hermes,代碼行數:59,代碼來源:OutgoingMessageProcessorTest.java


注:本文中的javax.mail.internet.MimeBodyPart.writeTo方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。