Mailcap

public class Mailcap

Mailcap represents a single mailcap in the MailcapCommandMap. It is a convenient class for constructing a mailcap to be added to the MailcapCommandMap and for easy comparison if necessary.

Author:Kevin Tsang

See also: javax.activation.MailcapCommandMap

Constructors

Mailcap

public Mailcap(String mimeType, String commandName, String className)

Creates a new instance of Mailcap.

Parameters:
  • mimeType – the MIME type.
  • commandName – the command name.
  • className – the handling class name.

Methods

getClassName

public String getClassName()

Gets the handling class name.

Returns:the handling class name.

getCommandName

public String getCommandName()

Gets the command name.

Returns:the command name.

getMimeType

public String getMimeType()

Gets the MIME type.

Returns:the MIME type.

toString

public String toString()

Returns a string representation of this mailcap.

Returns:a mailcap formatted string.

See also: java.lang.Object.toString()