| java.lang.Object | |
| ↳ | com.google.code.javax.activation.CommandMap |
Known Direct Subclasses
|
The CommandMap class provides an interface to a registry of command objects available in the system. Developers are expected to either use the CommandMap implementation included with this package (MailcapCommandMap) or develop their own. Note that some of the methods in this class are abstract.
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| defaultCommandMap | |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Locate a DataContentHandler that corresponds to the MIME type.
| |||||||||||
Locate a DataContentHandler that corresponds to the MIME type.
| |||||||||||
Get all the available commands for this type.
| |||||||||||
Get all the available commands for this type.
| |||||||||||
Get the default command corresponding to the MIME type.
| |||||||||||
Get the default command corresponding to the MIME type.
| |||||||||||
Get the default CommandMap.
| |||||||||||
Get all the MIME types known to this command map.
| |||||||||||
Get the preferred command list from a MIME Type.
| |||||||||||
Get the preferred command list from a MIME Type.
| |||||||||||
Set the default CommandMap.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Locate a DataContentHandler that corresponds to the MIME type. The mechanism and semantics for determining this are determined by the implementation of the particular CommandMap.
| mimeType | The MIME type |
|---|
Locate a DataContentHandler that corresponds to the MIME type. The mechanism and semantics for determining this are determined by the implementation of the particular CommandMap.
The DataSource provides extra information, such as
the file name, that a CommandMap implementation may use to further
refine the choice of DataContentHandler. The implementation
in this class simply calls the createDataContentHandler
method that ignores this argument.
| mimeType | The MIME type |
|---|---|
| ds | A DataSource for the data |
Get all the available commands for this type. This method should return all the possible commands for this MIME type.
The DataSource provides extra information, such as
the file name, that a CommandMap implementation may use to further
refine the list of commands that are returned. The implementation
in this class simply calls the getAllCommands
method that ignores this argument.
| mimeType | The MIME type |
|---|---|
| ds | A DataSource for the data |
Get all the available commands for this type. This method should return all the possible commands for this MIME type.
| mimeType | The MIME type |
|---|
Get the default command corresponding to the MIME type.
| mimeType | The MIME type |
|---|---|
| cmdName | The command name |
Get the default command corresponding to the MIME type.
The DataSource provides extra information, such as
the file name, that a CommandMap implementation may use to further
refine the command that is chosen. The implementation
in this class simply calls the getCommand
method that ignores this argument.
| mimeType | The MIME type |
|---|---|
| cmdName | The command name |
| ds | A DataSource for the data |
Get the default CommandMap.
MailcapCommandMap and
set that to the default, returning its value.
Get all the MIME types known to this command map. If the command map doesn't support this operation, null is returned.
Get the preferred command list from a MIME Type. The actual semantics are determined by the implementation of the CommandMap.
| mimeType | The MIME type |
|---|
Get the preferred command list from a MIME Type. The actual semantics are determined by the implementation of the CommandMap.
The DataSource provides extra information, such as
the file name, that a CommandMap implementation may use to further
refine the list of commands that are returned. The implementation
in this class simply calls the getPreferredCommands
method that ignores this argument.
| mimeType | The MIME type |
|---|---|
| ds | A DataSource for the data |
Set the default CommandMap. Reset the CommandMap to the default by
calling this method with null.
| commandMap | The new default CommandMap. |
|---|
| SecurityException | if the caller doesn't have permission to change the default |
|---|