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.
|
java.util.List<AdHocCommand.Action> |
getActions() |
java.lang.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.
|
java.lang.String |
getId()
Returns the JID of the command host.
|
java.lang.String |
getName()
Returns the human name of the command
|
java.lang.String |
getNode()
Returns the identifier of the command
|
java.util.List<AdHocCommandNote> |
getNotes()
Returns the list of notes that the command has.
|
java.lang.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(java.lang.String id) |
void |
setName(java.lang.String name) |
void |
setNode(java.lang.String node) |
void |
setSessionID(java.lang.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 java.lang.String getChildElementXML()
IQExtensions of this class must override this method.
getChildElementXML in class IQpublic java.lang.String getId()
public void setId(java.lang.String id)
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getNode()
public void setNode(java.lang.String node)
public java.util.List<AdHocCommandNote> getNotes()
public void addNote(AdHocCommandNote note)
public void remveNote(AdHocCommandNote note)
public DataForm getForm()
public void setForm(DataForm form)
public AdHocCommand.Action getAction()
public void setAction(AdHocCommand.Action action)
public AdHocCommand.Status getStatus()
public void setStatus(AdHocCommand.Status status)
public java.util.List<AdHocCommand.Action> getActions()
public void addAction(AdHocCommand.Action action)
public void setExecuteAction(AdHocCommand.Action executeAction)
public AdHocCommand.Action getExecuteAction()
public void setSessionID(java.lang.String sessionID)
public java.lang.String getSessionID()