Application must implement jakarta.activation.spi.MailcapRegistryProvider
to create new instances of the MailcapRegistry. Implementation of the MailcapRegistry
can store MailcapEntries in different ways and that storage must be accessible through the
jakarta.activation.spi.MailcapRegistryProvider methods.
Implementation of the MailcapRegistry must contain in-memory storage for MailcapEntries.
| Modifier and Type | Method and Description |
|---|---|
| public void | appendToMailcap(String
the mailcap string mail_cap)appendToMailcap: Append to this Mailcap DB, use the mailcap format: Comment == "# comment string" Entry == "mimetype; javabeanclass" Example: # this is a comment image/gif jaf.viewers.ImageViewer |
| public Map | Returns: the map of fallback MailcapEntriesthe MIME type mime_type)Get the Map of fallback MailcapEntries based on the MIME type. |
| public Map | Returns: the map of MailcapEntriesthe MIME type mime_type)Get the Map of MailcapEntries based on the MIME type. |
| public String[] | Returns: a String array of the MIME typesReturn all the MIME types known to this mailcap file. |
| public String[] | Returns: a String array of the commandsthe MIME type mime_type)Return all the native comands for the given MIME type. |
| appendToMailcap | back to summary |
|---|---|
| public void appendToMailcap(String mail_cap) appendToMailcap: Append to this Mailcap DB, use the mailcap format: Comment == "# comment string" Entry == "mimetype; javabeanclass" Example: # this is a comment image/gif jaf.viewers.ImageViewer
| |
| getMailcapFallbackList | back to summary |
|---|---|
| public Map Get the Map of fallback MailcapEntries based on the MIME type. Semantics: First check for the literal mime type, if that fails looks for wildcard <type>/\* and return that. Return the list of all that hit. | |
| getMailcapList | back to summary |
|---|---|
| public Map Get the Map of MailcapEntries based on the MIME type. Semantics: First check for the literal mime type, if that fails looks for wildcard <type>/\* and return that. Return the list of all that hit. | |
| getMimeTypes | back to summary |
|---|---|
| public String[] getMimeTypes() Return all the MIME types known to this mailcap file.
| |
| getNativeCommands | back to summary |
|---|---|
| public String[] getNativeCommands(String mime_type) Return all the native comands for the given MIME type. | |