javax.activation
Class CommandMap

java.lang.Object
  extended by javax.activation.CommandMap
Direct Known Subclasses:
MailcapCommandMap

public abstract class CommandMap
extends Object

Version:
$Rev: 123383 $ $Date: 2004-12-26 19:11:00 -0800 (Sun, 26 Dec 2004) $

Constructor Summary
CommandMap()
           
 
Method Summary
abstract  DataContentHandler createDataContentHandler(String mimeType)
           
abstract  CommandInfo[] getAllCommands(String mimeType)
           
abstract  CommandInfo getCommand(String mimeType, String cmdName)
           
static CommandMap getDefaultCommandMap()
          Return the default CommandMap.
abstract  CommandInfo[] getPreferredCommands(String mimeType)
           
static void setDefaultCommandMap(CommandMap commandMap)
          Set the default CommandMap.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandMap

public CommandMap()
Method Detail

getDefaultCommandMap

public static CommandMap getDefaultCommandMap()
Return the default CommandMap. If this has not been explictly set using setDefaultCommandMap() then a MailcapCommandMap is returned.

Returns:
the default CommandMap

setDefaultCommandMap

public static void setDefaultCommandMap(CommandMap commandMap)
Set the default CommandMap.

Parameters:
commandMap - the new default CommandMap; if null resets to a MailcapCommandMap
Throws:
SecurityException - if the caller does not have "SetFactory" RuntimePermission

getPreferredCommands

public abstract CommandInfo[] getPreferredCommands(String mimeType)

getAllCommands

public abstract CommandInfo[] getAllCommands(String mimeType)

getCommand

public abstract CommandInfo getCommand(String mimeType,
                                       String cmdName)

createDataContentHandler

public abstract DataContentHandler createDataContentHandler(String mimeType)


Copyright © 2006 Apache Software Foundation. All Rights Reserved.