javax.activation.DataHandler.getCommandMap()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(6.9k)|赞(0)|评价(0)|浏览(118)

本文整理了Java中javax.activation.DataHandler.getCommandMap()方法的一些代码示例,展示了DataHandler.getCommandMap()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。DataHandler.getCommandMap()方法的具体详情如下:
包路径:javax.activation.DataHandler
类名称:DataHandler
方法名:getCommandMap

DataHandler.getCommandMap介绍

[英]Return the CommandMap for this instance of DataHandler.
[中]返回此DataHandler实例的CommandMap。

代码示例

代码示例来源:origin: javax.activation/activation

/**
 * Return all the commands for this type of data.
 * This method returns an array containing all commands
 * for the type of data represented by this DataHandler. The
 * MIME type for the underlying data represented by this DataHandler
 * is used to call through to the <code>getAllCommands</code> method
 * of the CommandMap associated with this DataHandler.
 *
 * @return    the CommandInfo objects representing all the commands
 *
 * @see javax.activation.CommandMap#getAllCommands
 */
public CommandInfo[] getAllCommands() {
if (dataSource != null)
  return getCommandMap().getAllCommands(getBaseType(), dataSource);
else
  return getCommandMap().getAllCommands(getBaseType());
}

代码示例来源:origin: javax.activation/activation

/**
 * Get the command <i>cmdName</i>. Use the search semantics as
 * defined by the CommandMap installed in this DataHandler. The
 * MIME type for the underlying data represented by this DataHandler
 * is used to call through to the <code>getCommand</code> method
 * of the CommandMap associated with this DataHandler.
 *
 * @param cmdName    the command name
 * @return    the CommandInfo corresponding to the command
 *
 * @see javax.activation.CommandMap#getCommand
 */
public CommandInfo getCommand(String cmdName) {
if (dataSource != null)
  return getCommandMap().getCommand(getBaseType(), cmdName,
              dataSource);
else
  return getCommandMap().getCommand(getBaseType(), cmdName);
}

代码示例来源:origin: javax.activation/activation

/**
 * Return the <i>preferred</i> commands for this type of data.
 * This method calls the <code>getPreferredCommands</code> method
 * in the CommandMap associated with this instance of DataHandler.
 * This method returns an array that represents a subset of
 * available commands. In cases where multiple commands for the
 * MIME type represented by this DataHandler are present, the
 * installed CommandMap chooses the appropriate commands.
 *
 * @return    the CommandInfo objects representing the preferred commands
 *
 * @see javax.activation.CommandMap#getPreferredCommands
 */
public CommandInfo[] getPreferredCommands() {
if (dataSource != null)
  return getCommandMap().getPreferredCommands(getBaseType(),
            dataSource);
else
  return getCommandMap().getPreferredCommands(getBaseType());
}

代码示例来源:origin: javax.activation/activation

dataContentHandler = getCommandMap().
    createDataContentHandler(simpleMT, dataSource);
else
dataContentHandler = getCommandMap().
    createDataContentHandler(simpleMT);

代码示例来源:origin: camunda/camunda-bpm-platform

/**
 * Return all the commands for this type of data.
 * This method returns an array containing all commands
 * for the type of data represented by this DataHandler. The
 * MIME type for the underlying data represented by this DataHandler
 * is used to call through to the <code>getAllCommands</code> method
 * of the CommandMap associated with this DataHandler.
 *
 * @return    the CommandInfo objects representing all the commands
 *
 * @see javax.activation.CommandMap#getAllCommands
 */
public CommandInfo[] getAllCommands() {
if (dataSource != null)
  return getCommandMap().getAllCommands(getBaseType(), dataSource);
else
  return getCommandMap().getAllCommands(getBaseType());
}

代码示例来源:origin: camunda/camunda-bpm-platform

/**
 * Get the command <i>cmdName</i>. Use the search semantics as
 * defined by the CommandMap installed in this DataHandler. The
 * MIME type for the underlying data represented by this DataHandler
 * is used to call through to the <code>getCommand</code> method
 * of the CommandMap associated with this DataHandler.
 *
 * @param cmdName    the command name
 * @return    the CommandInfo corresponding to the command
 *
 * @see javax.activation.CommandMap#getCommand
 */
public CommandInfo getCommand(String cmdName) {
if (dataSource != null)
  return getCommandMap().getCommand(getBaseType(), cmdName,
              dataSource);
else
  return getCommandMap().getCommand(getBaseType(), cmdName);
}

代码示例来源:origin: camunda/camunda-bpm-platform

/**
 * Return the <i>preferred</i> commands for this type of data.
 * This method calls the <code>getPreferredCommands</code> method
 * in the CommandMap associated with this instance of DataHandler.
 * This method returns an array that represents a subset of
 * available commands. In cases where multiple commands for the
 * MIME type represented by this DataHandler are present, the
 * installed CommandMap chooses the appropriate commands.
 *
 * @return    the CommandInfo objects representing the preferred commands
 *
 * @see javax.activation.CommandMap#getPreferredCommands
 */
public CommandInfo[] getPreferredCommands() {
if (dataSource != null)
  return getCommandMap().getPreferredCommands(getBaseType(),
            dataSource);
else
  return getCommandMap().getPreferredCommands(getBaseType());
}

代码示例来源:origin: camunda/camunda-bpm-platform

dataContentHandler = getCommandMap().
    createDataContentHandler(simpleMT, dataSource);
else
dataContentHandler = getCommandMap().
    createDataContentHandler(simpleMT);

代码示例来源:origin: org.apache.openejb/javaee-api

public CommandInfo[] getPreferredCommands() {
  return getCommandMap().getPreferredCommands(ds.getContentType());
}

代码示例来源:origin: org.apache.geronimo.specs/geronimo-activation_1.0.2_spec

public CommandInfo getCommand(String cmdName) {
  return getCommandMap().getCommand(ds.getContentType(), cmdName);
}

代码示例来源:origin: org.apache.servicemix.specs/org.apache.servicemix.specs.activation-api-1.1

public CommandInfo[] getAllCommands() {
  return getCommandMap().getAllCommands(ds.getContentType());
}

代码示例来源:origin: org.apache.servicemix.specs/org.apache.servicemix.specs.activation-api-1.1

public CommandInfo getCommand(String cmdName) {
  return getCommandMap().getCommand(ds.getContentType(), cmdName);
}

代码示例来源:origin: org.apache.geronimo.specs/geronimo-activation_1.0.2_spec

public CommandInfo[] getAllCommands() {
  return getCommandMap().getAllCommands(ds.getContentType());
}

代码示例来源:origin: org.apache.geronimo.specs/geronimo-activation_1.1_spec

public CommandInfo[] getPreferredCommands() {
  return getCommandMap().getPreferredCommands(ds.getContentType());
}

代码示例来源:origin: org.apache.geronimo.specs/geronimo-activation_1.1_spec

public CommandInfo[] getAllCommands() {
  return getCommandMap().getAllCommands(ds.getContentType());
}

代码示例来源:origin: org.apache.geronimo.specs/geronimo-activation_1.1_spec

public CommandInfo getCommand(String cmdName) {
  return getCommandMap().getCommand(ds.getContentType(), cmdName);
}

代码示例来源:origin: org.apache.geronimo.specs/geronimo-activation_1.0.2_spec

public CommandInfo[] getPreferredCommands() {
  return getCommandMap().getPreferredCommands(ds.getContentType());
}

代码示例来源:origin: org.apache.openejb/javaee-api

public CommandInfo[] getAllCommands() {
  return getCommandMap().getAllCommands(ds.getContentType());
}

代码示例来源:origin: org.apache.openejb/javaee-api

public CommandInfo getCommand(String cmdName) {
  return getCommandMap().getCommand(ds.getContentType(), cmdName);
}

代码示例来源:origin: org.apache.servicemix.specs/org.apache.servicemix.specs.activation-api-1.1

public CommandInfo[] getPreferredCommands() {
  return getCommandMap().getPreferredCommands(ds.getContentType());
}

相关文章