|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.activation.CommandMap
public abstract class CommandMap
| Constructor Summary | |
|---|---|
CommandMap()
|
|
| Method Summary | |
|---|---|
abstract DataContentHandler |
createDataContentHandler(String mimeType)
Locate a DataContentHandler for the given mime type. |
DataContentHandler |
createDataContentHandler(String mimeType,
DataSource ds)
Locate a DataContentHandler for the given mime type. |
abstract CommandInfo[] |
getAllCommands(String mimeType)
Get all available commands for the given mimetype. |
CommandInfo[] |
getAllCommands(String mimeType,
DataSource ds)
Get the entire command set for the given mimetype, as modified by the DataSource. |
abstract CommandInfo |
getCommand(String mimeType,
String cmdName)
Get the default command implementation for a give mimeType |
CommandInfo |
getCommand(String mimeType,
String cmdName,
DataSource ds)
Get the default command implementation for a given mimeType/DataSource combo. |
static CommandMap |
getDefaultCommandMap()
Return the default CommandMap. |
String[] |
getMimeTypes()
Return all mime types known to this CommandMap, or null if none. |
abstract CommandInfo[] |
getPreferredCommands(String mimeType)
Get the preferred commands for the given mimetype. |
CommandInfo[] |
getPreferredCommands(String mimeType,
DataSource ds)
Get the preferred commands for the given mimetype, as modified by the DataSource. |
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 |
|---|
public CommandMap()
| Method Detail |
|---|
public static CommandMap getDefaultCommandMap()
public static void setDefaultCommandMap(CommandMap commandMap)
commandMap - the new default CommandMap; if null resets to a MailcapCommandMap
SecurityException - if the caller does not have "SetFactory" RuntimePermission
public CommandInfo[] getPreferredCommands(String mimeType,
DataSource ds)
mimeType - The mimeType name.ds - The datasource providing the type object.
public abstract CommandInfo[] getPreferredCommands(String mimeType)
mimeType - The mimeType name.
public CommandInfo[] getAllCommands(String mimeType,
DataSource ds)
mimeType - The mimeType name.ds - The datasource providing the type object.
public abstract CommandInfo[] getAllCommands(String mimeType)
mimeType - The mimeType name.
public CommandInfo getCommand(String mimeType,
String cmdName,
DataSource ds)
mimeType - The name of the mime typecmdName - The command action we wish to perform.ds - The modifying DataSource.
public abstract CommandInfo getCommand(String mimeType,
String cmdName)
mimeType - The name of the mime typecmdName - The command action we wish to perform.
public DataContentHandler createDataContentHandler(String mimeType,
DataSource ds)
mimeType - The target MIME type.ds - The DataSource associated with this request.
public abstract DataContentHandler createDataContentHandler(String mimeType)
mimeType - The target MIME type.
public String[] getMimeTypes()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||