|
Openfire 3.3.0 Javadoc | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jivesoftware.openfire.commands.AdHocCommandManager
public class AdHocCommandManager
An AdHocCommandManager is responsible for keeping the list of available commands offered by a service and for processing commands requests. Typically, instances of this class are private to the service offering ad-hoc commands.
| Constructor Summary | |
|---|---|
AdHocCommandManager()
|
|
| Method Summary | |
|---|---|
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. |
IQ |
process(IQ packet)
|
boolean |
removeCommand(AdHocCommand command)
Removes the command from the list of ad-hoc commands supported by this server. |
void |
stop()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AdHocCommandManager()
| Method Detail |
|---|
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 IQ process(IQ packet)
public void stop()
|
Openfire 3.3.0 Javadoc | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||