Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有 MimeMessage 对象,不知何故我想从中获取所有MimeParts。
javax.mail.interntet.MimeMessage实现接口javax.mail.interntet.MimePart,所以一旦你有了一个对象,你就可以调用它的方法,包括那些在 MimePart 中定义的方法。
javax.mail.interntet.MimeMessage
javax.mail.interntet.MimePart
可以使用检索消息MessageContext.getMessage()
MessageContext.getMessage()