public class AdHocCommandData extends IQ
| Modifier and Type | Class and Description |
|---|---|
static class |
AdHocCommandData.SpecificError |
DEFAULT_LANGUAGE, ID_NOT_AVAILABLE| Constructor and Description |
|---|
AdHocCommandData() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAction(AdHocCommand.Action action) |
void |
addNote(AdHocCommandNote note) |
AdHocCommand.Action |
getAction()
Returns the action to execute.
|
List<AdHocCommand.Action> |
getActions() |
String |
getChildElementXML()
Returns the sub-element XML section of the IQ packet, or null if there
isn't one.
|
AdHocCommand.Action |
getExecuteAction() |
DataForm |
getForm()
Returns the form of the command.
|
String |
getId()
Returns the JID of the command host.
|
String |
getName()
Returns the human name of the command
|
String |
getNode()
Returns the identifier of the command
|
List<AdHocCommandNote> |
getNotes()
Returns the list of notes that the command has.
|
String |
getSessionID() |
AdHocCommand.Status |
getStatus()
Returns the status of the execution.
|
void |
remveNote(AdHocCommandNote note) |
void |
setAction(AdHocCommand.Action action) |
void |
setExecuteAction(AdHocCommand.Action executeAction) |
void |
setForm(DataForm form) |
void |
setId(String id) |
void |
setName(String name) |
void |
setNode(String node) |
void |
setSessionID(String sessionID) |
void |
setStatus(AdHocCommand.Status status) |
createErrorResponse, createResultIQ, getType, setType, toXMLaddCommonAttributes, addExtension, addExtensions, equals, getDefaultLanguage, getError, getExtension, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getTo, getXmlns, hashCode, nextID, removeExtension, setDefaultXmlns, setError, setFrom, setPacketID, setTo, toStringpublic AdHocCommandData()
public String getChildElementXML()
IQExtensions of this class must override this method.
getChildElementXML in class IQpublic String getId()
public String getName()
public List<AdHocCommandNote> getNotes()
public void addNote(AdHocCommandNote note)
public void remveNote(AdHocCommandNote note)
public DataForm getForm()
public AdHocCommand.Action getAction()
public void setAction(AdHocCommand.Action action)
public AdHocCommand.Status getStatus()
public void setStatus(AdHocCommand.Status status)
public List<AdHocCommand.Action> getActions()
public void addAction(AdHocCommand.Action action)
public void setExecuteAction(AdHocCommand.Action executeAction)
public AdHocCommand.Action getExecuteAction()
public void setSessionID(String sessionID)
public String getSessionID()