Return the Message that contains the content. Follows the parent chain up through containing Multipart objects until it comes to a Message object, or null. @return the containing Message, or null if not known
()
| 59 | * @return the containing Message, or null if not known |
| 60 | */ |
| 61 | public Message getMessage() { |
| 62 | try { |
| 63 | return getMessage(part); |
| 64 | } catch (MessagingException ex) { |
| 65 | return null; |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | /** |
| 70 | * Return the Message containing an arbitrary Part. |
no test coverage detected