JavaMail - basic

Print the objectives

  Take a beta test

The JavaMail API provides a platform- and protocol-independent framework to build mail and messaging applications. It is available as a package for use with Java SE, and is included in the Java EE platform.
  Released  Beta  Frozen  

Standards

 
 

Message standards  1 question

Describe the main RFC standards about Internet messages (RFC2045 - http://www.ietf.org/rfc/rfc2045.txt, RFC2046 - http://www.ietf.org/rfc/rfc2046.txt, RFC 2047 - http://www.ietf.org/rfc/rfc2047.txt).

  • MIME composition: parts and multiparts
  • headers
  • non ascii text encoding
  • multipart subtypes: alternative and mixed

Not covered: message security: signature, encryption and compression

0 8 0

Transport standards  1 question

Describe the SMTP main features and commands (RFC821 - http://www.ietf.org/rfc/rfc821.txt):

  • message sending;
  • reverse-path and forward-path;
  • commands: HELO, EHLO, MAIL, RCPT, DATA, QUIT

Not covered: authentication mechanisms; all the other SMTP commands

0 7 0

Mailbox standards  2 questions

Describe the IMAP (RFC2060 - http://www.ietf.org/rfc/rfc2060.txt) and POP3 (RFC1939 - http://www.ietf.org/rfc/rfc1939.txt) main features and the differences between the two protocols:

  • folders;
  • flags and expunge mechanism;

Not covered: protocol commands.

1 11 1

Message APIs

 
 

Message Structure  3 questions

Explain the responsibility of and differences between the message structure interfaces and classes; write and review code that uses those classes.
  • Message and MimeMessage
  • Part, BodyPart, MimePart and MimeBodyPart
  • Multipart and MimeMultipart
0 15 0

Message Content  3 questions

Write and review code that writes and retrieves the content and attachments of messages, using:

  • plain Strings;
  • InputStreams
  • the Bean Activation Framework and the JavaMail JAF implementation: ByteArrayDataSource.

Not covered: the implementation of JAF beans.

0 0 0

Addresses  1 question

Write and review code that uses the Address and InternetAddress classes.

  • address and personal fields
  • encoding of the personal field

Not covered: NewsAddress

0 4 1

Message Headers  1 question

Write and review code that manipulates message headers.
  • address headers
  • data headers
  • content headers
  • encoding and decoding header values
  • special header classes: ContentDisposition, ContentType
0 1 0

Storage and Transportation APIs

 
 

Mail Sessions  3 questions

Write and review code that uses of the Session class as a manager of the configuration options.

Explain the use and differences of the provided options.

Explain the mechanism of Service Providers and write code that chooses the desired provider from a Session object

3 2 0

Message Storage and Retrieval  3 questions

Write and review code that uses Store, Folder and store-related classes.
  • Folder management
  • Folder events
  • Store events
  • Message management
  • FetchProfile
  • Flags
  • The expunge process
  • The search process
0 0 1

Transport Protocol and Mechanism  2 questions

Write and review code that uses the Transport and transport-related class.
  • Message sending
  • Recipient choosing
  • Transport events
0 2 1

Exam information

  • no time limit
  • 20 questions (58)
  • 80% required
  • +3 √
  • - 12  points
  • 15 day delay
  • status: under construction

Exam leader