|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjavax.activation.CommandMap
public abstract class CommandMap
| 构造方法摘要 | |
|---|---|
CommandMap()
|
|
| 方法摘要 | |
|---|---|
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. |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public CommandMap()
| 方法详细信息 |
|---|
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()
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||