Name
MimePart
Synopsis
This interface is a subinterface of Part
, modeling a MIME
entity. It adds support for MIME and RFC-822 (Internet email) headers.
public interface MimePart extends Part { // Property Accessor Methods (by property name) public abstract java.util.Enumeration getAllHeaderLines( ) throws MessagingException; public abstract String getContentID( ) throws MessagingException; public abstract String[] getContentLanguage( ) throws MessagingException; public abstract void setContentLanguage( String[] languages) throws MessagingException; public abstract String getContentMD5( ) throws MessagingException; public abstract void setContentMD5( String md5) throws MessagingException; public abstract String getEncoding( ) throws MessagingException; public abstract void setText( String text) throws MessagingException; public abstract void setText(String text, String charset) throws MessagingException; // Public Instance Methods public abstract void addHeaderLine( String line) throws MessagingException; public abstract String getHeader(String header_name, String delimiter) throws MessagingException; public abstract java.util.Enumeration getMatchingHeaderLines( String[] names) throws MessagingException; public abstract java.util.Enumeration getNonMatchingHeaderLines( String[] names) throws MessagingException; }
Implementations
MimeBodyPart
, MimeMessage
Passed To
MimePartDataSource.MimePartDataSource() ...
Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.