Examples of CommandInfo


Examples of javax.activation.CommandInfo

                }

                String cmdClassName = (String) commands.get(0);

                if (cmdClassName != null) {
                    return new CommandInfo(commandName, cmdClassName);
                }
            }
        }
       
        return null;
View Full Code Here

Examples of javax.activation.CommandInfo

*/
public class MailcapTest extends TestCase {
    private CommandMap map;

    public void testTextPlainHandler() {
        CommandInfo info = map.getCommand("text/plain", "content-handler");
        assertEquals(TextPlainHandler.class.getName(), info.getCommandClass());
    }
View Full Code Here

Examples of javax.activation.CommandInfo

*/
public class MailcapTest extends TestCase {
    private CommandMap map;

    public void testTextPlainHandler() {
        CommandInfo info = map.getCommand("text/plain", "content-handler");
        assertEquals(TextPlainHandler.class.getName(), info.getCommandClass());
    }
View Full Code Here

Examples of net.bnubot.bot.commands.CommandInfo

    Profile.registerCommand("clearqueue", new CommandClearQueue());
    Profile.registerCommand("createaccount", new CommandCreateAccount());
    Profile.registerCommand("demote", new CommandDemote());
    Profile.registerCommand("disconnect", new CommandDisconnect());
    Profile.registerCommand("home", new CommandHome());
    Profile.registerCommand("info", new CommandInfo());
    Profile.registerCommand("invite", new CommandInvite());
    Profile.registerCommand("kick", new CommandKick());
    Profile.registerCommand("mail", new CommandMail());
    Profile.registerCommand("mailall", new CommandMailAll());
    Profile.registerCommand("ping", new CommandPing());
View Full Code Here

Examples of org.apache.geronimo.twiddle.command.CommandInfo

        for (int i=0; i<commands.length; i++) {
            if (commands[i] == null) {
                throw new NullArgumentException("CommandConfig", i);
            }
           
            CommandInfo info = new CommandInfo(commands[i], world);
            container.addCommandInfo(info);
        }
    }
View Full Code Here

Examples of org.apache.mesos.Protos.CommandInfo

  public void testEmptyUri() {
    CommandUtil.create("");
  }

  private void test(String basename, String uri, Map<String, String> env) {
    CommandInfo expectedCommand = CommandInfo.newBuilder()
        .addUris(URI.newBuilder().setValue(uri).setExecutable(true))
        .setValue("./" + basename)
        .build();
    assertEquals(expectedCommand, CommandUtil.create(uri));
  }
View Full Code Here

Examples of org.apache.vysper.xmpp.modules.extension.xep0050_adhoc_commands.CommandInfo

    protected Collection<Entity> admins = new HashSet<Entity>();
    protected final Map<String, CommandInfo> allCommandInfos = new HashMap<String, CommandInfo>();

    public ServiceAdministrationModule() {
        /* XEP-133 4.1  */ allCommandInfos.put(COMMAND_NODE_ADD_USER, new CommandInfo(COMMAND_NODE_ADD_USER, "Add User"));
        /* XEP-133 4.7  */ allCommandInfos.put(COMMAND_CHANGE_USER_PASSWORD, new CommandInfo(COMMAND_CHANGE_USER_PASSWORD, "Change User Password"));
        /* XEP-133 4.15 */ allCommandInfos.put(COMMAND_GET_ONLINE_USERS_NUM, new CommandInfo(COMMAND_GET_ONLINE_USERS_NUM, "Get Number of Online Users"));
    }
View Full Code Here

Examples of org.apache.vysper.xmpp.modules.extension.xep0050_adhoc_commands.CommandInfo

        if (!admins.contains(infoRequest.getFrom())) {
            return Arrays.asList(allCommandInfos.get(COMMAND_CHANGE_USER_PASSWORD));
        }
        if (hintListAll) return allCommandInfos.values();

        final CommandInfo commandInfo = allCommandInfos.get(infoRequest.getNode());
        return (commandInfo == null) ? null : Arrays.asList(commandInfo);
    }
View Full Code Here

Examples of org.impalaframework.command.framework.CommandInfo

  public CommandDefinition getCommandDefinition() {

    // note that globalOverrides is true, so that the user will not be
    // prompted for the module name if it already there
    CommandInfo info = new CommandInfo(DIRECTORY_NAME, "Directory name",
        "Please enter directory to use as current working directory.", null, null, false, false, true, false);

    CommandDefinition definition = new CommandDefinition("Changes working directory");
    definition.add(info);
    return definition;
View Full Code Here

Examples of org.impalaframework.command.framework.CommandInfo

    public CommandDefinition getCommandDefinition() {

        // note that globalOverrides is true, so that the user will not be
        // prompted for the module name if it already there
        CommandInfo info = new CommandInfo(DIRECTORY_NAME, "Directory name",
                "Please enter directory to use as current working directory.", null, null, false, false, true, false);

        CommandDefinition definition = new CommandDefinition("Changes working directory");
        definition.add(info);
        return definition;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.