java.lang.Object
jakarta.mail.internet.MimeUtil
General MIME-related utility methods.
- Since:
- JavaMail 1.4.4
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
cleanContentType
(MimePart mp, String contentType) If a Content-Type handler has been specified, call it to clean up the Content-Type value.private static ClassLoader
Convenience method to get our context class loader.
-
Field Details
-
cleanContentType
-
-
Constructor Details
-
MimeUtil
private MimeUtil()
-
-
Method Details
-
cleanContentType
If a Content-Type handler has been specified, call it to clean up the Content-Type value.- Parameters:
mp
- the MimePartcontentType
- the Content-Type value- Returns:
- the cleaned Content-Type value
-
getContextClassLoader
Convenience method to get our context class loader. Assert any privileges we might have and then call the Thread.getContextClassLoader method.
-