Package jakarta.activation
Interface MailcapRegistry
- 
 public interface MailcapRegistryThe MailcapRegistry interface is implemented by objects that can be used to store and retrieve MailcapEntries.Application must implement MailcapRegistryProviderto create new instances of the MailcapRegistry. Implementation of the MailcapRegistry can store MailcapEntries in different ways and that storage must be accessible through theMailcapRegistryProvidermethods. Implementation of the MailcapRegistry must contain in-memory storage for MailcapEntries.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidappendToMailcap(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.ImageViewerMap<String,List<String>>getMailcapFallbackList(String mime_type)Get the Map of fallback MailcapEntries based on the MIME type.Map<String,List<String>>getMailcapList(String mime_type)Get the Map of MailcapEntries based on the MIME type.String[]getMimeTypes()Return all the MIME types known to this mailcap file.String[]getNativeCommands(String mime_type)Return all the native comands for the given MIME type.
 
- 
- 
- 
Method Detail- 
getMailcapListMap<String,List<String>> getMailcapList(String mime_type) 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. - Parameters:
- mime_type- the MIME type
- Returns:
- the map of MailcapEntries
 
 - 
getMailcapFallbackListMap<String,List<String>> getMailcapFallbackList(String mime_type) 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. - Parameters:
- mime_type- the MIME type
- Returns:
- the map of fallback MailcapEntries
 
 - 
getMimeTypesString[] getMimeTypes() Return all the MIME types known to this mailcap file.- Returns:
- a String array of the MIME types
 
 - 
getNativeCommandsString[] getNativeCommands(String mime_type) Return all the native comands for the given MIME type.- Parameters:
- mime_type- the MIME type
- Returns:
- a String array of the commands
 
 - 
appendToMailcapvoid 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- Parameters:
- mail_cap- the mailcap string
 
 
- 
 
-