public class AdHocCommandManager extends Object
Constructor and Description |
---|
AdHocCommandManager() |
Modifier and Type | Method and Description |
---|---|
void |
addCommand(AdHocCommand command)
Adds a new command to the list of supported ad-hoc commands by this server.
|
AdHocCommand |
getCommand(String code)
Returns the command whose code matches the specified code or null if none
was found.
|
Collection<AdHocCommand> |
getCommands()
Returns a list with the available commands in this command manager.
|
org.xmpp.packet.IQ |
process(org.xmpp.packet.IQ packet) |
boolean |
removeCommand(AdHocCommand command)
Removes the command from the list of ad-hoc commands supported by this server.
|
void |
stop() |
public void addCommand(AdHocCommand command)
command
- the new ad-hoc command to add.public boolean removeCommand(AdHocCommand command)
command
- the ad-hoc command to remove.public Collection<AdHocCommand> getCommands()
public AdHocCommand getCommand(String code)
code
- the code of the command to find.public org.xmpp.packet.IQ process(org.xmpp.packet.IQ packet)
public void stop()
Copyright © 2003-2008 Jive Software.